Disables a router interface.

After you call this operation, the state of the router interface changes to Deactivating. After the router interface is disabled, its state changes to Inactive.

Note You cannot disable a router interface that has overdue payments.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DeactivateRouterInterface

The operation that you want to perform.

Set the value to DeactivateRouterInterface.

RegionId String Yes cn-hangzhou

The ID of the region to which the router interface belongs. You can call the DescribeRegions operation to query region IDs.

RouterInterfaceId String Yes ri-2zeo3xzyf38r4urz****

The ID of the router interface.

Response parameters

Parameter Type Example Description
RequestId String BE7EB53A-99AB-4DA8-AEDE-75FA90D046A6

The ID of the request.


Sample requests

http(s)://vpc.aliyuncs.com/? Action=DeactivateRouterInterface
&<Common Request Parameters>

Sample success responses

XML format


JSON format


Error codes

HttpCode Error code Error message Description
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record. The error message returned because the specified router interface does not exist. Check whether the specified router interface is valid.
400 IncorrectStatus RouterInterface can be operated by this action only when it's status is Active. The error message returned because the operation cannot be performed. The operation can be performed only when the the router interface is in the Active state.
400 Forbidden.FinancileLocked This RouterInterface is financiel locked because of bills outstanding. The error message returned because the router interface is locked due to overdue payments.

For a list of error codes, visit the API Error Center.