調用UpdateTransitRouterPeerAttachmentAttribute介面修改企業版轉寄路由器下跨地區串連的配置。
介面說明
UpdateTransitRouterPeerAttachmentAttribute 介面屬於非同步介面,即系統會先返回一個 RequestId,但該跨地區串連並未修改完成,系統背景修改任務仍在進行。您可以調用 ListTransitRouterPeerAttachments 介面查詢跨地區串連的狀態。
當跨地區串連處於 Modifying 狀態時,表示跨地區串連正在修改中,在該狀態下,您只能對跨地區串連執行查詢操作,不能執行其他動作。
當跨地區串連處於 Attached 狀態時,表示跨地區串連修改完成。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:UpdateTransitRouterPeerAttachmentAttribute |
update |
*TransitRouterPeerAttachment
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 可能不一樣。 |
02fb3da4-130e-11e9-8e44-001**** |
| TransitRouterAttachmentId |
string |
是 |
跨地區串連 ID。 |
tr-attach-ft94dcrbc3e5taun3x |
| TransitRouterAttachmentName |
string |
否 |
跨地區串連的新名稱。 名稱可以為空白或長度為 1~128 個字元,不能以 http://或 https://開頭。 |
testname |
| TransitRouterAttachmentDescription |
string |
否 |
跨地區串連新的描述資訊。 描述可以為空白或長度為 1~256 個字元,不能以 http://或 https://開頭。 |
testdesc |
| AutoPublishRouteEnabled |
boolean |
否 |
是否允許企業版轉寄路由器自動發布跨地區串連的路由到對端地區。
|
false |
| DryRun |
boolean |
否 |
是否對此次請求執行預檢,包括許可權、執行個體狀態校正等。取值:
|
false |
| Bandwidth |
integer |
否 |
跨地區串連的頻寬值。單位:Mbps。
|
2 |
| CenBandwidthPackageId |
string |
否 |
跨地區串連要綁定的頻寬包 ID。 說明
當 BandwidthType 取值為 DataTransfer 時,無需配置該項。 |
cenbwp-3xrxupouolw5ou**** |
| BandwidthType |
string |
否 |
頻寬的分配方式。取值:
|
BandwidthPackage |
| DefaultLinkType |
string |
否 |
預設鏈路類型。 可選值為 Platinum(鉑金),Gold(金),預設為 Gold(金)。 且僅在頻寬分配方式是按流量計費時,才可以配置為 Platinum(鉑金)。 |
Gold |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
A01FEDD7-7D69-4EB3-996D-CF79F6F885CA |
樣本
正常返回樣本
JSON格式
{
"RequestId": "A01FEDD7-7D69-4EB3-996D-CF79F6F885CA"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 網路連接執行個體ID不存在。 |
| 400 | OperationUnsupported.BandwidthType | The specified BandwidthType does not support the operation. | 當前BandwidthType不支援該操作。 |
| 400 | MissingParam.Bandwidth | The parameter Bandwidth is mandatory. | 頻寬值參數是必需的。 |
| 400 | IncorrectStatus.Attachment | The resource is not in a valid state for the attachment operation. | 網路連接執行個體正在處理狀態,請稍後再操作。 |
| 400 | IllegalParam.BandwidthType | BandwidthType is illegal. | 頻寬包類型不合法。 |
| 400 | IllegalParam.Bandwidth | Bandwidth is illegal. | 頻寬包ID不合法。 |
| 400 | ParameterIllegal.BandwidthPackageDefaultLinkTypeOnlySupportGold | Cen bandwidthPackage only support Gold. | 頻寬分配方式為頻寬包時,預設鏈路類型僅支援金(Gold) |
| 400 | ParameterIllegal.CdtDefaultLinkTypeOnlySupportPlatinumOrGold | DataTransfer only support Platinum and Gold. | 頻寬分配方式為按流量計費時,預設鏈路類型僅支援鉑金(Platinum)和金(Gold)。 |
| 400 | ParameterIllegal.CdtDefaultLinkTypeOnlySupportGold | CDT only support Gold when both transitrouters for cross regional connections are not all enterprise version. | 當跨地區串連的兩端轉寄路由器不全是企業版且頻寬分配方式為按流量計費時,預設鏈路類型僅支援金(Gold)。 |
| 400 | OperationNotAllowed.DefaultLinkTypeOnlySupportGold | Operation is not allowed because this user can only set default link type to Gold. | 本使用者只能設定預設鏈路類型為金。 |
| 400 | OperationUnsupported.TransitRouterAttachment | The specified TransitRouterAttachment has configured TransitRegion. Please remove the configuration first. | 存在頻寬複用配置,請刪除後重試。 |
| 400 | IllegalParam.BandwidthLessThanQosPolicyBandwidth | The input bandwidth value is less than the sum of the Qos policy bandwidth. | 輸入的頻寬值小於QoS按頻寬分配的限速值總和。 |
| 400 | IllegalParam.BandwidthPackageStatus | The status of the bandwidth package is incorrect. | 頻寬包的狀態錯誤。 |
| 400 | QuotaExceeded.Bandwidth | Bandwidth quota exceeded. | 頻寬值超出配額限制。 |
| 400 | ParamExclusive.BandwidthTypeAndCenBandwidthPackageId | DataTransfer and CenBandwidthPackageId is mutually exclusive. | 頻寬分配方式為CDT時,不支援設定CenBandwidthPackageId欄位。 |
| 400 | OperationUnsupported.CloudDataTransferService | CCN region not support cloud data transfer service. | CCN地區中不支援cloud data transfer服務。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無許可權操作。 |
| 400 | ParameterIllegal.CdtDefaultLinkTypeOnlySupportUnderlaySilver | CDT only support UnderlaySilver when both transitrouters for cross regional connections are not all enterprise version. | 當跨地區串連的兩端轉寄路由器不全是企業版且頻寬分配方式為按流量計費時,預設鏈路類型僅支援銀(UnderlaySilver)。 |
| 400 | ParameterIllegal.DefaultLinkTypeOnlySupportUnderlaySilver | Cen bandwidthPackage only support UnderlaySilver. | 頻寬分配方式為頻寬包時,預設鏈路類型僅支援銀(UnderlaySilver) |
| 400 | OperationNotAllowed.DefaultLinkTypeOnlySupportUnderlaySilver | This user can only set the default link type to UnderlaySilver. | 本使用者只能設定預設鏈路類型為銀(UnderlaySilver)。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。