调用AssociatePhysicalConnectionToVirtualBorderRouter接口将边界路由器VBR(Virtual Border Router)关联到物理专线。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 | 类型 | 是否必选 | 示例值 | 描述 |
---|---|---|---|---|
RegionId | String | 是 | cn-hangzhou |
物理专线所在的地域ID。 您可以通过调用DescribeRegions接口获取地域ID。 |
VbrId | String | 是 | vbr-bp186tnz6rijyhj****** |
VBR实例ID。 |
PhysicalConnectionId | String | 是 | pc-bp1qrb3044eqixog**** |
物理专线实例ID。 |
VlanId | String | 是 | 123 |
VBR的VLAN ID,取值范围:0~2999。 说明 只有物理专线的所有者可以指定该参数,同一条物理专线下的两个VBR的VLAN ID不能相同。
|
CircuitCode | String | 否 | longtel001 |
运营商为物理专线提供的电路编码。 说明 只有物理专线的所有者可以指定该参数。
|
LocalGatewayIp | String | 否 | 192.168.XX.XX |
VBR实例的阿里云侧互联IP。 |
PeerGatewayIp | String | 否 | 192.168.XX.XX |
VBR实例的客户侧互联IP。
|
PeeringSubnetMask | String | 否 | 255.255.255.0 |
VBR实例的阿里云侧和客户侧互联IP的子网掩码。 两个IP地址必须位于同一个子网中。 |
Action | String | 是 | AssociatePhysicalConnectionToVirtualBorderRouter |
系统规定参数。取值:AssociatePhysicalConnectionToVirtualBorderRouter。 |
ClientToken | String | 否 | 123e4567-e89b-12d3-a456-426655440000 |
客户端Token,用于保证请求的幂等性。 由客户端生成该参数值,要保证在不同请求间唯一,最大值不超过64个ASCII字符。 说明 若您未指定,则系统自动使用API请求的RequestId作为ClientToken标识。每次API请求的RequestId可能不一样。
|
LocalIpv6GatewayIp | String | 否 | 2001:XXXX:3c4d:0015:0000:0000:0000:1a2b |
VBR实例的阿里云侧互联IPv6地址。 |
PeerIpv6GatewayIp | String | 否 | 2001:XXXX:4:4:4:4:4:4 |
VBR实例的客户侧互联IPv6地址。
|
PeeringIpv6SubnetMask | String | 否 | 2408:4004:cc:400::/56 |
VBR实例的阿里云侧和客户侧互联IPv6的子网掩码。 两个IPv6地址必须位于同一个子网中。 |
EnableIpv6 | String | 否 | false |
是否启用IPv6。取值:
|
返回数据
名称 | 类型 | 示例值 | 描述 |
---|---|---|---|
RequestId | String | 980960B0-2969-40BF-8542-EBB34FD358AB |
请求ID。 |
示例
请求示例
http(s)://[Endpoint]/?RegionId=cn-hangzhou
&VbrId=vbr-bp186tnz6rijyhj******
&PhysicalConnectionId=pc-bp1qrb3044eqixog****
&VlanId=123
&CircuitCode=longtel001
&LocalGatewayIp=192.168.XX.XX
&PeerGatewayIp=192.168.XX.XX
&PeeringSubnetMask=255.255.255.0
&Action=AssociatePhysicalConnectionToVirtualBorderRouter
&ClientToken=123e4567-e89b-12d3-a456-426655440000
&LocalIpv6GatewayIp=2001:XXXX:3c4d:0015:0000:0000:0000:1a2b
&PeerIpv6GatewayIp=2001:XXXX:3c4d:0015:0000:0000:0000:1a2b
&PeeringIpv6SubnetMask=2408:4004:cc:400::/56
&EnableIpv6=false
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<AssociatePhysicalConnectionToVirtualBorderRouterResponse>
<RequestId>980960B0-2969-40BF-8542-EBB34FD358AB</RequestId>
</AssociatePhysicalConnectionToVirtualBorderRouterResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "980960B0-2969-40BF-8542-EBB34FD358AB"
}
错误码
HttpCode | 错误码 | 错误信息 | 描述 |
---|---|---|---|
400 | InvalidOperation.RouterInterfaceNotDeleted | The specified VirutalBorderRouter still has routerInterface. | 该边界路由器还有关联的路由器接口。 |
400 | InvalidOperation.OperationNotAllowedInState | The specified VirutalBorderRouter is in invalid state. | 该VirutalBorderRouter状态不合法,请检查VirutalBorderRouter状态。 |
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. | 该VLAN已经被占用。 |
400 | MissingParameter | The input parameter 'PhysicalConnectionId' that is mandatory for processing this request is not supplied. | 必须指定参数PhysicalConnectionId。 |
400 | InvalidPhysicalConnectionId.NotEnabled | The specified PhysicalConnectionId is not in Enabled state. | 该物理专线当前未处于正常状态,请检查物理专线后再创建。 |
400 | MissingParameter | The input parameter 'VlanId' that is mandatory for processing this request is not supplied. | 必须指定参数VlanId。 |
400 | InvalidVlanId.Malformed | The specified VlanId is not valid. | 参数VlanId的值不合法。 |
400 | InvalidCircuitCode.Malformed | The specified CircuitCode is not valid. | 该CircuitCode不合法。 |
400 | MissingParameter | The input parameter 'LocalGatewayIp' that is mandatory for processing this request is not supplied. | 必须指定参数LocalGatewayIp。 |
400 | InvalidLocalGatewayIp.Malformed | The specified LocalGatewayIp is not valid. | 该本端网关的IP不合法。 |
400 | MissingParameter | The input parameter 'PeerGatewayIp' that is mandatory for processing this request is not supplied. | 必须指定参数PeerGatewayIp。 |
400 | InvalidPeerGatewayIp.Malformed | The specified PeerGatewayIp is not valid. | 参数PeerGatewayIp的值不合法。 |
400 | MissingParameter | The input parameter 'PeeringSubnetMask' that is mandatory for processing this request is not supplied. | 必须指定参数PeeringSubnetMask。 |
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. | IP格式不合法。 |
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 | PHYSICAL_NOT_ALLOW_ASSOCIATE_VBR | The specified operation not allow. | 无法执行该操作,物理专线有关联的边界路由器。 |
400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失败,因为出方向流量未开通。 |
403 | Forbidden.OperationNotAllowedByUser | The caller is not allowed to delete the specified VirtualBorderRouter. | 不允许删除边界路由器。 |
403 | Forbidden.MultiVlanRi | Multiple vlan router interfaces are found. | 存在多个VLAN路由器接口。 |
403 | Forbidden.NoRiFound | No vlan router interfaces are found. | 没有可用的VLAN路由器接口。 |
403 | Forbidden.LocalGatewayIpNotAllowedByCaller | The caller is not allowed to specify the LocalGatewayIp parameter. | 不允许指定LocalGatewayIp参数。 |
403 | Forbidden.PeerGatewayIpNotAllowedByCaller | The caller is not allowed to specify the PeerGatewayIp parameter. | 不允许指定PeerGatewayIp参数。 |
403 | Forbidden.PeeringSubnetMaskNotAllowedByCaller | The caller is not allowed to specify the PeeringSubnetMask parameter. | 不允许指定PeeringSubnetMask参数。 |
403 | Forbidden.NameNotAllowedByCaller | The caller is not allowed to specify the Name parameter. | 不允许指定Name参数。 |
403 | Forbidden.DescriptionNotAllowedByCaller | The caller is not allowed to specify the Description parameter. | 不允许指定Description参数。 |
404 | InvalidInstanceId.NotFound | The specified Instance does not exist in the specified region. | 该实例在该地域内不存在。 |
404 | InvalidVbrId.NotFound | The specified VirutalBorderRouter does not exist in our records. | 该边界路由器不存在,请您检查输入的边界路由器是否正确。 |
404 | InvalidRegionId.NotFound | The specified RegionId is not found. | 指定的RegionId不存在,请您检查此产品在该地域是否可用。 |
404 | InvalidVbrOwnerId.NotFound | The specified VbrOwnerId is not valid. | 参数VbrOwnerId的值不合法。 |
访问错误中心查看更多错误码。