Deactivates a router interface.

After you call this action, the router interface changes to the Deactivating state. After deactivation is completed, the router interface changes to the Inactive state.
Note A router interface under an account with an insufficient balance cannot be deactivated.


By using API Explorer, you can easily debug APIs, automatically generate SDK code examples, and quickly search for APIs.

Request parameters

Parameter Type Required? Example value Description
Action String Yes DeactivateRouterInterface

The name of this action. Value: 


RegionId String Yes cn-hangzhou

The ID of the region to which the router interface to be deactivated belongs.

To query the region ID, call DescribeRegions.

RouterInterfaceId String Yes ri-2zeo3xzyf38r4urzdpvfs

The ID of the router interface.

Response parameters

Parameter Type Example value Description
RequestId String BE7EB53A-99AB-4DA8-AEDE-75FA90D046A6 The ID of the request.


Request example

Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record. The specified router interface does not exist.
400 IncorrectStatus RouterInterface can be operated by this action only when it's status is Active. You can perform this action only if the router interface is in the Active state.
400 Forbidden.FinancileLocked This RouterInterface is financiel locked because of bills outstanding. The router interface is locked because your bill is overdue.

See common error codes