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.
Note 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. |
Examples
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 | IncorrectStatus | RouterInterface can be operated by this action only when it's status is Inactive. | The operation can be performed only when the router interface is in the Inactive state. |
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. |
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. Check whether the specified router interface is valid. |
For a list of error codes, see Service error codes.