調用ModifyVirtualBorderRouterAttribute介面修改邊界路由器VBR(Virtual Border Router)的配置。
介面說明
-
VlanId 只允許物理專線的所有者修改。
-
同一物理專線下的同一 VLAN ID 不允許被兩個 VBR 同時使用。
-
進入 terminated 狀態的 VBR 會在 7 天內自動保留其 VLAN ID,不允許其他 VBR 使用。7 天后可以被其他 VBR 使用。
-
其他帳號的 VBR 執行個體,不能配置 LocalGatewayIp、PeerGatewayIp 和 PeeringSubnetMask。
-
PeeringSubnetMask 支援 24~30 位(255.255.255.0~255.255.255.252)。
-
LocalGatewayIp 和 PeerGatewayIp 必須在同一個網段內。例如,LocalGatewayIp:192.168.XX.XX,PeerGatewayIp:192.168.XX.XX,PeeringSubnetMask:255.255.255.248。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
VBR 所在的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-shanghai |
| VbrId |
string |
是 |
VBR 執行個體 ID。 |
vbr-bp1lhl0taikrte**** |
| VlanId |
integer |
否 |
VBR 的 VLAN ID,取值範圍:0~2999。 說明
只有物理專線的所有者可以指定該參數,同一條物理專線下的兩個 VBR 的 VLAN ID 不能相同。 |
0 |
| CircuitCode |
string |
否 |
電訊廠商為物理專線提供的電路編碼。 說明
只有物理專線的所有者可以指定該參數。 |
longtel001 |
| LocalGatewayIp |
string |
否 |
VBR 執行個體的阿里雲側互聯 IP。 該屬性只允許 VBR 所有者指定或修改。 |
192.168.XX.XX |
| PeerGatewayIp |
string |
否 |
VBR 執行個體的客戶側互聯 IP。 該屬性只允許 VBR 所有者指定或修改。 |
192.168.XX.X |
| PeeringSubnetMask |
string |
否 |
VBR 執行個體的阿里雲側和客戶側互聯 IP 的子網路遮罩。該屬性只允許 VBR 所有者指定或修改。 兩個 IP 位址必須位於同一個子網中。 |
255.255.255.252 |
| MinTxInterval |
integer |
否 |
配置 BFD 報文的發送間隔,取值:200~1000,單位:ms。 |
300 |
| MinRxInterval |
integer |
否 |
配置 BFD 報文的接收間隔,取值:200~1000,單位:ms。 |
300 |
| DetectMultiplier |
integer |
否 |
檢測時間倍數,即接收方允許發送方發送報文的最大串連丟包數,用來檢測鏈路是否正常。 取值:3~10。 |
3 |
| Description |
string |
否 |
VBR 的描述資訊。 長度為 2~256 個字元,必須以字母或中文開頭,但不能以 |
desc |
| Name |
string |
否 |
VBR 的名稱。 長度為 2~128 個字元,必須以字母或中文開頭,可包含數字、底線(_)和短劃線(-)。但不能以 |
VBR |
| AssociatedPhysicalConnections |
string |
否 |
VBR 關聯的物理專線的列表資訊,包含以下參數:
|
[ { "VlanId": "5", "CircuitCode": "longtel001", "LocalGatewayIp": "192.168.XX.XX", "PeerGatewayIp": "192.168.XX.XX", "PeeringSubnetMask": "255.255.255.252", "LocalIpv6GatewayIp": "fd00:XXXX:1030:3f41::1", "PeerIpv6GatewayIp": "fd00:XXXX:1030:3f41::2", "PeeringIpv6SubnetMask": "fd00:0:1030:3f41::/126", "ipv6Enable": true, "PhysicalConnectionId": "pc-kojok19****" } ] |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
02fb3da4-130e-11e9-8e44-00**** |
| LocalIpv6GatewayIp |
string |
否 |
VBR 執行個體的阿里雲側互聯 IPv6 地址。 |
2001:XXXX:3c4d:0015:0000:0000:0000:1a2b |
| PeerIpv6GatewayIp |
string |
否 |
VBR 執行個體的客戶側互聯 IPv6 地址。
|
2001:XXXX:3c4d:0015:0000:0000:0000:2a2b |
| PeeringIpv6SubnetMask |
string |
否 |
VBR 執行個體的阿里雲側和客戶側互聯 IPv6 的子網路遮罩。 兩個 IPv6 地址必須位於同一個子網中。 |
2408:4004:cc:400::/56 |
| EnableIpv6 |
boolean |
否 |
是否啟用 IPv6。
|
false |
| Bandwidth |
integer |
否 |
頻寬值。單位:Mbps。 |
100 |
| SitelinkEnable |
boolean |
否 |
是否允許 IDC 間業務訪問。
|
false |
| Mtu |
integer |
否 |
VBR 支援的 MTU 值,取值範圍:1500 和 8500。 只有當 VBR 綁定到 ECR 上,才允許設定該值,該值還會影響同 ECR 內的其他所有 VBR 和 VPC。 |
1500 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
請求 ID。 |
||
| RequestId |
string |
請求 ID。 |
980960B0-2969-40BF-8542-EBB34FD358AB |
樣本
正常返回樣本
JSON格式
{
"RequestId": "980960B0-2969-40BF-8542-EBB34FD358AB"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | IllegalParam.AssociatedPhysicalConnections | The specified AssociatedPhysicalConnections is illegal. | 指定的AssociatedPhysicalConnections不合法。 |
| 400 | IllegalParam.IpAddress | The specified IpAddress is illegal. | 指定的IpAddress不合法 |
| 400 | IllegalParam.CidrBlock | The specified CidrBlock is illegal. | CidrBlock參數非法。 |
| 400 | InvalidVbrId.NotFound | The specified VirutalBorderRouter is not found. | |
| 400 | IllegalParam.MinTxInterval | The specified MinTxInterval is not in proper range. | 指定的 MinTxInterval 不在適當的範圍內。 |
| 400 | IllegalParam.MinRxInterval | The specified MinRxInterval is not in proper range. | 指定的 MinRxInterval 不在適當的範圍內。 |
| 400 | IllegalParam.DetectMultiplier | The specified DetectMultiplier is not in proper range. | DetectMultiplier參數不在適當範圍內。 |
| 400 | InvalidVlanId.Used | The specified VlanId has been used. | |
| 400 | Duplicated.LocalGatewayIp | The specified LocalGatewayIps are duplicated. | |
| 400 | Duplicated.PeerGatewayIp | The specified PeerGatewayIp are duplicated. | |
| 400 | IllegalParam.LocalGatewayIp | The specified LocalGatewayIp already exists. | |
| 400 | IllegalParam.PeerGatewayIp | The specified PeerGatewayIp already exists. | |
| 400 | InvalidCircuitCode.Malformed | The specified CircuitCode is not valid. | |
| 400 | InvalidVlanId.Malformed | The specified VlanId is not valid. | |
| 400 | InvalidIp.Malformed | The specified ip address is not valid. | |
| 400 | InvalidPeeringSubnetMask.Malformed | The specified PeeringSubnetMask is not valid. | 指定的PeeringSubnetMask不合法,請您檢查該參數是否正確。 |
| 400 | InvalidName.Malformed | The specified Name is not valid. | 參數Name值不合法 |
| 400 | InvalidDescription.Malformed | The specifid Description is not valid. | 參數Description值不合法 |
| 400 | MissingParameter | LocalGatewayIp, peerGatewayIp and peeringSubnetMask must not be null. | 參數缺失LocalGatewayIp,peerGatewayIp,peeringSubnetMask不可為空 |
| 400 | InvalidIp.NotSameSubnet | Local gateway ip and peer gateway ip are not in the same subnet. | 本地網關IP地址與對端網關IP地址不在同一個子網內。 |
| 400 | InvalidParameter | %s | |
| 400 | OperationFailed.VlanIdInUse | Operation failed because vlanId is in use. | vlanId已經被使用 |
| 400 | IncorrectStatus.VirtualBorderRouter | %s | |
| 400 | OperationUnsupported.IPV6ForThisRegion | This Region do not support IPV6. | 地區不支援IPV6 |
| 400 | OperationFailed.PconnTrafficNotEnable | The operation is failed because of PconnTrafficNotEnable. | 操作失敗,因為出方向流量未開通。 |
| 400 | OperationDenied.VBRAssociateVPconn | The operation is not allowed because of VBRAssociateVPconn. | VBR不允許綁定Vpconn |
| 400 | OperationFailed.PhysicalConnectionFinancialLocked | Update failed, the physical connection is financial locked. | 共用連接埠為欠費鎖定狀態,無法修改vlan。 |
| 400 | OperationFailed.PhysicalConnectionTerminated | Update failed, the physical connection is terminated. | 共用連接埠為已終止狀態,無法修改vlan。 |
| 400 | OperationFailed.VbrBandWidthMust0InVlan0Vbr | The operation is failed because of VbrBandWidthMust0InVlan0Vbr. | 操作失敗,不允許配置限速。 |
| 400 | MissingParam.DetectMultiplier | The parameter DetectMultiplier is mandatory. | 缺少參數 DetectMultiplier。配置 BFD 報文的時候需要同時配置發送間隔、接收間隔和檢測時間倍數三個參數。 |
| 400 | MissingParam.MinRxInterval | The parameter MinRxInterval is mandatory. | 缺少參數 MinRxInterval。配置 BFD 報文的時候需要同時配置發送間隔、接收間隔和檢測時間倍數三個參數。 |
| 400 | MissingParam.MinTxInterval | The parameter MinTxInterval is mandatory. | 缺少參數 MinTxInterval。配置 BFD 報文的時候需要同時配置發送間隔、接收間隔和檢測時間倍數三個參數。 |
| 400 | DuplicatedParam.LocalGatewayIp | The LocalGatewayIp values are duplicated. | 互聯IP重複,請更換後重試。 |
| 400 | Forbidden.VbrNotAllowModifySiteLink | Can not modify virtualBorderRouter site link, please call PD to authorize. | |
| 400 | OperationUnsupported.VirtualBorderRouterEnableIPv6 | The operation failed. The device or region does not support IPv6 functions. | 操作失敗,裝置或region不支援IPv6功能 |
| 400 | OperationFailed.PconnAllocateVlan0 | Vlan 0 Vbr cannot share the physical connection with another Vbr. | 物理專線上Vlan 0 不能和其他Vbr共存 |
| 400 | IllegalParam.VlanId | The parameter VlanId is illegal. | VlanId參數非法 |
| 400 | OperationFailed.VbrLocked | The VBR is locked. | 邊界路由器已被鎖定,請稍後重試。 |
| 400 | IllegalParam.%s | The param of %s is illegal. | 指定的參數非法 |
| 400 | OperationDenied.NotInWhiteList | User does not have permission to turn on jumbo frames. | |
| 400 | IncorrectStatus.Ecr | The express connect router is not in a steady state and cannot operate. | |
| 400 | ResourceInConfiguring.NodeId | The express connect router subinstance is not in a steady state and cannot operate. | |
| 400 | UnsupportedFeature.JumboFrame | The jumbo frame feature is not supported in the current region. | |
| 403 | Forbidden.CircuitCodeNotAllowedByCaller | The caller is not allowed to modify. | |
| 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.VlanIdNotAllowedByCaller | The caller is not allowed to specify the VlanId. | |
| 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. | 指定的RegionId不存在,請您檢查此產品在該地區是否可用。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。