DdosCustomPoliciesOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:ddos_custom_policies> attribute.

Constructor

DdosCustomPoliciesOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a DDoS custom policy.

begin_delete

Deletes the specified DDoS custom policy.

get

Gets information about the specified DDoS custom policy.

list

Gets all the DDoS custom policies in a resource group.

list_all

Gets all the DDoS custom policies in a subscription.

update_tags

Update a DDoS custom policy tags.

begin_create_or_update

Creates or updates a DDoS custom policy.

begin_create_or_update(resource_group_name: str, ddos_custom_policy_name: str, parameters: _models.DdosCustomPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.DdosCustomPolicy]

Parameters

Name Description
resource_group_name
Required
str

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

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

parameters
Required
DdosCustomPolicy or <xref:JSON> or IO[bytes]

Parameters supplied to the create or update operation. Is one of the following types: DdosCustomPolicy, JSON, IO[bytes] Required.

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified DDoS custom policy.

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

Parameters

Name Description
resource_group_name
Required
str

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

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

Gets information about the specified DDoS custom policy.

get(resource_group_name: str, ddos_custom_policy_name: str, **kwargs: Any) -> DdosCustomPolicy

Parameters

Name Description
resource_group_name
Required
str

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

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

Returns

Type Description

DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping

Exceptions

Type Description

list

Gets all the DDoS custom policies in a resource group.

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

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 DdosCustomPolicy

Exceptions

Type Description

list_all

Gets all the DDoS custom policies in a subscription.

list_all(**kwargs: Any) -> ItemPaged[DdosCustomPolicy]

Returns

Type Description

An iterator like instance of DdosCustomPolicy

Exceptions

Type Description

update_tags

Update a DDoS custom policy tags.

update_tags(resource_group_name: str, ddos_custom_policy_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.DdosCustomPolicy

Parameters

Name Description
resource_group_name
Required
str

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

ddos_custom_policy_name
Required
str

The name of the DDoS custom policy. Required.

parameters
Required
TagsObject or <xref:JSON> or IO[bytes]

Parameters supplied to update DDoS custom policy resource tags. Is one of the following types: TagsObject, JSON, IO[bytes] Required.

Returns

Type Description

DdosCustomPolicy. The DdosCustomPolicy is compatible with MutableMapping

Exceptions

Type Description