edit-icon download-icon

DeleteRouterInterface

Last Updated: Apr 09, 2018

Description

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.

For more information, see How to ensure idempotence.

Response parameters

Name Type Description
RequestId String The ID of the request.

Error codes

See VPC API Error Center.

Examples

Request example

  1. https://vpc.aliyuncs.com/?Action=DeleteRouterInterface
  2. &RegionId=cn-hangzhou
  3. &RouterInterfaceId=ri-Bsfasf
  4. &<CommonParameters>

Response example

JSON format

  1. {
  2. "RequestId":"4EC47282-1B74-4534-BD0E-403F3EE64CAF"
  3. }
Thank you! We've received your feedback.