Deletes a router interface.

Note the following before deleting a router interface:
  • You can only delete a router interface in the Idle or Inactive status.

  • Before deleting a router interface, you must delete all custom route entries pointing to it.

Request parameters

Name Type Required Description
Action String Yes

The action to perform. Valid value: 

DeleteRouterInterface

RegionId String Yes

The region of the router interface.

You can obtain the region ID by calling the DescribeRegions API.

RouterInterfaceId String Yes

The ID of the router interface.

ClientToken String No

A client token used to guarantee the idempotence of requests.

This parameter value is generated by the client and must be unique. It cannot exceed 64 ASCII characters.

Response parameters

Name Type Description
RequestId String The ID of the request.

Examples

Request example

https://vpc.aliyuncs.com/?Action=DeleteRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-sf3rxsf
&CommonParameters
Response example
  • XML format

    <? xml version="1.0" encoding="UTF-8"? >
                            <DeleteRouterInterfaceResponse>
        <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
        </DeleteRouterInterfaceResponse>
  • JSON format

     
        "RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"