ModifyRouterInterfaceSpec - 修改路由器介面的規格

更新時間:
Copy as MD

調用ModifyRouterInterfaceSpec介面修改路由器介面的規格。

介面說明

調用本介面後,路由器介面進入啟用中(Activating)狀態,啟用成功後進入已啟用(Active)狀態。

說明

無法修改處於欠費狀態的路由器介面的規格。

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

路由器介面所在的地區。

您可以通過調用 DescribeRegions 介面擷取地區 ID。

cn-hangzhou

RouterInterfaceId

string

路由器介面的 ID。

ri-2zeo3xzyf38r4urzd****

Spec

string

路由器介面的規格。可用的規格和對應的頻寬如下:

  • Mini.2:2Mbps

  • Mini.5:5Mbps

  • Small.1:10Mbps

  • Small.2:20Mbps

  • Small.5:50Mbps

  • Middle.1:100Mbps

  • Middle.2:200Mbps

  • Middle.5:500Mbps

  • Large.1:1000 Mbps

  • Large.2:2000Mbps

  • Large.5:5000 Mbps

  • Xlarge.1:10000Mbps

說明

RoleAcceptingSide(串連接收端)時,Spec 取值為 Negative

Small.1

ClientToken

string

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

從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。

說明

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

02fb3da4-130e-11e9-8e44-0016e04115b

返回參數

名稱

類型

描述

樣本值

object

路由器介面規格。

Spec

string

路由器介面的規格。取值:

  • Mini.2:2Mbps

  • Mini.5:5Mbps

  • Small.1:10Mbps

  • Small.2:20Mbps

  • Small.5:50Mbps

  • Middle.1:100Mbps

  • Middle.2:200Mbps

  • Middle.5:500Mbps

  • Large.1:1000 Mbps

  • Large.2:2000Mbps

  • Large.5:5000 Mbps

  • Xlarge.1:10000Mbps

Small.1

RequestId

string

請求 ID。

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

樣本

正常返回樣本

JSON格式

{
  "Spec": "Small.1",
  "RequestId": "4EC47282-1B74-4534-BD0E-403F3EE64CAF"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 Forbidden.FinancialLocked RouterInterface can not be operated by this action when it?s FinancialLocked.
400 InvalidParam.NotFound Parameter must not be null,uid, bid,regionNo, remoteRegionNo or routerId
400 InvalidOppositeRegionId.NotFound The OppositeRegionId provided does not exist in our records.
400 InvalidInstanceOwner.Error The router instance owner error. 執行個體owner錯誤
400 InvalidRouterInterfaceSpec.Malformed Specified RouterInterface spec is not valid. 指定的RouterInterface Spec無效。
400 IllegalParam.chargeType RouterInterface chargeType different.
400 ResourceQueryError The specified resource is queried error. 查詢指定的資源時出錯。
400 InvalidSpec.ValueNotSupported The specified Spec is not supported.
400 InvalidSpec.ValueNotSupported The specified Spec is not supported. 路由器介面規格無效
400 InvalidInstance.StatusError The router instance status error. 執行個體狀態錯誤。
400 InvalidOpposite.NotFound The opposite does not exist. 對端不存在。
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record.

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

變更歷史

更多資訊,參考變更詳情