DdosProtectionPlansOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:ddos_protection_plans> attribute.
- Inheritance
-
builtins.objectDdosProtectionPlansOperations
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
|
The name of the resource group. Required. |
ddos_protection_plan_name
Required
|
The name of the DDoS protection plan. Required. |
parameters
Required
|
Parameters supplied to the create or update operation. Is either a DdosProtectionPlan type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either DdosProtectionPlan or the result of cls(response) |
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
|
The name of the resource group. Required. |
ddos_protection_plan_name
Required
|
The name of the DDoS protection plan. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
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
|
The name of the resource group. Required. |
ddos_protection_plan_name
Required
|
The name of the DDoS protection plan. Required. |
Returns
Type | Description |
---|---|
DdosProtectionPlan or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Gets all DDoS protection plans in a subscription.
list(**kwargs: Any) -> Iterable[DdosProtectionPlan]
Returns
Type | Description |
---|---|
An iterator like instance of either DdosProtectionPlan or the result of cls(response) |
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) -> Iterable[DdosProtectionPlan]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either DdosProtectionPlan or the result of cls(response) |
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
|
The name of the resource group. Required. |
ddos_protection_plan_name
Required
|
The name of the DDoS protection plan. Required. |
parameters
Required
|
Parameters supplied to the update DDoS protection plan resource tags. Is either a TagsObject type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
DdosProtectionPlan or the result of cls(response) |
Exceptions
Type | Description |
---|---|
Attributes
models
models = <module 'azure.mgmt.network.models' from 'C:\\hostedtoolcache\\windows\\Python\\3.11.9\\x64\\Lib\\site-packages\\azure\\mgmt\\network\\models\\__init__.py'>
Azure SDK for Python