PoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

CdnManagementClient's

<xref:policies> attribute.

Constructor

PoliciesOperations(*args, **kwargs)

Methods

begin_create_or_update

Create or update policy with specified rule set name within a resource group.

begin_update

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.

delete

Deletes Policy.

get

Retrieve protection policy with specified name within a resource group.

list

Lists all of the protection policies within a resource group.

begin_create_or_update

Create or update policy with specified rule set name within a resource group.

begin_create_or_update(resource_group_name: str, policy_name: str, cdn_web_application_firewall_policy: _models.CdnWebApplicationFirewallPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.CdnWebApplicationFirewallPolicy]

Parameters

Name Description
resource_group_name
Required
str

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

policy_name
Required
str

The name of the CdnWebApplicationFirewallPolicy. Required.

cdn_web_application_firewall_policy
Required

Policy to be created. Is either a CdnWebApplicationFirewallPolicy type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

begin_update

Update an existing CdnWebApplicationFirewallPolicy with the specified policy name under the specified subscription and resource group.

begin_update(resource_group_name: str, policy_name: str, cdn_web_application_firewall_policy_patch_parameters: _models.CdnWebApplicationFirewallPolicyPatchParameters, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.CdnWebApplicationFirewallPolicy]

Parameters

Name Description
resource_group_name
Required
str

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

policy_name
Required
str

The name of the CdnWebApplicationFirewallPolicy. Required.

cdn_web_application_firewall_policy_patch_parameters
Required

CdnWebApplicationFirewallPolicy parameters to be patched. Is either a CdnWebApplicationFirewallPolicyPatchParameters type or a IO[bytes] type. Required.

Returns

Type Description

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

Exceptions

Type Description

delete

Deletes Policy.

delete(resource_group_name: str, policy_name: str, **kwargs: Any) -> None

Parameters

Name Description
resource_group_name
Required
str

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

policy_name
Required
str

The name of the CdnWebApplicationFirewallPolicy. Required.

Returns

Type Description

None

Exceptions

Type Description

get

Retrieve protection policy with specified name within a resource group.

get(resource_group_name: str, policy_name: str, **kwargs: Any) -> CdnWebApplicationFirewallPolicy

Parameters

Name Description
resource_group_name
Required
str

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

policy_name
Required
str

The name of the CdnWebApplicationFirewallPolicy. Required.

Returns

Type Description

CdnWebApplicationFirewallPolicy. The CdnWebApplicationFirewallPolicy is compatible with MutableMapping

Exceptions

Type Description

list

Lists all of the protection policies within a resource group.

list(resource_group_name: str, **kwargs: Any) -> ItemPaged[CdnWebApplicationFirewallPolicy]

Parameters

Name Description
resource_group_name
Required
str

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

Returns

Type Description

An iterator like instance of CdnWebApplicationFirewallPolicy

Exceptions

Type Description