FirewallPoliciesOperations Class
Warning
DO NOT instantiate this class directly.
Instead, you should access the following operations through
<xref:firewall_policies> attribute.
- Inheritance
-
builtins.objectFirewallPoliciesOperations
Constructor
FirewallPoliciesOperations(*args, **kwargs)
Methods
begin_create_or_update |
Creates or updates the specified Firewall Policy. |
begin_delete |
Deletes the specified Firewall Policy. |
get |
Gets the specified Firewall Policy. |
list |
Lists all Firewall Policies in a resource group. |
list_all |
Gets all the Firewall Policies in a subscription. |
update_tags |
Updates tags of a Azure Firewall Policy resource. |
begin_create_or_update
Creates or updates the specified Firewall Policy.
begin_create_or_update(resource_group_name: str, firewall_policy_name: str, parameters: _models.FirewallPolicy, *, content_type: str = 'application/json', **kwargs: Any) -> LROPoller[_models.FirewallPolicy]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
parameters
Required
|
Parameters supplied to the create or update Firewall Policy operation. Is either a FirewallPolicy type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either FirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
begin_delete
Deletes the specified Firewall Policy.
begin_delete(resource_group_name: str, firewall_policy_name: str, **kwargs: Any) -> LROPoller[None]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
Returns
Type | Description |
---|---|
An instance of LROPoller that returns either None or the result of cls(response) |
Exceptions
Type | Description |
---|---|
get
Gets the specified Firewall Policy.
get(resource_group_name: str, firewall_policy_name: str, *, expand: str | None = None, **kwargs: Any) -> FirewallPolicy
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
Keyword-Only Parameters
Name | Description |
---|---|
expand
|
Expands referenced resources. Default value is None. |
Returns
Type | Description |
---|---|
FirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list
Lists all Firewall Policies in a resource group.
list(resource_group_name: str, **kwargs: Any) -> Iterable[FirewallPolicy]
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
Returns
Type | Description |
---|---|
An iterator like instance of either FirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
list_all
Gets all the Firewall Policies in a subscription.
list_all(**kwargs: Any) -> Iterable[FirewallPolicy]
Returns
Type | Description |
---|---|
An iterator like instance of either FirewallPolicy or the result of cls(response) |
Exceptions
Type | Description |
---|---|
update_tags
Updates tags of a Azure Firewall Policy resource.
update_tags(resource_group_name: str, firewall_policy_name: str, parameters: _models.TagsObject, *, content_type: str = 'application/json', **kwargs: Any) -> _models.FirewallPolicy
Parameters
Name | Description |
---|---|
resource_group_name
Required
|
The name of the resource group. Required. |
firewall_policy_name
Required
|
The name of the Firewall Policy. Required. |
parameters
Required
|
Parameters supplied to update Azure Firewall Policy tags. Is either a TagsObject type or a IO[bytes] type. Required. |
Returns
Type | Description |
---|---|
FirewallPolicy 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