Activates a router interface that is in the Inactive state.
Usage notes
After you call this operation, the router interface enters the Activating state. After the router interface is activated, it enters the Active state.
You cannot activate a router interface that has overdue payments.
Debugging
Request parameters
Parameter |
Type |
Required |
Example |
Description |
Action | String | Yes | ActivateRouterInterface | The operation that you want to perform. Set the value to ActivateRouterInterface. |
RegionId | String | Yes | cn-hangzhou | The region ID of the router interface. You can call the DescribeRegions operation to query the most recent region list. |
RouterInterfaceId | String | Yes | ri-2zeo3xzyf38r4urz**** | The ID of the router interface. |
Response parameters
Parameter |
Type |
Example |
Description |
RequestId | String | 079874CD-AEC1-43E6-AC03-ADD96B6E4907 | The request ID. |
Description
Sample requests
http(s)://[Endpoint]/?Action=ActivateRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urz****
&Common request parameters
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ActivateRouterInterfaceResponse>
<RequestId>079874CD-AEC1-43E6-AC03-ADD96B6E4907</RequestId>
</ActivateRouterInterfaceResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "079874CD-AEC1-43E6-AC03-ADD96B6E4907"
}
Error codes
HttpCode |
Error code |
Error message |
Description |
400 | IncorrectRIStatus | RouterInterface can be operated by this action only when it's status is Inactive. | You can perform the operation only when the router interface is in the Inactive state. |
400 | Forbidden.FinancialLocked | This RouterInterface is financiel locked because of bills outstanding. | The router interface is locked due to overdue payments. |
400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | Outbound data transfer billing is disabled. |
400 | Forbbiden | The router does not belong to your account. | The specified router does not belong to your Alibaba Cloud account. |
400 | NotSupportLinkrole | This RouterInterface is not a vlan interface for connection. | The router interface is not a virtual interface for connection. |
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The region ID is not found. |
404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our records. | The router interface does not exist. |
For a list of error codes, see Service error codes.