调用ActivateRouterInterface接口激活处于Inactive状态的路由器接口。
接口说明
调用 ActivateRouterInterface 接口后,路由器接口进入 Activating 状态,激活成功后进入 Active 状态。
说明
无法激活处于欠费状态的路由器接口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
调试
授权信息
|
操作 |
访问级别 |
资源类型 |
条件关键字 |
关联操作 |
|
vpc:ActivateRouterInterface |
update |
*RouterInterface
|
无 | 无 |
请求参数
|
名称 |
类型 |
必填 |
描述 |
示例值 |
| RegionId |
string |
是 |
路由器接口所在的地域 ID。 您可以通过调用 DescribeRegions 接口获取地域 ID。 |
cn-hangzhou |
| RouterInterfaceId |
string |
是 |
路由器接口 ID。 |
ri-2zeo3xzyf38r4urz**** |
返回参数
|
名称 |
类型 |
描述 |
示例值 |
|
object |
返回信息。 |
||
| RequestId |
string |
请求 ID。 |
079874CD-AEC1-43E6-AC03-ADD96B6E4907 |
示例
正常返回示例
JSON格式
{
"RequestId": "079874CD-AEC1-43E6-AC03-ADD96B6E4907"
}
错误码
|
HTTP status code |
错误码 |
错误信息 |
描述 |
|---|---|---|---|
| 400 | IncorrectRIStatus | RouterInterface can be operated by this action only when it's status is Inactive. | 只有当状态为“非活动”时,才能通过此操作操作RouterInterface。 |
| 400 | Forbidden.FinancialLocked | This RouterInterface is financiel locked because of bills outstanding. | |
| 400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失败,因为出方向流量未开通。 |
| 400 | Forbbiden | The router does not belong to your account. | 该路由器不属于您的账号。 |
| 400 | NotSupportLinkrole | This RouterInterface is not a vlan interface for connection. | 该路由器接口不是用于连接的虚拟网络接口。 |
| 400 | OppositeRouterInterfaceIsDeleted | The opposite router interface is already deleted. | 对端的路由器接口已被删除 |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our records. |
访问错误中心查看更多错误码。
变更历史
更多信息,参考变更详情。