全部产品
Search
文档中心

高速通道:ActivateRouterInterface - 激活路由器接口

更新时间:Jun 19, 2026

调用ActivateRouterInterface接口激活处于Inactive状态的路由器接口。

接口说明

调用 ActivateRouterInterface 接口后,路由器接口进入 Activating 状态,激活成功后进入 Active 状态。

说明

无法激活处于欠费状态的路由器接口。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

调试

授权信息

下表是API对应的授权信息,可以在RAM权限策略语句的Action元素中使用,用来给RAM用户或RAM角色授予调用此API的权限。具体说明如下:

  • 操作:是指具体的权限点。

  • 访问级别:是指每个操作的访问级别,取值为写入(Write)、读取(Read)或列出(List)。

  • 资源类型:是指操作中支持授权的资源类型。具体说明如下:

    • 对于必选的资源类型,用前面加 * 表示。

    • 对于不支持资源级授权的操作,用全部资源表示。

  • 条件关键字:是指云产品自身定义的条件关键字。

  • 关联操作:是指成功执行操作所需要的其他权限。操作者必须同时具备关联操作的权限,操作才能成功。

操作

访问级别

资源类型

条件关键字

关联操作

vpc:ActivateRouterInterface

update

*RouterInterface

acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

请求参数

名称

类型

必填

描述

示例值

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.

访问错误中心查看更多错误码。

变更历史

更多信息,参考变更详情