NetworkSecurityGroup Class

NetworkSecurityGroup resource.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
azure.mgmt.network.v2019_02_01.models._models_py3.Resource
NetworkSecurityGroup

Constructor

NetworkSecurityGroup(*, id: typing.Union[str, NoneType] = None, location: typing.Union[str, NoneType] = None, tags: typing.Union[typing.Dict[str, str], NoneType] = None, etag: typing.Union[str, NoneType] = None, security_rules: typing.Union[typing.List[_ForwardRef('SecurityRule')], NoneType] = None, default_security_rules: typing.Union[typing.List[_ForwardRef('SecurityRule')], NoneType] = None, resource_guid: typing.Union[str, NoneType] = None, provisioning_state: typing.Union[str, NoneType] = None, **kwargs)

Parameters

id
str

Resource ID.

location
str

Resource location.

tags
dict[str, str]

A set of tags. Resource tags.

etag
str

A unique read-only string that changes whenever the resource is updated.

security_rules
list[SecurityRule]

A collection of security rules of the network security group.

default_security_rules
list[SecurityRule]

The default security rules of network security group.

resource_guid
str

The resource GUID property of the network security group resource.

provisioning_state
str

The provisioning state of the public IP resource. Possible values are: 'Updating', 'Deleting', and 'Failed'.

Variables

name
str

Resource name.

type
str

Resource type.

network_interfaces
list[NetworkInterface]

A collection of references to network interfaces.

subnets
list[Subnet]

A collection of references to subnets.