调用ActivateRouterInterface接口激活处于Inactive状态的路由器接口。
使用说明
调用ActivateRouterInterface接口后,路由器接口进入Activating状态,激活成功后进入Active状态。
说明 无法激活处于欠费状态的路由器接口。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
Action | String | 是 | ActivateRouterInterface | 要执行的操作。 取值:ActivateRouterInterface。 |
RegionId | String | 是 | cn-hangzhou | 路由器接口所在的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
RouterInterfaceId | String | 是 | ri-2zeo3xzyf38r4urz**** | 路由器接口ID。 |
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 079874CD-AEC1-43E6-AC03-ADD96B6E4907 | 请求ID。 |
示例
请求示例
1 2 3 4 | http(s): //[Endpoint]/?Action=ActivateRouterInterface &RegionId=cn-hangzhou &RouterInterfaceId=ri-2zeo3xzyf38r4urz**** &<公共请求参数> |
正常返回示例
XML
格式
1 2 3 | <ActivateRouterInterfaceResponse> <RequestId>079874CD-AEC1-43E6-AC03-ADD96B6E4907</RequestId> </ActivateRouterInterfaceResponse> |
JSON
格式
1 2 3 | { "RequestId" : "079874CD-AEC1-43E6-AC03-ADD96B6E4907" } |
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | 指定的RegionId不存在。 |
404 | InvalidRouterInterfaceId.NotFound | The specified RouterInterfaceId does not exist in our records. | 指定的路由器接口不存在,请您检查填写的路由器接口是否正确。 |
400 | IncorrectStatus | RouterInterface can be operated by this action only when it's status is Inactive. | 只有当路由器接口的状态为Inactive时,才可执行该操作。 |
400 | Forbbiden | The Router instance owener error | 该路由器不属于您的账号。 |
400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失败,因为出云流量未开通。 |
访问错误中心查看更多错误码。