SecurityPoliciesOperations Class

SecurityPoliciesOperations 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
SecurityPoliciesOperations

Constructor

SecurityPoliciesOperations(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 security policy within the specified profile.

begin_delete

Deletes an existing security policy within profile.

begin_patch

Updates an existing security policy within a profile.

get

Gets an existing security policy within a profile.

list_by_profile

Lists security policies associated with the profile.

begin_create

Creates a new security policy within the specified profile.

begin_create(resource_group_name: str, profile_name: str, security_policy_name: str, security_policy: azure.mgmt.cdn.models._models_py3.SecurityPolicy, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cdn.models._models_py3.SecurityPolicy]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

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

security_policy_name
str
Required

Name of the security policy under the profile.

security_policy
SecurityPolicy
Required

The security policy 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

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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 SecurityPolicy or the result of cls(response)

Return type

Exceptions

begin_delete

Deletes an existing security policy within profile.

begin_delete(resource_group_name: str, profile_name: str, security_policy_name: str, **kwargs: Any) -> azure.core.polling._poller.LROPoller[None]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

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

security_policy_name
str
Required

Name of the security policy under 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

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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

begin_patch

Updates an existing security policy within a profile.

begin_patch(resource_group_name: str, profile_name: str, security_policy_name: str, security_policy_update_properties: azure.mgmt.cdn.models._models_py3.SecurityPolicyUpdateParameters, **kwargs: Any) -> azure.core.polling._poller.LROPoller[azure.mgmt.cdn.models._models_py3.SecurityPolicy]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

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

security_policy_name
str
Required

Name of the security policy under the profile.

security_policy_update_properties
SecurityPolicyUpdateParameters
Required

Security policy update 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

By default, your polling method will be ARMPolling. Pass in False for this operation to not poll, or pass in your own initialized polling object for a 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 SecurityPolicy or the result of cls(response)

Return type

Exceptions

get

Gets an existing security policy within a profile.

get(resource_group_name: str, profile_name: str, security_policy_name: str, **kwargs: Any) -> azure.mgmt.cdn.models._models_py3.SecurityPolicy

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

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

security_policy_name
str
Required

Name of the security policy under the profile.

cls
callable

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

Returns

SecurityPolicy, or the result of cls(response)

Return type

Exceptions

list_by_profile

Lists security policies associated with the profile.

list_by_profile(resource_group_name: str, profile_name: str, **kwargs: Any) -> Iterable[azure.mgmt.cdn.models._models_py3.SecurityPolicyListResult]

Parameters

resource_group_name
str
Required

Name of the Resource group within the Azure subscription.

profile_name
str
Required

Name of the Azure Front Door Standard or Azure Front Door Premium 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 SecurityPolicyListResult or the result of cls(response)

Return type

Exceptions

Attributes

models

models = <module 'azure.mgmt.cdn.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.9.13\\x64\\lib\\site-packages\\azure\\mgmt\\cdn\\models\\__init__.py'>