ConnectRouterInterface_专有网络_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

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

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

  • 只能由状态为 Idle 的发起端路由器接口向接收端发起连接。
  • 任意两个路由器之间,最多只能存在一对相互连接的路由器接口。
  • 如果账号下存在处于欠费状态的路由器接口,无法进行发起连接。

流控信息

请求速率为300/60(s)。更多流控信息,请前往配额中心查看

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:ConnectRouterInterface
Update
RouterInterface
acs:vpc:{#regionId}:{#accountId}:routerinterface/{#RouterInterfaceId}

请求参数

字段名称字段详情
RegionIdstring

路由器接口所在的地域。 展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
RouterInterfaceIdstring

发起端路由器接口的 ID。

示例值:ri-2zeo3xzyf38r4urzd****参考取值来源:
    CreateRouterInterface
    DescribeRouterInterfaces

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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.诊断
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.诊断
404
InvalidRegionId.NotFound
The RegionId provided does not exist in our records.诊断
404
InvalidRouterInterfaceId.NotFound
The specified RouterInterfaceId does not exist in our record.诊断
404
CROSS_BID.FORBIDDEN
Connect RouterInterface across bid is illegal诊断

变更历史

变更时间变更内容概要操作
2023-07-21
变更错误码400

相关示例

RouterInterface相关操作
2021-12-09