調用SetCenInterRegionBandwidthLimit介面設定、修改或刪除基礎版轉寄路由器頻寬包中兩個地區間的跨地區互連頻寬。
介面說明
此介面僅支援設定基礎版轉寄路由器頻寬包中兩個地區間的跨地區互連頻寬。
前提條件
目標雲企業網執行個體已經綁定了頻寬包執行個體。具體操作,請參見 CreateCenBandwidthPackage 和 AssociateCenBandwidthPackage 。
您可以調用 SetCenInterRegionBandwidthLimit 介面設定、修改或刪除跨地區互連頻寬:
BandwidthLimit 不為 0 ,表示設定或修改跨地區互連頻寬。
BandwidthLimit 為 0 ,表示刪除跨地區互連頻寬。
使用限制
-
跨地區互連頻寬的最大值不能超過其所屬的頻寬包執行個體的頻寬峰值。
-
一個頻寬包執行個體下的所有跨地區互連頻寬之和不能超過該頻寬包執行個體的頻寬峰值。
-
如果跨地區串連開啟了頻寬複用功能,則不支援修改跨地區互連頻寬。
-
SetCenInterRegionBandwidthLimit 介面僅支援為基礎版轉寄路由器設定、修改或刪除跨地區互連頻寬。
如果您需要為企業版轉寄路由器設定、修改或刪除跨地區互連頻寬,請參見 CreateTransitRouterPeerAttachment 、 UpdateTransitRouterPeerAttachmentAttribute 和 DeleteTransitRouterPeerAttachment 。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:SetCenInterRegionBandwidthLimit |
update |
*CenInstance
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| CenId |
string |
是 |
雲企業網執行個體 ID。 |
cen-7qthudw0ll6jmx**** |
| LocalRegionId |
string |
是 |
本端地區 ID。 您可以調用 DescribeChildInstanceRegions 介面擷取雲企業網支援載入的網路執行個體的地區資訊。 |
cn-hangzhou |
| OppositeRegionId |
string |
是 |
對端地區 ID。 |
us-west-1 |
| BandwidthLimit |
integer |
是 |
兩個地區之間的跨地區互連頻寬。單位:Mbps。 |
8 |
| BandwidthType |
string |
否 |
頻寬的分配方式。取值:
|
BandwidthPackage |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
530BC816-F575-412A-AAB2-435125D26328 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "530BC816-F575-412A-AAB2-435125D26328"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | MissingParam.CbnBandwidthPackageId | There are more than one suitable cen bandwidth package | 缺少參數CbnBandwidthPackageId。 |
| 400 | AttrMismatching.CbnBandwidthPackageId | %s | |
| 400 | OperationFailed.InvalidOperation | The operation is failed because the operation is not support. | |
| 400 | OperationUnsupported.Attachment | The cross region connection contains an existing bandwidth. The operation is not supported. | 跨地區串連存在頻寬複用,不支援此操作。 |
| 400 | InvalidOperation.UnsupportChargeType | The charge type is not supported by this operation. | 當前付費類型不支援該操作。 |
| 400 | OperationUnsupported.TrafficQosPolicyExist | Operation unsupported because traffic qos policy exists. | qos策略存在,不支援該操作。 |
| 400 | OperationUnsupported.BandwidthType | The specified BandwidthType does not support the operation. | 當前BandwidthType不支援該操作。 |
| 400 | IllegalParam.BandwidthType | BandwidthType is illegal. | 頻寬包類型不合法。 |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal. | 頻寬包ID不合法。 |
| 400 | ParamExclusive.BandwidthTypeAndCenBandwidthPackageId | DataTransfer and CenBandwidthPackageId is mutually exclusive. | 頻寬分配方式為CDT時,不支援設定CenBandwidthPackageId欄位。 |
| 400 | IdentityRegistrationStatusNotSupport | Real name registration of enterprises required. | 需要完成企業實名登記 |
| 400 | IllegalParam.BandwidthLessThanQosPolicyBandwidth | The input bandwidth value is less than the sum of the Qos policy bandwidth. | 輸入的頻寬值小於QoS按頻寬分配的限速值總和。 |
| 400 | OperationUnsupported.RegionId | The specified RegionId does not support the operation. | 當前地區不支援該操作。 |
| 400 | QuotaExceeded.Bandwidth | Bandwidth quota exceeded. | 頻寬值超出配額限制。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無許可權操作。 |
| 400 | IncorrectStatus.TransitRouter | The resource is not in a valid state for the operation. | 當前TR的狀態不支援該操作,請稍後重試。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。