PoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<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
|
Name of the Resource group within the Azure subscription. Required. |
policy_name
Required
|
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 either CdnWebApplicationFirewallPolicy or the result of cls(response) |
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
|
Name of the Resource group within the Azure subscription. Required. |
policy_name
Required
|
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 either CdnWebApplicationFirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
delete
Deletes Policy.
delete(resource_group_name: str, policy_name: str, **kwargs: Any) -> None
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
policy_name
Required
|
The name of the CdnWebApplicationFirewallPolicy. Required. |
Returns
Type | Description |
---|---|
None or the result of cls(response) |
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
|
Name of the Resource group within the Azure subscription. Required. |
policy_name
Required
|
The name of the CdnWebApplicationFirewallPolicy. Required. |
Returns
Type | Description |
---|---|
CdnWebApplicationFirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists all of the protection policies within a resource group.
list(resource_group_name: str, **kwargs: Any) -> Iterable[CdnWebApplicationFirewallPolicy]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
Name of the Resource group within the Azure subscription. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either CdnWebApplicationFirewallPolicy 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'>
Azure SDK for Python