WebApplicationFirewallPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:web_application_firewall_policies> attribute.
- Inheritance
-
builtins.objectWebApplicationFirewallPoliciesOperations
Constructor
WebApplicationFirewallPoliciesOperations(*args, **kwargs)
Methods
begin_delete |
Deletes Policy. |
create_or_update |
Creates or update policy with specified rule set name within a resource group. |
get |
Retrieve protection policy with specified name within a resource group. |
list |
Lists all of the protection policies within a resource group. |
list_all |
Gets all the WAF policies in a subscription. |
begin_delete
Deletes Policy.
begin_delete(resource_group_name: str, policy_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
policy_name
Required
|
The name of the policy. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
create_or_update
Creates or update policy with specified rule set name within a resource group.
create_or_update(resource_group_name: str, policy_name: str, parameters: _models.WebApplicationFirewallPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> _models.WebApplicationFirewallPolicy
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
policy_name
Required
|
The name of the policy. Required. |
parameters
Required
|
Policy to be created. Is either a WebApplicationFirewallPolicy type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
WebApplicationFirewallPolicy 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) -> WebApplicationFirewallPolicy
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
policy_name
Required
|
The name of the policy. Required. |
Returns
Type | Description |
---|---|
WebApplicationFirewallPolicy 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[WebApplicationFirewallPolicy]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either WebApplicationFirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets all the WAF policies in a subscription.
list_all(**kwargs: Any) -> Iterable[WebApplicationFirewallPolicy]
Returns
Type | Description |
---|---|
An iterator like instance of either WebApplicationFirewallPolicy 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