Compartilhar via


DefaultAdminRule Class

Network default admin rule.

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

All required parameters must be populated in order to send to server.

Inheritance
azure.mgmt.network.models._models_py3.BaseAdminRule
DefaultAdminRule

Constructor

DefaultAdminRule(*, flag: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
flag
str

Default rule flag.

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.

kind

Whether the rule is custom or default. Required. Known values are: "Custom" and "Default".

system_data

The system metadata related to this resource.

description
str

A description for this rule. Restricted to 140 chars.

flag
str

Default rule flag.

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.

access

Indicates the access allowed for this particular rule. Known values are: "Allow", "Deny", and "AlwaysAllow".

priority
int

The priority of the rule. The value can be between 1 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule.

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 resource. Known values are: "Failed", "Succeeded", "Canceled", "Creating", "Updating", and "Deleting".

resource_guid
str

Unique identifier for this resource.