ConnectRouterInterface - 由发起端路由器接口向接收端发起连接

更新时间:
复制 MD 格式

调用ConnectRouterInterface接口由发起端路由器接口向接收端发起连接。

接口说明

调用本接口后路由器接口进入 Connecting 状态,连接完成后进入 Active 状态。

调用该接口创建 VPC 时,请注意:

  • 只能由状态为 Idle 的发起端路由器接口向接收端发起连接。

  • 任意两个路由器之间,最多只能存在一对相互连接的路由器接口。

  • 如果账号下存在处于欠费状态的路由器接口,无法进行发起连接。

调试

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

调试

授权信息

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

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

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

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

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

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

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

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

操作

访问级别

资源类型

条件关键字

关联操作

vpc:ConnectRouterInterface

update

*RouterInterface

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

请求参数

名称

类型

必填

描述

示例值

RegionId

string

路由器接口所在的地域。

您可以通过调用 DescribeRegions 接口获取地域 ID。

cn-hangzhou

RouterInterfaceId

string

发起端路由器接口的 ID。

ri-2zeo3xzyf38r4urzd****

返回参数

名称

类型

描述

示例值

object

请求 ID。

RequestId

string

请求 ID。

DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6

示例

正常返回示例

JSON格式

{
  "RequestId": "DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6"
}

错误码

HTTP status code

错误码

错误信息

描述

400 IncorrectRole.NotInitiatingSide The specified RouterInterface is not InitiatingSide.
400 IncorrectRIStatus RouterInterface can be operated by this action only when it's status is Idle. 只有路由器接口处于“闲置”状态时,才可以使用此操作。
400 IncorrectOppositeInterfaceInfo.NotSet OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set. 参数OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId必须全部设置。
400 IncorrectOppositeInterfaceInfo Cannot connect on the same router
400 Forbidden.OnlyOneConnection The Specified routers have a connection already
400 Forbidden.BillsOutstanding You cannot use this action because you have bills outstanding.
400 InvalidAccount.NotFound The specified account is not exists.
400 ErrCode.Invalid got error
400 AttrMismatching.AcceptingSideRole %s
400 AttrMismatching.AcceptingSideInstanceId %s
400 AttrMismatching.AcceptingSideRegionNo %s
400 AttrMismatching.AcceptingSideRouterId %s
400 AttrMismatching.AcceptingSideRouterType %s
400 AttrMismatching.AcceptingSideAliUid %s
400 AttrMismatching.AcceptingSideOppositeInterfaceOwnerId %s
400 AttrMismatching.AcceptingSideOppositeRegionNo %s
400 AttrMismatching.AcceptingSideOppositeInterfaceId %s
400 AttrMismatching.AcceptingSideOppositeRouterId %s
400 AttrMismatching.AcceptingSideOppositeRouterType %s
400 IllegalParam.InstanceOwner The router instance owener error.
400 InvalidRegionId.NotFound The specified RegionId does not exist. 指定的地域不存在。请检查该参数是否正确。
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 指定的RegionId不存在
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record.
404 CROSS_BID.FORBIDDEN Connect RouterInterface across bid is illegal

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

变更历史

更多信息,参考变更详情