DdosProtectionPlansOperations Class

Warning

DO NOT instantiate this class directly.

Instead, you should access the following operations through

NetworkManagementClient's

<xref:ddos_protection_plans> attribute.

Constructor

DdosProtectionPlansOperations(*args, **kwargs)

Methods

begin_create_or_update

Creates or updates a DDoS protection plan.

begin_delete

Deletes the specified DDoS protection plan.

get

Gets information about the specified DDoS protection plan.

list

Gets all DDoS protection plans in a subscription.

list_by_resource_group

Gets all the DDoS protection plans in a resource group.

update_tags

Update a DDoS protection plan tags.

begin_create_or_update

Creates or updates a DDoS protection plan.

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

Parameters

Name Description
resource_group_name
Required
str

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

ddos_protection_plan_name
Required
str

The name of the DDoS protection plan. Required.

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

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

Returns

Type Description

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

Exceptions

Type Description

begin_delete

Deletes the specified DDoS protection plan.

begin_delete(resource_group_name: str, ddos_protection_plan_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_protection_plan_name
Required
str

The name of the DDoS protection plan. Required.

Returns

Type Description

An instance of LROPoller that returns None

Exceptions

Type Description

get

Gets information about the specified DDoS protection plan.

get(resource_group_name: str, ddos_protection_plan_name: str, **kwargs: Any) -> DdosProtectionPlan

Parameters

Name Description
resource_group_name
Required
str

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

ddos_protection_plan_name
Required
str

The name of the DDoS protection plan. Required.

Returns

Type Description

DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping

Exceptions

Type Description

list

Gets all DDoS protection plans in a subscription.

list(**kwargs: Any) -> ItemPaged[DdosProtectionPlan]

Returns

Type Description

An iterator like instance of DdosProtectionPlan

Exceptions

Type Description

list_by_resource_group

Gets all the DDoS protection plans in a resource group.

list_by_resource_group(resource_group_name: str, **kwargs: Any) -> ItemPaged[DdosProtectionPlan]

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 DdosProtectionPlan

Exceptions

Type Description

update_tags

Update a DDoS protection plan tags.

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

Parameters

Name Description
resource_group_name
Required
str

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

ddos_protection_plan_name
Required
str

The name of the DDoS protection plan. Required.

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

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

Returns

Type Description

DdosProtectionPlan. The DdosProtectionPlan is compatible with MutableMapping

Exceptions

Type Description