Compartilhar via


InboundNatPool Class

Definition

A inbound NAT Pool that can be used to address specific ports on Compute Nodes in a Batch Pool externally.

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

Constructors

InboundNatPool(String, InboundEndpointProtocol, Int32, Int32, Int32)

Initializes a new instance of InboundNatPool.

Properties

BackendPort

The port number on the Compute Node. This must be unique within a Batch Pool. Acceptable values are between 1 and 65535 except for 22, 3389, 29876 and 29877 as these are reserved. If any reserved values are provided the request fails with HTTP status code 400.

FrontendPortRangeEnd

The last port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved by the Batch service. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.

FrontendPortRangeStart

The first port number in the range of external ports that will be used to provide inbound access to the backendPort on individual Compute Nodes. Acceptable values range between 1 and 65534 except ports from 50000 to 55000 which are reserved. All ranges within a Pool must be distinct and cannot overlap. Each range must contain at least 40 ports. If any reserved or overlapping values are provided the request fails with HTTP status code 400.

Name

The name of the endpoint. The name must be unique within a Batch Pool, can contain letters, numbers, underscores, periods, and hyphens. Names must start with a letter or number, must end with a letter, number, or underscore, and cannot exceed 77 characters. If any invalid values are provided the request fails with HTTP status code 400.

NetworkSecurityGroupRules

A list of network security group rules that will be applied to the endpoint. The maximum number of rules that can be specified across all the endpoints on a Batch Pool is 25. If no network security group rules are specified, a default rule will be created to allow inbound access to the specified backendPort. If the maximum number of network security group rules is exceeded the request fails with HTTP status code 400.

Protocol

The protocol of the endpoint.

Explicit Interface Implementations

IJsonModel<InboundNatPool>.Create(Utf8JsonReader, ModelReaderWriterOptions)

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

IJsonModel<InboundNatPool>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<InboundNatPool>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<InboundNatPool>.GetFormatFromOptions(ModelReaderWriterOptions)

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

IPersistableModel<InboundNatPool>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to