Share via


Endpoints - Delete

Deletes a Traffic Manager endpoint.

DELETE 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
endpointName
path True

string

The name of the Traffic Manager endpoint.

endpointType
path True

EndpointType

The type of the Traffic Manager endpoint.

profileName
path True

string

The name of the Traffic Manager profile.

resourceGroupName
path True

string

minLength: 1
maxLength: 90

The name of the resource group. The name is case insensitive.

subscriptionId
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.

Responses

Name Type Description
200 OK

DeleteOperationResult

Azure operation completed successfully.

204 No Content

Resource does not exist.

Other Status Codes

CloudError

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-DELETE-External

Sample request

DELETE https://management.azure.com/subscriptions/{subscription-id}/resourceGroups/azuresdkfornetautoresttrafficmanager1421/providers/Microsoft.Network/trafficmanagerprofiles/azsmnet6386/ExternalEndpoints/azsmnet7187?api-version=2022-04-01

Sample response

{}

Definitions

Name Description
CloudError

An error returned by the Azure Resource Manager

CloudErrorBody

The content of an error returned by the Azure Resource Manager

DeleteOperationResult

The result of the request or operation.

EndpointType

The type of the Traffic Manager endpoint.

CloudError

An error returned by the Azure Resource Manager

Name Type Description
error

CloudErrorBody

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

CloudErrorBody[]

Error details

message

string

Error message

target

string

Error target

DeleteOperationResult

The result of the request or operation.

Name Type Description
boolean

boolean

The result of the operation or request.

EndpointType

The type of the Traffic Manager endpoint.

Value Description
AzureEndpoints
ExternalEndpoints
NestedEndpoints