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.
Debugging
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. |
Examples
Sample requests
http(s)://vpc.aliyuncs.com/? Action=DeactivateRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urz****
&<Common Request Parameters>
Sample success responses
XML
format
<ActivateRouterInterfaceResponse>
<RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
</ActivateRouterInterfaceResponse>
JSON
format
{
"RequestId":"0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
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.