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