閱讀750 返回首頁    go 阿裏雲


新建虛擬邊界路由器__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

新建虛擬邊界路由器(VBR)

  • 隻能由物理專線所有者給自己或他人創建VBR
  • 每個物理專線默認能夠創建2個VBR
    • 為自己創建的VBR直接進入Enabled狀態
    • 支持為其他用戶創建VBR,創建後進入Unconfirmed狀態
  • VlanId隻允許物理專線owner指定/修改
    • 同一物理專線下的同一VlanId不允許兩個VBR同時再用。
    • 進入Terminated狀態的VBR會在7天內自動保留其VlanId,不允許其他VBR使用。7天後可以被其他VBR使用。
  • 為其他用戶創建的VBR,不能配置LocalGatewayIp、PeerGatewayIp和PeeringSubnetMask
  • LocalGatewayIp、PeerGatewayIp、PeeringSubnetMask要做校驗:PeeringSubnetMask支持[24-30]位,PeeringSubnetMask支持點分十進製表示法[255.255.255.0-255.255.255.252],LocalGatewayIp和PeerGatewayIp必須在與PeeringSubnetMask定義的同一子網內。 例如:
    • LocalGatewayIp: 192.168.50.17
    • PeerGatewayIp: 192.168.50.18
    • PeeringSubnetMask: 255.255.255.248

請求參數

名稱 類型 是否必須 描述
Action String 係統規定參數,取值:CreateVirtualBorderRouter
RegionId String 所在地域
PhysicalConnectionId String 物理專線Id
VbrOwnerId String VBR owner的User ID,缺省為當前客戶(物理專線owner)
VlanId Integer 虛擬邊界路由器(VBR)專線側接口的802.1Q VLAN號設定範圍 [1-2999],該屬性隻允許物理專線owner指定/修改。
CircuitCode String VBR專線側接口對應運營商的電路編碼。該屬性隻允許物理專線owner指定/修改。
LocalGatewayIp String 虛擬邊界路由器(VBR)專線側接口的IP地址。該屬性隻允許VBR owner指定/修改。為專線所有者創建VBR時必填,為其他賬號創建VBR時不可填。
PeerGatewayIp String VBR專線側接口對端的IP地址。該屬性隻允許VBR owner指定/修改。為專線所有者創建VBR時必填,為其他賬號創建VBR時不可填。
PeeringSubnetMask String VBR專線側接口本端與對端互聯的子網掩碼。該屬性隻允許VBR owner指定/修改。為專線所有者創建VBR時必填,為其他賬號創建VBR時不可填。
Name String 虛擬邊界路由器(VBR)的名稱,[2,128]個字符。不能以https://https://開頭。該屬性隻允許VBR owner指定/修改。
Description String 虛擬邊界路由器(VBR)的描述信息,[2,256]個字符,不能以https://https://開頭。該屬性隻允許VBR owner指定/修改。
ClientToken String 用於保證請求的冪等性。由客戶端生成該參數值,要保證在不同請求間唯一,最大不值過64個ASCII字符。

返回參數

名稱 類型 描述
VbrId String 虛擬邊界路由器(VBR)ID

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidRegionId.NotFound The specified RegionId is not found. 404 指定的RegionId不存在
InvalidPhysicalConnectionId.NotFound The specified PhysicalConnectionId is not found. 400 指定的物理專線Id不存在
InvalidVlanId.Used The specified VlanId has been used. 400 指定的VlanId已被使用
MissingParameter The input parameter 'PhysicalConnectionId' that is mandatory for processing this request is not supplied. 400 缺少PhysicalConnectionId值
InvalidPhysicalConnectionId.NotEnabled The specified PhysicalConnectionId is not in Enabled state. 400 指定的物理專線當前未處於正常狀態
InvalidVbrOwnerId.NotFound The specified VbrOwnerId is not valid. 404 指定的VBROwnerId不存在
MissingParameter The input parameter 'VlanId' that is mandatory for processing this request is not supplied. 400 缺少VlanId值
InvalidVlanId.Malformed The specified VlanId is not valid. 400 指定的VlanId格式不合法
InvalidCircuitCode.Malformed The specified CircuitCode is not valid. 400 指定的CircuitCode格式不合法
MissingParameter The input parameter 'LocalGatewayIp' that is mandatory for processing this request is not supplied. 400 缺少LocalGatewayIp值
InvalidLocalGatewayIp.Malformed The specified LocalGatewayIp is not valid. 400 指定的LocalGatewayIp格式不合法
MissingParameter The input parameter 'PeerGatewayIp' that is mandatory for processing this request is not supplied. 400 缺少PeerGatewayIp值
InvalidPeerGatewayIp.Malformed The specified PeerGatewayIp is not valid. 400 指定的PeerGatewayIp格式不合法
MissingParameter The input parameter 'PeeringSubnetMask' that is mandatory for processing this request is not supplied. 400 缺少PeerGatewayIp值
InvalidPeeringSubnetMask.Malformed The specified PeeringSubnetMask is not valid. 400 指定的PeerGatewayIp格式不合法
Forbidden.LocalGatewayIpNotAllowedByCaller The caller is not allowed to specify the LocalGatewayIp parameter. 403 調用方不允許指定LocalGatewayIp參數
Forbidden.PeerGatewayIpNotAllowedByCaller The caller is not allowed to specify the PeerGatewayIp parameter. 403 調用方不允許指定PeerGatewayIp參數
Forbidden.PeeringSubnetMaskNotAllowedByCaller The caller is not allowed to specify the PeeringSubnetMask parameter. 403 調用方不允許指定PeeringSubnetMask參數
Forbidden.NameNotAllowedByCaller The caller is not allowed to specify the Name parameter. 403 調用方不允許指定Name參數
Forbidden.DescriptionNotAllowedByCaller The caller is not allowed to specify the Description parameter. 403 調用方不允許指定Description參數
InvalidName.Malformed The specified ‘Name’ is not valid. 403 指定的Name格式不合法
InvalidDescription.Malformed The specified ‘Description’ is not valid. 400 指定的Description格式不合法
QuotaExceeded.vbrPerpConn Virtual boarder router per PhysicalConnection quota exceed. 400 指定物理專線上創建的邊界路由器數量超過配額
QuotaExceeded.freevbr Free virtual boarder router quota exceed. 400 邊界路由器數量超過配額
InvalidIP.Malformed Ip malformed. 400 IP格式不合法
MissingParameter LocalGatewayIp, peerGatewayIp and peeringSubnetMask must not be null. 400 缺少LocalGatewayIp,peerGatewayIp或peeringSubnetMask的值
InvalidIp.NotSameSubnet Local gateway ip and peer gateway ip are not in the same subnet. 400 LocalGatewayIp和peerGatewayIp未在同一個子網中

最後更新:2016-11-23 16:03:50

  上一篇:go 刪除物理專線__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 查詢虛擬邊界路由器列表__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲