全部產品
Search
文件中心

Express Connect:CreateVirtualBorderRouter

更新時間:Sep 18, 2026

呼叫CreateVirtualBorderRouter介面建立邊界路由器VBR(Virtual Border Router)執行個體。

介面說明

建立 VBR 執行個體後,VBR 執行個體狀態為 active。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

vpc:CreateVirtualBorderRouter

create

*PhysicalConnection

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

*VirtualBorderRouter

acs:vpc:{#regionId}:{#AccountId}:virtualborderrouter/*

無 無

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

是

實體專線所在的區域 ID。

您可以透過呼叫 DescribeRegions 介面取得區域 ID。

cn-shanghai

PhysicalConnectionId

string

是

實體專線執行個體 ID。

可以為獨享專線建立 VBR 執行個體,也可以為共享專線建立 VBR 執行個體。

pc-2zextbehcx****

VbrOwnerId

integer

否

VBR 執行個體擁有者的帳號 ID。

預設為登入的阿里雲帳號 ID。

168811111****

VlanId

integer

是

VBR 執行個體的 VLAN ID,取值範圍:0~2999。

說明

只有實體專線的擁有者可以指定該參數,同一條實體專線下的兩個 VBR 的 VLAN ID 不能相同。

0

CircuitCode

string

否

電信業者為實體專線提供的電路編碼。

說明

只有實體專線擁有者可以指定該參數。

longtel001

LocalGatewayIp

string

否

VBR 執行個體的阿里雲側互連 IP。該屬性只允許 VBR 擁有者指定或修改。

為實體專線擁有者建立 VBR 執行個體時必填。

192.168.XX.XX

PeerGatewayIp

string

否

VBR 執行個體的客戶側互連 IP。該屬性只允許 VBR 擁有者指定或修改。

為實體專線擁有者建立 VBR 執行個體時必填。

116.62.XX.XX

PeeringSubnetMask

string

否

VBR 執行個體的阿里雲側和客戶側互連 IP 的子網路遮罩。

兩個 IP 位址必須位於同一個子網路中。

255.255.255.252

Description

string

否

VBR 執行個體的描述資訊。

長度為 2~256 個字元,必須以字母或中文開頭,但不能以http://或https://開頭。

desc

Name

string

否

VBR 執行個體的名稱。

長度為 2~128 個字元,必須以字母或中文開頭,可包含數字、底線(_)和短橫線(-),但不能以http://或https://開頭。

test

ClientToken

string

否

用戶端 Token,用於保證請求的冪等性。

由用戶端產生該參數值,要保證在不同請求間唯一。

說明

若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 可能不一樣。

123e4567-e89b-12d3-a456-426655440000

LocalIpv6GatewayIp

string

否

VBR 執行個體的阿里雲側互連 IPv6 位址。該屬性只允許 VBR 擁有者指定或修改。

為實體專線擁有者建立 VBR 執行個體時必填。

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

boolean

否

是否啟用 IPv6 功能。取值:

  • true:開啟。

  • false(預設值):關閉。

true

Bandwidth

integer

否

VBR 執行個體的頻寬值,單位:Mbps。

  • 當為獨享專線建立 VBR 執行個體時,取值分別為 50、100、200、300、400、500、1000、2048、5120、8192、10240、20480、40960、50120、61440 和 102400。

  • 當為共享專線建立 VBR 執行個體時,無需設定,VBR 的頻寬即為建立共享實體專線時設定的共享專線頻寬。

100

ResourceGroupId

string

否

資源群組 ID。

關於資源群組的更多資訊,請參閱什麼是資源群組。

rg-acfmxazb4ph6aiy****

Tags

array<object>

否

資源的標籤。

object

否

標籤。

Key

string

否

資源的標籤鍵。至少輸入 1 個標籤鍵,最多支援輸入 20 個標籤鍵。如需傳入該值,不能輸入空字串。

一個標籤鍵最多支援 128 個字元,不能以aliyun和acs:開頭,不能包含http://或者https://。

FinanceDept

Value

string

否

資源的標籤值。最多支援輸入 20 個標籤值。如需傳入該值,可以輸入空字串。

最多支援 128 個字元,不能以aliyun和acs:開頭,不能包含http://或者https://。

FinanceJoshua

返回參數

名稱

類型

描述

樣本值

object

傳回資訊。

RequestId

string

請求 ID。

4EC47282-1B74-4534-BD0E-403F3EE64CAF

VbrId

string

VBR 執行個體 ID。

vbr-bp1jcg5cmxjbl9xgc****

樣本

正常返回樣本

JSON格式

{
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF",
  "VbrId": "vbr-bp1jcg5cmxjbl9xgc****"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 OperationFailed.PconnAllocateVlan0 Vlan 0 Vbr cannot share the physical connection with another Vbr. 實體專線上Vlan 0 不能和其他VBR共存。
400 IllegalParam.IpAddress The specified IpAddress (%s) is illegal. IP位址不合法。
400 IllegalParam.CidrBlock The specified CidrBlock (%s) is illegal. 網段不合法。
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 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 QuotaExceeded.freevbr Free virtual boarder router quota exceed.
400 InvalidIp.NotSameSubnet Local gateway ip and peer gateway ip are not in the same subnet. 本端閘道器IP位址與對端閘道器IP位址不在同一個子網路內。
400 TaskConflict The operation is too frequent, please wait a moment and try again. EIP 操作太頻繁。
400 QuotaExceeded.CrossUserVBRPerUser Cross virtual boarder router per user quota exceed. 配額超限。
400 OperationFailed.VlanIdInUse Operation failed because vlanId is in use. vlanId已經被使用。
400 QuotaExceeded.SameAccountVBRPerPconn Same account virtual boarder router per physicalConnection quota exceed. VBR超過配額。
400 QuotaExceeded.VbrPerPconnPortSpec Quota exceed for current port spec 配額超限。
400 QuotaExceeded.VbrPerAccessDevice Virtual boarder router per access device quota exceed. 裝置配額超限。
400 OperationUnsupported.IPV6ForThisRegion This Region do not support IPV6. 地域不支援IPv6。
400 VbrBandwidthExceed VBR bandwidth exceed for this physical connection. 虛擬邊界路由器頻寬超過實體專線閾值。
400 OperationFailed.PconnExistVlan0Vbr The physical connection has VLAN 0 VBR. You cannot create another VBR. 專線上已經存在VLAN 0 VBR,不允許建立其他VBR。
400 OperationFailed.Vlan0VbrUnSharePconn VLAN 0 VBR cannot share the physical connection with another VBR. 專線已有其他VLAN 0 VBR,不允許在此專線建立VLAN 0 VBR。
400 OperationFailed.PconnTrafficNotEnable The operation is failed because of PconnTrafficNotEnable. 操作失敗,因為出方向流量未啟用。
400 ResourceNotEnough.Bandwidth The specified resource of Bandwidth is not enough. 頻寬資源不足。
400 OperationUnsupported.VirtualBorderRouterEnableIPv6 The operation failed. The device or region does not support IPv6 functions. 操作失敗,裝置或region不支援IPv6功能。
400 IllegalParam.OwnerAliUid The param of VbrOwnerId is illegal. 該使用者 ID 為非法參數。
400 Forbidden.OwnerAliUid RAM account or Partner account is forbidden to be OwnerAliUid. VbrOwnerId為RAM帳號或合作夥伴帳號,禁止作為VBR所屬帳號。
400 OperationDenied.VPconn Vpconn is forbidden to create vbr for another account. Vpconn類型不支援此操作。
400 OperationFailed.NotConsistentWithVpconn VBR bandwidth is not consistent with vpconn VBR頻寬值與所屬共享專線頻寬值不一致。
400 IllegalParam.Bandwidth The param of bandwidth is illegal. 傳入的頻寬不合法。
400 OperationFailed.VirtualPhysicalConnectionExistVBR The virtual physical connect has already created another VBR. VirtualPhysicalConnection已經存在VBR。
400 ResourceNotInResourceGroup The specified resource is not in the specified ResourceGroup. 輸入的資源不在輸入的資源群組內。
400 IncorrectStatus.VirtualPhysicalConnection The status of PhysicalConnection [%s] is incorrect. 共享實體專線 [%s] 狀態不正確。
400 EcAssociatedQoSPconnNotAllowCreateCrossAccountVbr The specified Pconn associated with Qos is not allowed to create cross account VBR.Please contact the business manager. 綁定了QoS策略的共享實體專線不允許建立跨帳號虛擬邊界路由器,請聯絡業務經理。
400 OperationFailed.VbrBandWidthMust0InVlan0Vbr The operation is failed because of VbrBandWidthMust0InVlan0Vbr. 操作失敗,不允許設定限速。
400 OperationDenied.PhysicalConnectionNotSupportMPBGPAndMPBGP-v6 The operation is not allowed because this physical connection not support MPBGP and MPBGP-v6. 不允許執行該操作,因為目前實體連接埠不支援MPBGP和MPBGP-v6等進階能力。
400 IncorrectBusinessStatus.PhysicalConnection Invalid physical connection business status. 實體專線目前業務狀態不支援操作。
500 InternalError The request processing has failed due to some unknown error, exception or failure. 請求處理由於某些未知錯誤失敗。
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 InvalidRegionId.NotFound The specified RegionId is not found.
404 InvalidVbrOwnerId.NotFound The specified VbrOwnerId is not valid.
404 CROSS_BID.FORBIDDEN Create VBR across bid is illegal 跨BID連線非法。
404 OperationFailed.AccessDeviceDisabled Access device is disabled and can not create vbr. 存取裝置已停用,無法建立VBR。

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情。