SecurityPoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CdnManagementClient's

<xref:security_policies> attribute.

Constructor

SecurityPoliciesOperations(*args, **kwargs)

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: _models.SecurityPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.SecurityPolicy]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

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

security_policy_name
Required
str

Name of the security policy under the profile. Required.

security_policy
Required

The security policy properties. Is either a SecurityPolicy type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes an existing security policy within profile.

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

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

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

security_policy_name
Required
str

Name of the security policy under the profile. Required.

Returns

Type Description

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

Exceptions

Type Description

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: _models.SecurityPolicyUpdateParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.SecurityPolicy]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

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

security_policy_name
Required
str

Name of the security policy under the profile. Required.

security_policy_update_properties
Required

Security policy update properties. Is either a SecurityPolicyUpdateParameters type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

get

Gets an existing security policy within a profile.

get(resource_group_name: str, profile_name: str, security_policy_name: str, **kwargs: Any) -> SecurityPolicy

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

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

security_policy_name
Required
str

Name of the security policy under the profile. Required.

Returns

Type Description

SecurityPolicy or the result of cls(response)

Exceptions

Type Description

list_by_profile

Lists security policies associated with the profile.

list_by_profile(resource_group_name: str, profile_name: str, **kwargs: Any) -> Iterable[SecurityPolicy]

Parameters

Name Description
resource_group_name
Required
str

Name of the Resource group within the Azure subscription. Required.

profile_name
Required
str

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

Returns

Type Description

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

Exceptions

Type Description

Attributes

models

models = <module 'azure.mgmt.cdn.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.10\\x64\\Lib\\site-packages\\py2docfx\\venv\\venv77\\Lib\\site-packages\\azure\\mgmt\\cdn\\models\\__init__.py'>