AssociatePhysicalConnectionToVirtualBorderRouter_专有网络_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.

流控信息

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

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
vpc:AssociatePhysicalConnectionToVirtualBorderRouter
Update
PhysicalConnection
acs:vpc:{#regionId}:{#accountId}:physicalconnection/{#PhysicalConnectionId}
VirtualBorderRouter
acs:vpc:{#regionId}:{#accountId}:virtualborderrouter/{#VirtualBorderRouterId}

请求参数

字段名称字段详情
RegionIdstring

物理专线所在的地域 ID。展开详情

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

VBR 实例 ID。

示例值:vbr-bp186tnz6rijyhj******
PhysicalConnectionIdstring

物理专线实例 ID。

示例值:pc-bp1qrb3044eqixog****参考取值来源:
    CreatePhysicalConnection
    DescribePhysicalConnections
    ListVirtualPhysicalConnections
VlanIdstring

VBR 的 VLAN ID,取值范围:0~2999展开详情

示例值:123
CircuitCodestring

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

示例值:longtel001
LocalGatewayIpstring

VBR 实例的阿里云侧互联 IP。

示例值:192.168.XX.XX
PeerGatewayIpstring

VBR 实例的客户侧互联 IP。展开详情

示例值:192.168.XX.XX
PeeringSubnetMaskstring

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

示例值:255.255.255.0
ClientTokenstring

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

示例值:123e4567-e89b-12d3-a456-426655440000
LocalIpv6GatewayIpstring

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

示例值:2001:XXXX:3c4d:0015:0000:0000:0000:1a2b
PeerIpv6GatewayIpstring

VBR 实例的客户侧互联 IPv6 地址。展开详情

示例值:2001:XXXX:4:4:4:4:4:4
PeeringIpv6SubnetMaskstring

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

示例值:2408:4004:cc:400::/56
EnableIpv6string

是否启用 IPv6。取值:展开详情

示例值:false

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:980960B0-2969-40BF-8542-EBB34FD358AB

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
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.诊断
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.诊断
400
InvalidName.Malformed
The specified ?Name? is not valid.诊断
400
InvalidDescription.Malformed
The specifid ?Description? is not valid.诊断
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.诊断
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.诊断
400
Duplicated.LocalGatewayIp
Vbr has conflict local gateway ip.诊断
400
OperationFailed.VlanIdInUse
Operation failed because vlanId is in use.诊断
400
OperationFailed.PconnTrafficNotEnable
The operation is failed because of PconnTrafficNotEnable.诊断
400
DuplicatedParam.LocalGatewayIp
Duplicated LocalGatewayIp values.诊断
400
DuplicatedParam.PeerGatewayIp
Duplicated PeerGatewayIp values.诊断
400
DuplicatedParam.LocalIpv6GatewayIp
Duplicated LocalIpv6GatewayIp values.诊断
400
DuplicatedParam.PeerIpv6GatewayIp
Duplicated PeerIpv6GatewayIp values.诊断
400
EcPconnVbrMustContainsAll
In the single VBR with multiple Pconn scene, all Pconn must be associated with the same Qos.诊断
400
IllegalParam.LocalGatewayIpAndMask
The LocalGatewayIpAndMask value is invalid.诊断
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.诊断
404
InvalidVbrId.NotFound
The specified VirutalBorderRouter does not exist in our records.诊断
404
InvalidVbrOwnerId.NotFound
The specified VbrOwnerId is not valid.诊断

变更历史

变更时间变更内容概要操作
2025-03-19
变更错误码400
2024-06-28
变更错误码400
2024-02-01
变更错误码400
2023-04-10
变更错误码400

相关示例

通过此示例可以申请物理专线,并在该物理专线下创建VBR
2021-12-09