Skip to main content

endpoints

Creates, updates, deletes, gets or lists an endpoints resource.

Overview

Nameendpoints
TypeResource
Idazure.traffic_manager.endpoints

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName}.
namestringThe name of the resource.
alwaysServestringIf Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
customHeadersarrayList of custom headers.
endpointLocationstringSpecifies the location of the external or nested endpoints when using the 'Performance' traffic routing method.
endpointMonitorStatusstringThe monitoring status of the endpoint. Known values are: "CheckingEndpoint", "Online", "Degraded", "Disabled", "Inactive", "Stopped", and "Unmonitored". (CheckingEndpoint, Online, Degraded, Disabled, Inactive, Stopped, Unmonitored)
endpointStatusstringThe status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. Known values are: "Enabled" and "Disabled". (Enabled, Disabled)
geoMappingarrayThe 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.
minChildEndpointsintegerThe 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'.
minChildEndpointsIPv4integerThe 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'.
minChildEndpointsIPv6integerThe 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'.
priorityintegerThe 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.
subnetsarrayThe 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.
targetstringThe fully-qualified DNS name or IP address of the endpoint. Traffic Manager returns this value in DNS responses to direct traffic to this endpoint.
targetResourceIdstringThe Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
typestringThe type of the resource. Ex- Microsoft.Network/trafficManagerProfiles.
weightintegerThe weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectresource_group_name, profile_name, endpoint_type, endpoint_name, subscription_idGets a Traffic Manager endpoint.
create_or_updateinsertresource_group_name, profile_name, endpoint_type, endpoint_name, subscription_idCreate or update a Traffic Manager endpoint.
updateupdateresource_group_name, profile_name, endpoint_type, endpoint_name, subscription_idUpdate a Traffic Manager endpoint.
create_or_updatereplaceresource_group_name, profile_name, endpoint_type, endpoint_name, subscription_idCreate or update a Traffic Manager endpoint.
deletedeleteresource_group_name, profile_name, endpoint_type, endpoint_name, subscription_idDeletes a Traffic Manager endpoint.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
endpoint_namestringThe name of the Traffic Manager endpoint. Required.
endpoint_typestringThe type of the Traffic Manager endpoint. Known values are: "AzureEndpoints", "ExternalEndpoints", and "NestedEndpoints". Required.
profile_namestringThe name of the Traffic Manager profile. Required.
resource_group_namestringThe name of the resource group. The name is case insensitive. Required.
subscription_idstring

SELECT examples

Gets a Traffic Manager endpoint.

SELECT
id,
name,
alwaysServe,
customHeaders,
endpointLocation,
endpointMonitorStatus,
endpointStatus,
geoMapping,
minChildEndpoints,
minChildEndpointsIPv4,
minChildEndpointsIPv6,
priority,
subnets,
target,
targetResourceId,
type,
weight
FROM azure.traffic_manager.endpoints
WHERE resource_group_name = '{{ resource_group_name }}' -- required
AND profile_name = '{{ profile_name }}' -- required
AND endpoint_type = '{{ endpoint_type }}' -- required
AND endpoint_name = '{{ endpoint_name }}' -- required
AND subscription_id = '{{ subscription_id }}' -- required
;

INSERT examples

Create or update a Traffic Manager endpoint.

INSERT INTO azure.traffic_manager.endpoints (
id,
name,
type,
properties,
resource_group_name,
profile_name,
endpoint_type,
endpoint_name,
subscription_id
)
SELECT
'{{ id }}',
'{{ name }}',
'{{ type }}',
'{{ properties }}',
'{{ resource_group_name }}',
'{{ profile_name }}',
'{{ endpoint_type }}',
'{{ endpoint_name }}',
'{{ subscription_id }}'
RETURNING
id,
name,
properties,
type
;

UPDATE examples

Update a Traffic Manager endpoint.

UPDATE azure.traffic_manager.endpoints
SET
id = '{{ id }}',
name = '{{ name }}',
type = '{{ type }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_type = '{{ endpoint_type }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

REPLACE examples

Create or update a Traffic Manager endpoint.

REPLACE azure.traffic_manager.endpoints
SET
id = '{{ id }}',
name = '{{ name }}',
type = '{{ type }}',
properties = '{{ properties }}'
WHERE
resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_type = '{{ endpoint_type }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
RETURNING
id,
name,
properties,
type;

DELETE examples

Deletes a Traffic Manager endpoint.

DELETE FROM azure.traffic_manager.endpoints
WHERE resource_group_name = '{{ resource_group_name }}' --required
AND profile_name = '{{ profile_name }}' --required
AND endpoint_type = '{{ endpoint_type }}' --required
AND endpoint_name = '{{ endpoint_name }}' --required
AND subscription_id = '{{ subscription_id }}' --required
;