AFDOriginGroupsOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CdnManagementClient's

<xref:afd_origin_groups> attribute.

Constructor

AFDOriginGroupsOperations(*args, **kwargs)

Methods

begin_create

Creates a new origin group within the specified profile.

begin_delete

Deletes an existing origin group within a profile.

begin_update

Updates an existing origin group within a profile.

get

Gets an existing origin group within a profile.

list_by_profile

Lists all of the existing origin groups within a profile.

list_resource_usage

Checks the quota and actual usage of endpoints under the given Azure Front Door profile.

begin_create

Creates a new origin group within the specified profile.

async begin_create(resource_group_name: str, profile_name: str, origin_group_name: str, origin_group: _models.AFDOriginGroup, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.AFDOriginGroup]

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_group
Required

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

Returns

Type Description

An instance of AsyncLROPoller that returns AFDOriginGroup. The AFDOriginGroup is compatible with MutableMapping

Exceptions

Type Description

begin_delete

Deletes an existing origin group within a profile.

async begin_delete(resource_group_name: str, profile_name: str, origin_group_name: str, **kwargs: Any) -> AsyncLROPoller[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.

Returns

Type Description

An instance of AsyncLROPoller that returns None

Exceptions

Type Description

begin_update

Updates an existing origin group within a profile.

async begin_update(resource_group_name: str, profile_name: str, origin_group_name: str, origin_group_update_properties: _models.AFDOriginGroupUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> AsyncLROPoller[_models.AFDOriginGroup]

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_group_update_properties
Required

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

Returns

Type Description

An instance of AsyncLROPoller that returns AFDOriginGroup. The AFDOriginGroup is compatible with MutableMapping

Exceptions

Type Description

get

Gets an existing origin group within a profile.

async get(resource_group_name: str, profile_name: str, origin_group_name: str, **kwargs: Any) -> AFDOriginGroup

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

AFDOriginGroup. The AFDOriginGroup is compatible with MutableMapping

Exceptions

Type Description

list_by_profile

Lists all of the existing origin groups within a profile.

list_by_profile(resource_group_name: str, profile_name: str, **kwargs: Any) -> AsyncItemPaged[AFDOriginGroup]

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.

Returns

Type Description

An iterator like instance of AFDOriginGroup

Exceptions

Type Description

list_resource_usage

Checks the quota and actual usage of endpoints under the given Azure Front Door profile.

list_resource_usage(resource_group_name: str, profile_name: str, origin_group_name: str, **kwargs: Any) -> AsyncItemPaged[Usage]

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 Usage

Exceptions

Type Description