共用方式為


BatchNetworkSecurityGroupRule Class

Definition

A network security group rule to apply to an inbound endpoint.

public class BatchNetworkSecurityGroupRule : System.ClientModel.Primitives.IJsonModel<Azure.ResourceManager.Batch.Models.BatchNetworkSecurityGroupRule>, System.ClientModel.Primitives.IPersistableModel<Azure.ResourceManager.Batch.Models.BatchNetworkSecurityGroupRule>
public class BatchNetworkSecurityGroupRule
type BatchNetworkSecurityGroupRule = class
    interface IJsonModel<BatchNetworkSecurityGroupRule>
    interface IPersistableModel<BatchNetworkSecurityGroupRule>
type BatchNetworkSecurityGroupRule = class
Public Class BatchNetworkSecurityGroupRule
Implements IJsonModel(Of BatchNetworkSecurityGroupRule), IPersistableModel(Of BatchNetworkSecurityGroupRule)
Public Class BatchNetworkSecurityGroupRule
Inheritance
BatchNetworkSecurityGroupRule
Implements

Constructors

BatchNetworkSecurityGroupRule(Int32, BatchNetworkSecurityGroupRuleAccess, String)

Initializes a new instance of BatchNetworkSecurityGroupRule.

Properties

Access

The action that should be taken for a specified IP address, subnet range or tag.

Priority

Priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 4096. If any reserved or duplicate values are provided the request fails with HTTP status code 400.

SourceAddressPrefix

Valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.

SourcePortRanges

Valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e. 100-200). The ports should in the range of 0 to 65535 and the port ranges or ports can't overlap. If any other values are provided the request fails with HTTP status code 400. Default value will be *.

Explicit Interface Implementations

IJsonModel<BatchNetworkSecurityGroupRule>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<BatchNetworkSecurityGroupRule>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<BatchNetworkSecurityGroupRule>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<BatchNetworkSecurityGroupRule>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<BatchNetworkSecurityGroupRule>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to