Deletes endpoints from a custom routing listener.
Usage notes
- DeleteCustomRoutingEndpoints is an asynchronous operation. After you send a request, the system returns a request ID and runs the task in the background. You can call the DescribeCustomRoutingEndpointGroup to query the status of an endpoint group and check whether the endpoint is deleted.
- If the endpoint group is in the updating state, it indicates that the endpoint is being deleted. In this case, you can perform only query operations.
- If the endpoint group is in the active state and the endpoint cannot be found after you call the DescribeCustomRoutingEndpoint operation, it indicates that the endpoint is deleted.
- You cannot repeatedly call the DeleteCustomRoutingEndpoints operation for the same Global Accelerator (GA) instance within the specified period of time.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DeleteCustomRoutingEndpoints | The operation that you want to perform. Set the value to DeleteCustomRoutingEndpoints. |
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. ClientToken can contain only ASCII characters. Note If you do not set this parameter, the system sets ClientToken to the value of RequestId. The value of RequestId may be different for each API request. |
EndpointGroupId | String | Yes | epg-bp1bpn0kn908w4nb**** | The ID of the endpoint group to which the endpoint that you want to delete belongs. |
EndpointIds.N | String | Yes | ep-bp1dmlohjjz4kqaun**** | The IDs of endpoints to be deleted. If you do not set this parameter, all the endpoints in the specified endpoint group are deleted. You can specify at most 10 endpoint IDs. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 04F0F334-1335-436C-A1D7-6C044FE73368 | The request ID. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=DeleteCustomRoutingEndpoints
&RegionId=cn-hangzhou
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&EndpointGroupId=epg-bp1bpn0kn908w4nb****
&EndpointIds=["ep-bp1dmlohjjz4kqaun****"]
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteCustomRoutingEndpointsResponse>
<RequestId>04F0F334-1335-436C-A1D7-6C044FE73368</RequestId>
</DeleteCustomRoutingEndpointsResponse>
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, see Service error codes.