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.

Debug

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: 

DeactivateRouterInterface

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.

Examples

Request example


http(s)://vpc.aliyuncs.com/?Action=DeactivateRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urzdpvfs
&<CommonParameters>
Response example
  • XML format

    <ActivateRouterInterfaceResponse>
      <RequestId>0ED8D006-F706-4D23-88ED-E11ED28DCAC0</RequestId>
    </ActivateRouterInterfaceResponse>
    
  • JSON format

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

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