共用方式為


Endpoint Constructors

Definition

Overloads

Endpoint()

Initializes a new instance of the Endpoint class.

Endpoint(String, String, String, String, String, Nullable<EndpointStatus>, Nullable<Int64>, Nullable<Int64>, String, Nullable<EndpointMonitorStatus>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, IList<String>, IList<EndpointPropertiesSubnetsItem>, IList<EndpointPropertiesCustomHeadersItem>)

Initializes a new instance of the Endpoint class.

Endpoint()

Initializes a new instance of the Endpoint class.

public Endpoint ();
Public Sub New ()

Applies to

Endpoint(String, String, String, String, String, Nullable<EndpointStatus>, Nullable<Int64>, Nullable<Int64>, String, Nullable<EndpointMonitorStatus>, Nullable<Int64>, Nullable<Int64>, Nullable<Int64>, IList<String>, IList<EndpointPropertiesSubnetsItem>, IList<EndpointPropertiesCustomHeadersItem>)

Initializes a new instance of the Endpoint class.

public Endpoint (string id = default, string name = default, string type = default, string targetResourceId = default, string target = default, Microsoft.Azure.Management.TrafficManager.Models.EndpointStatus? endpointStatus = default, long? weight = default, long? priority = default, string endpointLocation = default, Microsoft.Azure.Management.TrafficManager.Models.EndpointMonitorStatus? endpointMonitorStatus = default, long? minChildEndpoints = default, long? minChildEndpointsIPv4 = default, long? minChildEndpointsIPv6 = default, System.Collections.Generic.IList<string> geoMapping = default, System.Collections.Generic.IList<Microsoft.Azure.Management.TrafficManager.Models.EndpointPropertiesSubnetsItem> subnets = default, System.Collections.Generic.IList<Microsoft.Azure.Management.TrafficManager.Models.EndpointPropertiesCustomHeadersItem> customHeaders = default);
new Microsoft.Azure.Management.TrafficManager.Models.Endpoint : string * string * string * string * string * Nullable<Microsoft.Azure.Management.TrafficManager.Models.EndpointStatus> * Nullable<int64> * Nullable<int64> * string * Nullable<Microsoft.Azure.Management.TrafficManager.Models.EndpointMonitorStatus> * Nullable<int64> * Nullable<int64> * Nullable<int64> * System.Collections.Generic.IList<string> * System.Collections.Generic.IList<Microsoft.Azure.Management.TrafficManager.Models.EndpointPropertiesSubnetsItem> * System.Collections.Generic.IList<Microsoft.Azure.Management.TrafficManager.Models.EndpointPropertiesCustomHeadersItem> -> Microsoft.Azure.Management.TrafficManager.Models.Endpoint
Public Sub New (Optional id As String = Nothing, Optional name As String = Nothing, Optional type As String = Nothing, Optional targetResourceId As String = Nothing, Optional target As String = Nothing, Optional endpointStatus As Nullable(Of EndpointStatus) = Nothing, Optional weight As Nullable(Of Long) = Nothing, Optional priority As Nullable(Of Long) = Nothing, Optional endpointLocation As String = Nothing, Optional endpointMonitorStatus As Nullable(Of EndpointMonitorStatus) = Nothing, Optional minChildEndpoints As Nullable(Of Long) = Nothing, Optional minChildEndpointsIPv4 As Nullable(Of Long) = Nothing, Optional minChildEndpointsIPv6 As Nullable(Of Long) = Nothing, Optional geoMapping As IList(Of String) = Nothing, Optional subnets As IList(Of EndpointPropertiesSubnetsItem) = Nothing, Optional customHeaders As IList(Of EndpointPropertiesCustomHeadersItem) = Nothing)

Parameters

id
String

Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}

name
String

The name of the resource

type
String

The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.

targetResourceId
String

The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.

target
String

The fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.

endpointStatus
Nullable<EndpointStatus>

The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. Possible values include: 'Enabled', 'Disabled'

weight
Nullable<Int64>

The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.

priority
Nullable<Int64>

The priority of this endpoint when using the 'Priority' traffic routing method. Possible values are from 1 to 1000, lower values represent higher priority. This is an optional parameter. If specified, it must be specified on all endpoints, and no two endpoints can share the same priority value.

endpointLocation
String

Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.

endpointMonitorStatus
Nullable<EndpointMonitorStatus>

The monitoring status of the endpoint. Possible values include: 'CheckingEndpoint', 'Online', 'Degraded', 'Disabled', 'Inactive', 'Stopped'

minChildEndpoints
Nullable<Int64>

The minimum number of endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.

minChildEndpointsIPv4
Nullable<Int64>

The minimum number of IPv4 (DNS record type A) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.

minChildEndpointsIPv6
Nullable<Int64>

The minimum number of IPv6 (DNS record type AAAA) endpoints that must be available in the child profile in order for the parent profile to be considered available. Only applicable to endpoint of type 'NestedEndpoints'.

geoMapping
IList<String>

The list of countries/regions mapped to this endpoint when using the 'Geographic' traffic routing method. Please consult Traffic Manager Geographic documentation for a full list of accepted values.

subnets
IList<EndpointPropertiesSubnetsItem>

The list of subnets, IP addresses, and/or address ranges mapped to this endpoint when using the 'Subnet' traffic routing method. An empty list will match all ranges not covered by other endpoints.

customHeaders
IList<EndpointPropertiesCustomHeadersItem>

List of custom headers.

Applies to