NetworkSecurityGroup Class

NetworkSecurityGroup resource.

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

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

Constructor

NetworkSecurityGroup(*, id: str | None = None, location: str | None = None, tags: Dict[str, str] | None = None, flush_connection: bool | None = None, security_rules: List[_models.SecurityRule] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
id
str

Resource ID.

location
str

Resource location.

tags

Resource tags.

flush_connection

When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.

security_rules

A collection of security rules of the network security group.

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

location
str

Resource location.

tags

Resource tags.

etag
str

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

flush_connection

When enabled, flows created from Network Security Group connections will be re-evaluated when rules are updates. Initial enablement will trigger re-evaluation.

security_rules

A collection of security rules of the network security group.

default_security_rules

The default security rules of network security group.

network_interfaces

A collection of references to network interfaces.

subnets

A collection of references to subnets.

flow_logs

A collection of references to flow log resources.

resource_guid
str

The resource GUID property of the network security group resource.

provisioning_state

The provisioning state of the network security group resource. Known values are: "Succeeded", "Updating", "Deleting", and "Failed".