Deletes traffic destinations of endpoints.
Usage notes
- DeleteCustomRoutingEndpointTrafficPolicies is an asynchronous operation. After you send a request, the system returns a request
ID, but the operation is still being performed in the system background. You can call
the DescribeCustomRoutingEndpointGroup operation to query the status of an endpoint group to check whether the traffic destinations
are deleted.
- If the endpoint group is in the updating state, the traffic destinations are being deleted. In this case, you can perform only query operations.
- If the endpoint group is in the active state and the traffic destinations that you want to delete cannot be queried by calling the DescribeCustomRoutingEndPointTrafficPolicy operation, the traffic destinations are deleted.
- The DeleteCustomRoutingEndpointTrafficPolicies operation cannot be repeatedly called for the same Global Accelerator (GA) instance within a specific period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteCustomRoutingEndpointTrafficPolicies |
The operation that you want to perform. Set the value to DeleteCustomRoutingEndpointTrafficPolicies. |
RegionId | String | Yes | cn-hangzhou |
The ID of the region where the GA instance is deployed. Set the value to cn-hangzhou. |
ClientToken | String | No | 123e4567-e89b-12d3-a456-426655440000 |
The client token that is used to ensure the idempotence of the request. You can use the client to generate the value, but you must ensure that it is unique among all requests. The token can contain only ASCII characters. Note If you do not specify this parameter, the system uses RequestId as ClientToken. RequestId may be different for each API request.
|
EndpointId | String | No | ep-2zewuzypq5e6r3pfh**** |
The ID of the endpoint for which you want to delete traffic destinations. Note This parameter is required.
|
PolicyIds.N | String | No | ply-bptest2**** |
The IDs of the traffic destinations. You can specify the IDs of up to 9,000 traffic destinations. Note This parameter is required.
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 |
The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteCustomRoutingEndpointTrafficPolicies
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&EndpointId=ep-2zewuzypq5e6r3pfh****
&PolicyIds=["ply-bptest2****"]
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteCustomRoutingEndpointTrafficPoliciesResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</DeleteCustomRoutingEndpointTrafficPoliciesResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "04F0F334-1335-436C-A1D7-6C044FE73368"
}
Error codes
For a list of error codes, visit the API Error Center.