Activates a router interface in the Inactive state.

After you call this action, the router interface changes to the Activating state. Next, after activation is completed, the router interface changes to the Active state.
Note An overdue interface cannot be activated.


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 ActivateRouterInterface

The name of this action. Value: 


RegionId String Yes cn-hangzhou

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

To query the region ID, call DescribeRegions.

RouterInterfaceId String Yes ri-2zeo3xzyf38r4urzdpvfs

The ID of the router interface to be activated.

Response parameters

Parameters Type Example value Description
RequestId String 079874CD-AEC1-43E6-AC03-ADD96B6E4907 The ID of the request.


Request example

Response example
  • XML format

  • JSON format


Error codes

HTTP status code Error code Error message Description
404 InvalidRegionId.NotFound The specified RegionId does not exist in our records. The specified region ID does not exist.
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our records. The specified router interface does not exist.
400 IncorrectStatus RouterInterface can be operated by this action only when it's status is Inactive. This operation requires that the router interface is in the Inactive status.
400 Forbidden.FinancileLocked This RouterInterface is financiel locked because of bills outstanding. The router interface is locked due to an insufficient account balance.
400 Forbbiden The Router instance owener error This router does not belong to your account.

See common error codes