首页 高速通道 开发参考 API参考 API目录 边界路由器 AssociatePhysicalConnectionToVirtualBorderRouter - 将VBR关联物理专线

AssociatePhysicalConnectionToVirtualBorderRouter - 将VBR关联物理专线

更新时间: 2026-08-13 18:01:07

调用AssociatePhysicalConnectionToVirtualBorderRouter接口将边界路由器VBR(Virtual Border Router)关联到物理专线。

调试

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

调试

授权信息

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

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

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

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

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

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

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

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

操作

访问级别

资源类型

条件关键字

关联操作

vpc:AssociatePhysicalConnectionToVirtualBorderRouter

update

*PhysicalConnection

acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}

*VirtualBorderRouter

acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}

请求参数

名称

类型

必填

描述

示例值

RegionId

string

物理专线所在的地域 ID。

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

cn-hangzhou

VbrId

string

VBR 实例 ID。

vbr-bp186tnz6rijyhj******

PhysicalConnectionId

string

物理专线实例 ID。

pc-bp1qrb3044eqixog****

VlanId

string

VBR 的 VLAN ID,取值范围:0~2999

说明

只有物理专线的所有者可以指定该参数,同一条物理专线下的两个 VBR 的 VLAN ID 不能相同。

123

CircuitCode

string

运营商为物理专线提供的电路编码。

说明

只有物理专线的所有者可以指定该参数。

longtel001

LocalGatewayIp

string

VBR 实例的阿里云侧互联 IP。调用本接口时必须同时提供 LocalGatewayIpPeerGatewayIpPeeringSubnetMask,缺少任一参数时请求将失败。

192.168.XX.XX

PeerGatewayIp

string

VBR 实例的客户侧互联 IP。

该属性只允许 VBR 所有者指定或修改。调用本接口时必须同时提供 LocalGatewayIpPeerGatewayIpPeeringSubnetMask,缺少任一参数时请求将失败。

192.168.XX.XX

PeeringSubnetMask

string

VBR 实例的阿里云侧和客户侧互联 IP 的子网掩码。

两个 IP 地址必须位于同一个子网中。调用本接口时必须同时提供 LocalGatewayIpPeerGatewayIpPeeringSubnetMask,缺少任一参数时请求将失败。

255.255.255.0

ClientToken

string

客户端 Token,用于保证请求的幂等性。

由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过 64 个 ASCII 字符。

说明

若您未指定,则系统自动使用 API 请求的 RequestId 作为 ClientToken 标识。每次 API 请求的 RequestId 可能不一样。

123e4567-e89b-12d3-a456-426655440000

LocalIpv6GatewayIp

string

VBR 实例的阿里云侧互联 IPv6 地址。

2001:XXXX:3c4d:0015:0000:0000:0000:1a2b

PeerIpv6GatewayIp

string

VBR 实例的客户侧互联 IPv6 地址。

  • 该属性只允许 VBR 所有者指定或者修改。

  • 为物理专线所有者创建 VBR 实例时必填。

2001:XXXX:4:4:4:4:4:4

PeeringIpv6SubnetMask

string

VBR 实例的阿里云侧和客户侧互联 IPv6 的子网掩码。

两个 IPv6 地址必须位于同一个子网中。

2408:4004:cc:400::/56

EnableIpv6

string

是否启用 IPv6。取值:

  • true:开启。

  • false(默认值):关闭。

false

返回参数

名称

类型

描述

示例值

object

RequestId

string

请求 ID。

980960B0-2969-40BF-8542-EBB34FD358AB

示例

正常返回示例

JSON格式

{
  "RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}

错误码

HTTP status code

错误码

错误信息

描述

400 InvalidOperation.RouterInterfaceNotDeleted The specified VirutalBorderRouter still has routerInterface.
400 InvalidOperation.OperationNotAllowedInState The specified VirutalBorderRouter is in invalid state.
400 InvalidStatus.NotAllowed Invalid virtual border router status.
400 InvalidPhysicalConnectionId.NotFound The specified PhysicalConnectionId is not found. 该物理专线ID不存在。
400 InvalidVlanId.Used The specified VlanId has been used.
400 MissingParameter The input parameter 'PhysicalConnectionId' that is mandatory for processing this request is not supplied.
400 InvalidPhysicalConnectionId.NotEnabled The specified PhysicalConnectionId is not in Enabled state.
400 InvalidVlanId.Malformed The specified VlanId is not valid.
400 InvalidCircuitCode.Malformed The specified CircuitCode is not valid.
400 InvalidLocalGatewayIp.Malformed The specified LocalGatewayIp is not valid.
400 InvalidPeerGatewayIp.Malformed The specified PeerGatewayIp is not valid.
400 InvalidPeeringSubnetMask.Malformed The specified PeeringSubnetMask is not valid. 指定的PeeringSubnetMask不合法,请您检查该参数是否正确。
400 InvalidName.Malformed The specified ?Name? is not valid.
400 InvalidDescription.Malformed The specifid ?Description? is not valid. 指定的资源描述格式不合法。长度为2~256个字符,不能以http://和https://开头。
400 QuotaExceeded.vbrPerpConn Virtual boarder router per PhysicalConnection quota exceed.
400 EXCEED_ASSOCIATE_MAX_NUM assocaite virtual boarder num too many.
400 InvalidIP.Malformed Ip malformed.
400 InvalidIp.NotSameSubnet Local gateway ip and peer gateway ip are not in the same subnet. 本地网关IP地址与对端网关IP地址不在同一个子网内。
400 InvalidStatus.StatusNotEnabled The physical connection status is invalid.
400 InvalidParams.AlreadyExists physical connection has already associated with vbr.
400 PHYSICAL_NOT_ALLOW_ASSOCIATE_VBR The specified operation not allow.
400 Forbidden.OperationNotAllowed The caller must be PhysicalConnection or VirtualBorderRouter's owner.
400 Forbidden.NotSameAccessDevice Vbr and physicalConnection are not on the same accessDevice. Vbr和物理连接不在同一访问设备上。
400 Duplicated.LocalGatewayIp Vbr has conflict local gateway ip.
400 OperationFailed.VlanIdInUse Operation failed because vlanId is in use. vlanId已经被使用
400 OperationFailed.PconnTrafficNotEnable The operation is failed because of PconnTrafficNotEnable. 操作失败,因为出方向流量未开通。
400 DuplicatedParam.LocalGatewayIp Duplicated LocalGatewayIp values. 本端Ip重复。
400 DuplicatedParam.PeerGatewayIp Duplicated PeerGatewayIp values. 互联ip地址重复,请更换后重试。
400 DuplicatedParam.LocalIpv6GatewayIp Duplicated LocalIpv6GatewayIp values. 本端ip地址重复。
400 DuplicatedParam.PeerIpv6GatewayIp Duplicated PeerIpv6GatewayIp values. 对端ip地址重复。
400 EcPconnVbrMustContainsAll In the single VBR with multiple Pconn scene, all Pconn must be associated with the same Qos. 单VBR多Pconn场景,必须将所有的Pconn都绑定QoS策略。
400 IllegalParam.LocalGatewayIpAndMask The LocalGatewayIpAndMask value is invalid. 本端网关IP和掩码非法,请更正后重试。
400 IllegalParam.PeeringIpv6SubnetMask The PeeringIpv6SubnetMask value is invalid. 掩码非法,请更正后重试。
403 Forbidden.OperationNotAllowedByUser The caller is not allowed to delete the specified VirtualBorderRouter.
403 Forbidden.MultiVlanRi Multiple vlan router interfaces are found.
403 Forbidden.NoRiFound No vlan router interfaces are found.
403 Forbidden.LocalGatewayIpNotAllowedByCaller The caller is not allowed to specify the LocalGatewayIp parameter.
403 Forbidden.PeerGatewayIpNotAllowedByCaller The caller is not allowed to specify the PeerGatewayIp parameter.
403 Forbidden.PeeringSubnetMaskNotAllowedByCaller The caller is not allowed to specify the PeeringSubnetMask parameter.
403 Forbidden.NameNotAllowedByCaller The caller is not allowed to specify the Name parameter.
403 Forbidden.DescriptionNotAllowedByCaller The caller is not allowed to specify the Description parameter.
404 InvalidInstanceId.NotFound The specified Instance does not exist in the specified region.
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 指定的RegionId不存在
404 InvalidVbrId.NotFound The specified VirutalBorderRouter does not exist in our records.
404 InvalidVbrOwnerId.NotFound The specified VbrOwnerId is not valid.

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

变更历史

更多信息,参考变更详情

上一篇: DescribeVbrHa - 查询VBR倒换组 下一篇: CreateVirtualBorderRouter - 新建边界路由器(VBR)
阿里云首页 高速通道 相关技术圈