閱讀251 返回首頁    go 財經資訊


發起路由器接口連接__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲

描述

發起開放路由器接口互聯請求,將一個發起端RouterInterface與其對端RouterInterface進行連接。

關於功能的說明:

  • 隻允許對Role為InitiatingSide的RouterInterface進行該操作;對於一個Role為AcceptingSide的RouterInterface來說,隻能將連接對端信息設置好後,等待對方發起連接操作。
  • 隻有當對端RouterInterface也將連接對端設置為該RouterInterface,發起連接操作才能成功完成。
  • 這是一個異步操作,API調用返回成功,意味著連接搭建工作已經開始,RouterInterface的Status進入Connecting狀態(AcceptingSide的RouterInterface進入AcceptingConnect狀態);當RouterInterface進入Active狀態時,連接才真正搭建起來。
  • 路由器接口之間的連接,表示兩個路由器通過一根虛擬的“鏈路”連接起來。若要在鏈路上正確的實現消息的傳遞,還需要在兩邊的路由器上正確地配置路由表,以及在實際通信>的對象上正確的配置訪問控製規則;

該操作要求的條件與限製:

  • 一個RouterInterface隻能與一個RouterInterface建立連接;
  • 一個RouterInterface不允許和自己進行連接;
  • 一個RouterInterface不允許和同路由器上的其他RI進行連接
  • 任意兩個路由器之間,最多隻能存在一對連接中的RouterInterface。
  • 隻有狀態為Idle的RouterInterface上可以進行此操作;
  • 若用戶名下有RI處於欠費狀態(即,由有成功扣款的RI賬單),則不允許用戶進行該操作

請求參數

名稱 類型 是否必須 描述
Action string 係統規定參數,取值:ConnectRouterInterface
RegionId string 所在地域。
RouterInterfaceId string 要發起連接的路由器接口的Id。

返回參數

全是公共返回參數,詳見公共返回參數

錯誤碼

錯誤代碼 描述 Http 狀態碼 語義
InvalidRegionId.NotFound The specified RegionId does not exist in our record. 404 指定的 RegionId 不存在
InvalidRouterInterfaceId.NotFound The specified RouterInterfaceId does not exist in our record. 404 指定的 RouterInterfaceId 不存在
IncorrectRole.NotInitiatingSide The spedified RouterInterface is not InitiatingSide 400 指定的 RouterInterface 不是發起端
IncorrectStatus RouterInterface can be operated by this action only when it’s status is Idle. 400 當 RouterInterface 狀態為 “Idle” 時才能執行操作
IncorrectOppositeInterfaceInfo.NotSet OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeRouterOwnerId must be all set. 400 連接對端的信息未設置。
IncorrectOppositeInterfaceInfo The opposite RouterInterface information specified by OppositeInterfaceId/OppositeRouterId/OppositeRouterType/OppositeRouterOwnerId is wrong. Maybe the RouterInterface or Router does not exist, or the parameters mismatched, or that RouterInterface is not a AcceptingSide. 400 對端路由器接口的信息錯誤。或許是對端RouterInterfaceId/ RouterId並不存在,也或許是幾個參數之間的值不匹配,也或許是對端RouterInterface並不是一個接受端RouterInterface。
RejectedByOppositeInterface The opposite RouterInterface does not set this RouterInterface as a OppositeRouterInterface. Meybe it was wrongly set. Please check the configuration of the opposite RouterInterface. 403 對端路由器接口並未將該路由器接口設置為連接對端。或許這是對端路由器接口上未能正確配置對端信息。請檢查對端路由器接口上的配置。
Forbidden.BillsOutstanding You cannot use this action because you have bills outstanding. 400 有未結清的賬單,因而拒絕該操作;

最後更新:2016-11-23 16:03:50

  上一篇:go 查詢路由器接口列表__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲
  下一篇:go 將路由器接口置為非激活__高速通道相關接口_API 參考_雲服務器 ECS-阿裏雲