Deletes a router interface.
When you call this operation, take note of the following limits:
- You can delete only a router interface that is in the Idle or Inactive state.
- Before you delete a router interface, you must delete all custom route entries destined for the router interface.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
RegionId | String | Yes | cn-shanghai | The ID of the region where the router interface is deployed. You can call the DescribeRegions operation to query the most recent region list. |
RouterInterfaceId | String | Yes | ri-2zeo3xzyf38r4urz**** | The ID of the router interface. |
Action | String | Yes | DeleteRouterInterface | The operation that you want to perform. Set the value to DeleteRouterInterface. |
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 make sure that it is unique among different requests. The token can contain only ASCII characters. Note If you do not set this parameter, the system uses RequestId as ClientToken. The value of RequestId in each API request may be different. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 | The ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?RegionId=cn-shanghai
&RouterInterfaceId=ri-2zeo3xzyf38r4urz****
&Action=DeleteRouterInterface
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<DeleteRouterInterfaceResponse>
<RequestId>54B48E3D-DF70-471B-AA93-08E683A1B45</RequestId>
</DeleteRouterInterfaceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "54B48E3D-DF70-471B-AA93-08E683A1B45"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
400 | InvalidInstance.StatusError | The router instance status error. | The error message returned because the instance is in an invalid state. |
For a list of error codes, see Service error codes.