Endpoints - Update
Update a Traffic Manager endpoint.
PATCH https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}?api-version=2022-04-01
URI Parameters
| Name | In | Required | Type | Description |
|---|---|---|---|---|
|
endpoint
|
path | True |
string |
The name of the Traffic Manager endpoint. |
|
endpoint
|
path | True |
The type of the Traffic Manager endpoint. |
|
|
profile
|
path | True |
string |
The name of the Traffic Manager profile. |
|
resource
|
path | True |
string minLength: 1maxLength: 90 |
The name of the resource group. The name is case insensitive. |
|
subscription
|
path | True |
string minLength: 1 |
The ID of the target subscription. |
|
api-version
|
query | True |
string minLength: 1 |
The API version to use for this operation. |
Request Body
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} |
| name |
string |
The name of the resource |
| properties.alwaysServe |
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. |
|
| properties.customHeaders |
List of custom headers. |
|
| properties.endpointLocation |
string |
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method. |
| properties.endpointMonitorStatus |
The monitoring status of the endpoint. |
|
| properties.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. |
|
| properties.geoMapping |
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. |
| properties.minChildEndpoints |
integer (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'. |
| properties.minChildEndpointsIPv4 |
integer (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'. |
| properties.minChildEndpointsIPv6 |
integer (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'. |
| properties.priority |
integer (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. |
| properties.subnets |
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. |
|
| properties.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. |
| properties.targetResourceId |
string |
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. |
| properties.weight |
integer (int64) |
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000. |
| type |
string |
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles. |
Responses
| Name | Type | Description |
|---|---|---|
| 200 OK |
Azure operation completed successfully. |
|
| Other Status Codes |
An unexpected error response. |
Security
azure_auth
Azure Active Directory OAuth2 Flow.
Type:
oauth2
Flow:
implicit
Authorization URL:
https://login.microsoftonline.com/common/oauth2/authorize
Scopes
| Name | Description |
|---|---|
| user_impersonation | impersonate your user account |
Examples
Endpoint-PATCH-External-Target
Sample request
PATCH https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2022-04-01
{
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"properties": {
"target": "another.foobar.contoso.com"
}
}
Sample response
{
"name": "azsmnet7187",
"type": "Microsoft.Network/trafficManagerProfiles/externalEndpoints",
"id": "/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficManagerProfiles/azsmnet6386/externalEndpoints/azsmnet7187",
"properties": {
"endpointLocation": "North Europe",
"endpointMonitorStatus": "CheckingEndpoint",
"endpointStatus": "Enabled",
"priority": 1,
"target": "another.foobar.contoso.com",
"weight": 1
}
}
Definitions
| Name | Description |
|---|---|
|
Always |
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. |
|
Cloud |
An error returned by the Azure Resource Manager |
|
Cloud |
The content of an error returned by the Azure Resource Manager |
| Endpoint |
Class representing a Traffic Manager endpoint. |
|
Endpoint |
The monitoring status of the endpoint. |
|
Endpoint |
Custom header name and value. |
|
Endpoint |
Subnet first address, scope, and/or last address. |
|
Endpoint |
The status of the endpoint. If the endpoint is Enabled, it is probed for endpoint health and is included in the traffic routing method. |
|
Endpoint |
The type of the Traffic Manager endpoint. |
AlwaysServe
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method.
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
CloudError
An error returned by the Azure Resource Manager
| Name | Type | Description |
|---|---|---|
| error |
The content of the error. |
CloudErrorBody
The content of an error returned by the Azure Resource Manager
| Name | Type | Description |
|---|---|---|
| code |
string |
Error code |
| details |
Error details |
|
| message |
string |
Error message |
| target |
string |
Error target |
Endpoint
Class representing a Traffic Manager endpoint.
| Name | Type | Description |
|---|---|---|
| id |
string (arm-id) |
Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} |
| name |
string |
The name of the resource |
| properties.alwaysServe |
If Always Serve is enabled, probing for endpoint health will be disabled and endpoints will be included in the traffic routing method. |
|
| properties.customHeaders |
List of custom headers. |
|
| properties.endpointLocation |
string |
Specifies the location of the external or nested endpoints when using the 'Performance' traffic routing method. |
| properties.endpointMonitorStatus |
The monitoring status of the endpoint. |
|
| properties.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. |
|
| properties.geoMapping |
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. |
| properties.minChildEndpoints |
integer (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'. |
| properties.minChildEndpointsIPv4 |
integer (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'. |
| properties.minChildEndpointsIPv6 |
integer (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'. |
| properties.priority |
integer (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. |
| properties.subnets |
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. |
|
| properties.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. |
| properties.targetResourceId |
string |
The Azure Resource URI of the of the endpoint. Not applicable to endpoints of type 'ExternalEndpoints'. |
| properties.weight |
integer (int64) |
The weight of this endpoint when using the 'Weighted' traffic routing method. Possible values are from 1 to 1000. |
| type |
string |
The type of the resource. Ex- Microsoft.Network/trafficManagerProfiles. |
EndpointMonitorStatus
The monitoring status of the endpoint.
| Value | Description |
|---|---|
| CheckingEndpoint | |
| Online | |
| Degraded | |
| Disabled | |
| Inactive | |
| Stopped | |
| Unmonitored |
EndpointPropertiesCustomHeadersItem
Custom header name and value.
| Name | Type | Description |
|---|---|---|
| name |
string |
Header name. |
| value |
string |
Header value. |
EndpointPropertiesSubnetsItem
Subnet first address, scope, and/or last address.
| Name | Type | Description |
|---|---|---|
| first |
string |
First address in the subnet. |
| last |
string |
Last address in the subnet. |
| scope |
integer (int32) |
Block size (number of leading bits in the subnet mask). |
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.
| Value | Description |
|---|---|
| Enabled | |
| Disabled |
EndpointType
The type of the Traffic Manager endpoint.
| Value | Description |
|---|---|
| AzureEndpoints | |
| ExternalEndpoints | |
| NestedEndpoints |