Compartilhar via


SecurityUserRule Class

Network security user rule.

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

Inheritance
azure.mgmt.network.models._models_py3.ChildResource
SecurityUserRule

Constructor

SecurityUserRule(*, description: str | None = None, protocol: str | _models.SecurityConfigurationRuleProtocol | None = None, sources: List[_models.AddressPrefixItem] | None = None, destinations: List[_models.AddressPrefixItem] | None = None, source_port_ranges: List[str] | None = None, destination_port_ranges: List[str] | None = None, direction: str | _models.SecurityConfigurationRuleDirection | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
description
str

A description for this rule.

protocol

Network protocol this rule applies to. Known values are: "Tcp", "Udp", "Icmp", "Esp", "Any", and "Ah".

sources

The CIDR or source IP ranges.

destinations

The destination address prefixes. CIDR or destination IP ranges.

source_port_ranges

The source port ranges.

destination_port_ranges

The destination port ranges.

direction

Indicates if the traffic matched against the rule in inbound or outbound. Known values are: "Inbound" and "Outbound".

Variables

Name Description
id
str

Resource ID.

name
str

Resource name.

type
str

Resource type.

etag
str

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

system_data

The system metadata related to this resource.

description
str

A description for this rule.

protocol

Network protocol this rule applies to. Known values are: "Tcp", "Udp", "Icmp", "Esp", "Any", and "Ah".

sources

The CIDR or source IP ranges.

destinations

The destination address prefixes. CIDR or destination IP ranges.

source_port_ranges

The source port ranges.

destination_port_ranges

The destination port ranges.

direction

Indicates if the traffic matched against the rule in inbound or outbound. Known values are: "Inbound" and "Outbound".

provisioning_state

The provisioning state of the security configuration user rule resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".

resource_guid
str

Unique identifier for this resource.