AFDOriginsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CdnManagementClient's

<xref:afd_origins> attribute.

Constructor

AFDOriginsOperations(*args, **kwargs)

Methods

begin_create

Creates a new origin within the specified origin group.

begin_delete

Deletes an existing origin within an origin group.

begin_update

Updates an existing origin within an origin group.

get

Gets an existing origin within an origin group.

list_by_origin_group

Lists all of the existing origins within an origin group.

begin_create

Creates a new origin within the specified origin group.

begin_create(resource_group_name: str, profile_name: str, origin_group_name: str, origin_name: str, origin: _models.AFDOrigin, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AFDOrigin]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.

origin_group_name
Required
str

Name of the origin group which is unique within the endpoint. Required.

origin_name
Required
str

Name of the origin which is unique within the profile. Required.

origin
Required

Origin properties. Is either a AFDOrigin type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns AFDOrigin. The AFDOrigin is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Deletes an existing origin within an origin group.

begin_delete(resource_group_name: str, profile_name: str, origin_group_name: str, origin_name: str, **kwargs: Any) -> LROPoller[None]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.

origin_group_name
Required
str

Name of the origin group which is unique within the endpoint. Required.

origin_name
Required
str

Name of the origin which is unique within the profile. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

begin_update

Updates an existing origin within an origin group.

begin_update(resource_group_name: str, profile_name: str, origin_group_name: str, origin_name: str, origin_update_properties: _models.AFDOriginUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.AFDOrigin]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.

origin_group_name
Required
str

Name of the origin group which is unique within the endpoint. Required.

origin_name
Required
str

Name of the origin which is unique within the profile. Required.

origin_update_properties
Required

Origin properties. Is either a AFDOriginUpdateParameters type or a IO[bytes] type. Required.

Returns

Type Description

An instance of LROPoller that returns AFDOrigin. The AFDOrigin is compatible with MutableMapping

Exceptions

Type Description

get

Gets an existing origin within an origin group.

get(resource_group_name: str, profile_name: str, origin_group_name: str, origin_name: str, **kwargs: Any) -> AFDOrigin

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.

origin_group_name
Required
str

Name of the origin group which is unique within the endpoint. Required.

origin_name
Required
str

Name of the origin which is unique within the profile. Required.

Returns

Type Description

AFDOrigin. The AFDOrigin is compatible with MutableMapping

Exceptions

Type Description

list_by_origin_group

Lists all of the existing origins within an origin group.

list_by_origin_group(resource_group_name: str, profile_name: str, origin_group_name: str, **kwargs: Any) -> ItemPaged[AFDOrigin]

Parameters

Name Description
resource_group_name
Required
str

The name of the resource group. The name is case insensitive. Required.

profile_name
Required
str

Name of the Azure Front Door Standard or Azure Front Door Premium or CDN profile which is unique within the resource group. Required.

origin_group_name
Required
str

Name of the origin group which is unique within the endpoint. Required.

Returns

Type Description

An iterator like instance of AFDOrigin

Exceptions

Type Description