Activates a router interface that is in the Inactive state.
Descriptions
After you call this operation, the router interface enters the Activating state. After the router interface is activated, it enters the Active state.
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 ID of the region to which the router interface belongs. 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 ID of the request. |
Examples
Sample requests
http(s)://[Endpoint]/?Action=ActivateRouterInterface
&RegionId=cn-hangzhou
&RouterInterfaceId=ri-2zeo3xzyf38r4urz****
&<Common request parameters>
Sample success responses
XML
format
<ActivateRouterInterfaceResponse>
<RequestId>079874CD-AEC1-43E6-AC03-ADD96B6E4907</RequestId>
</ActivateRouterInterfaceResponse>
JSON
format
{
"RequestId": "079874CD-AEC1-43E6-AC03-ADD96B6E4907"
}
Error codes
HttpCode | Error code | Error message | Description |
---|---|---|---|
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | The error message returned because the specified region ID does not exist. |
404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our records. | 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 Inactive. | The error message returned because the operation cannot be performed. The operation can be performed only when the router interface is in the Inactive state. |
400 | Forbbiden | The Router instance owener error | The error message returned because the specified router does not belong to your Alibaba Cloud account. |
400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | The operation failed because outbound traffic is not enabled. |
For a list of error codes, visit the API Error Center.