AFDOriginGroupsOperations Class

AFDOriginGroupsOperations operations.

You should not instantiate this class directly. Instead, you should create a Client instance that instantiates it for you and attaches it as an attribute.

Inheritance
builtins.object
AFDOriginGroupsOperations

Constructor

AFDOriginGroupsOperations(client, config, serializer, deserializer)

Parameters

client
Required

Client for service requests.

config
Required

Configuration of service client.

serializer
Required

An object model serializer.

deserializer
Required

An object model deserializer.

Variables

models

Alias to model classes used in this operation group.

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 CDN profile.

begin_create

Creates a new origin group within the specified profile.

begin_create(resource_group_name, profile_name, origin_group_name, origin_group, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

origin_group_name
str
Required

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

origin_group
AFDOriginGroup
Required

Origin group properties.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either AFDOriginGroup or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

begin_delete

Deletes an existing origin group within a profile.

begin_delete(resource_group_name, profile_name, origin_group_name, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

origin_group_name
str
Required

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

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either None or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

begin_update

Updates an existing origin group within a profile.

begin_update(resource_group_name, profile_name, origin_group_name, origin_group_update_properties, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

origin_group_name
str
Required

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

origin_group_update_properties
AFDOriginGroupUpdateParameters
Required

Origin group properties.

cls
callable

A custom type or function that will be passed the direct response

continuation_token
str

A continuation token to restart a poller from a saved state.

polling
bool or PollingMethod

True for ARMPolling, False for no polling, or a polling object for personal polling strategy

polling_interval
int

Default waiting time between two polls for LRO operations if no Retry-After header is present.

Returns

An instance of LROPoller that returns either AFDOriginGroup or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

get

Gets an existing origin group within a profile.

get(resource_group_name, profile_name, origin_group_name, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

origin_group_name
str
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

AFDOriginGroup, or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_by_profile

Lists all of the existing origin groups within a profile.

list_by_profile(resource_group_name, profile_name, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either AFDOriginGroupListResult or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

list_resource_usage

Checks the quota and actual usage of endpoints under the given CDN profile.

list_resource_usage(resource_group_name, profile_name, origin_group_name, **kwargs)

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the CDN profile which is unique within the resource group.

origin_group_name
str
Required

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

cls
callable

A custom type or function that will be passed the direct response

Returns

An iterator like instance of either UsagesListResult or the result of cls(response)

Return type

Exceptions

~azure.core.exceptions.HttpResponseError

Attributes

models

models = <module 'azure.mgmt.cdn.models' from 'c:\\hostedtoolcache\\windows\\python\\3.6.8\\x64\\lib\\site-packages\\azure\\mgmt\\cdn\\models\\__init__.py'>