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 token, but you must make sure that the token is unique among different requests. The token can contain only ASCII characters. Note If you do not specify this parameter, the system automatically uses the request ID as the client token. The request ID may be different for each request. |
Response parameters
Parameter | Type | Example | Description |
RequestId | String | 54B48E3D-DF70-471B-AA93-08E683A1B45 | The request ID. |
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 instance is in an invalid state. |
400 | OperationFailed.OperationLocked | Operation failed because OperationLocked. | The operation failed because the instance is locked due to O&M. |
For a list of error codes, see Service error codes.