ConnectRouterInterface - 由發起端路由器介面向接收端發起串連

更新時間:
Copy as MD

調用ConnectRouterInterface介面由發起端路由器介面向接收端發起串連。

介面說明

調用本介面後路由器介面進入 Connecting 狀態,串連完成後進入 Active 狀態。

調用該介面建立 VPC 時,請注意:

  • 只能由狀態為 Idle 的發起端路由器介面向接收端發起串連。

  • 任意兩個路由器之間,最多隻能存在一對相互串連的路由器介面。

  • 如果帳號下存在處於欠費狀態的路由器介面,無法進行發起串連。

調試

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

調試

授權資訊

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

請求參數

名稱

類型

必填

描述

樣本值

RegionId

string

路由器介面所在的地區。

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

cn-hangzhou

RouterInterfaceId

string

發起端路由器介面的 ID。

ri-2zeo3xzyf38r4urzd****

返回參數

名稱

類型

描述

樣本值

object

請求 ID。

RequestId

string

請求 ID。

DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6

樣本

正常返回樣本

JSON格式

{
  "RequestId": "DE77A7F3-3B74-41C0-A5BC-CAFD188C28B6"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 IncorrectRole.NotInitiatingSide The specified RouterInterface is not InitiatingSide.
400 IncorrectRIStatus RouterInterface can be operated by this action only when it's status is Idle. 只有路由器介面處於“閑置”狀態時,才可以使用此操作。
400 IncorrectOppositeInterfaceInfo.NotSet OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId must be all set. 參數OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeInterfaceOwnerId必須全部設定。
400 IncorrectOppositeInterfaceInfo Cannot connect on the same router
400 Forbidden.OnlyOneConnection The Specified routers have a connection already
400 Forbidden.BillsOutstanding You cannot use this action because you have bills outstanding.
400 InvalidAccount.NotFound The specified account is not exists.
400 ErrCode.Invalid got error
400 AttrMismatching.AcceptingSideRole %s
400 AttrMismatching.AcceptingSideInstanceId %s
400 AttrMismatching.AcceptingSideRegionNo %s
400 AttrMismatching.AcceptingSideRouterId %s
400 AttrMismatching.AcceptingSideRouterType %s
400 AttrMismatching.AcceptingSideAliUid %s
400 AttrMismatching.AcceptingSideOppositeInterfaceOwnerId %s
400 AttrMismatching.AcceptingSideOppositeRegionNo %s
400 AttrMismatching.AcceptingSideOppositeInterfaceId %s
400 AttrMismatching.AcceptingSideOppositeRouterId %s
400 AttrMismatching.AcceptingSideOppositeRouterType %s
400 IllegalParam.InstanceOwner The router instance owener error.
404 InvalidRegionId.NotFound The RegionId provided does not exist in our records. 指定的RegionId不存在
404 InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record.
404 CROSS_BID.FORBIDDEN Connect RouterInterface across bid is illegal

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

變更歷史

更多資訊,參考變更詳情