共用方式為


NetworkAdminRule Class

Definition

Network admin rule.

public class NetworkAdminRule : Azure.ResourceManager.Network.BaseAdminRuleData, System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Network.Models.NetworkAdminRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Network.Models.NetworkAdminRule>
public class NetworkAdminRule : Azure.ResourceManager.Network.BaseAdminRuleData
type NetworkAdminRule = class
    inherit BaseAdminRuleData
    interface IJsonModel<NetworkAdminRule>
    interface IPersistableModel<NetworkAdminRule>
type NetworkAdminRule = class
    inherit BaseAdminRuleData
Public Class NetworkAdminRule
Inherits BaseAdminRuleData
Implements IJsonModel(Of NetworkAdminRule), IPersistableModel(Of NetworkAdminRule)
Public Class NetworkAdminRule
Inherits BaseAdminRuleData
Inheritance
Implements

Constructors

NetworkAdminRule()

Initializes a new instance of NetworkAdminRule.

Properties

Access

Indicates the access allowed for this particular rule.

Description

A description for this rule. Restricted to 140 chars.

DestinationPortRanges

The destination port ranges.

Destinations

The destination address prefixes. CIDR or destination IP ranges.

Direction

Indicates if the traffic matched against the rule in inbound or outbound.

ETag

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

(Inherited from BaseAdminRuleData)
Id

Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.

(Inherited from ResourceData)
Name

The name of the resource.

(Inherited from ResourceData)
Priority

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.

Protocol

Network protocol this rule applies to.

ProvisioningState

The provisioning state of the resource.

ResourceGuid

Unique identifier for this resource.

ResourceType

The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

(Inherited from ResourceData)
SourcePortRanges

The source port ranges.

Sources

The CIDR or source IP ranges.

SystemData

Azure Resource Manager metadata containing createdBy and modifiedBy information.

(Inherited from ResourceData)

Methods

JsonModelWriteCore(Utf8JsonWriter, ModelReaderWriterOptions) (Inherited from ResourceData)

Explicit Interface Implementations

IJsonModel<BaseAdminRuleData>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

(Inherited from BaseAdminRuleData)
IJsonModel<BaseAdminRuleData>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

(Inherited from BaseAdminRuleData)
IJsonModel<NetworkAdminRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<NetworkAdminRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BaseAdminRuleData>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

(Inherited from BaseAdminRuleData)
IPersistableModel<BaseAdminRuleData>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

(Inherited from BaseAdminRuleData)
IPersistableModel<BaseAdminRuleData>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

(Inherited from BaseAdminRuleData)
IPersistableModel<NetworkAdminRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<NetworkAdminRule>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<NetworkAdminRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to