BatchInboundNatPool Constructor
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Initializes a new instance of BatchInboundNatPool.
public BatchInboundNatPool (string name, Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol protocol, int backendPort, int frontendPortRangeStart, int frontendPortRangeEnd);
new Azure.ResourceManager.Batch.Models.BatchInboundNatPool : string * Azure.ResourceManager.Batch.Models.BatchInboundEndpointProtocol * int * int * int -> Azure.ResourceManager.Batch.Models.BatchInboundNatPool
Public Sub New (name As String, protocol As BatchInboundEndpointProtocol, backendPort As Integer, frontendPortRangeStart As Integer, frontendPortRangeEnd As Integer)
Parameters
- name
- String
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.
- protocol
- BatchInboundEndpointProtocol
The protocol of the endpoint.
- backendPort
- Int32
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.
- frontendPortRangeStart
- Int32
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
- frontendPortRangeEnd
- Int32
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. If any reserved or overlapping values are provided the request fails with HTTP status code 400.
Exceptions
name
is null.
Applies to
Azure SDK for .NET