全部產品
Search
文件中心

Cloud Enterprise Network:DeleteTransitRouterVbrAttachment

更新時間:Aug 12, 2026

呼叫 DeleteTransitRouterVbrAttachment 介面刪除企業版轉發路由器下的邊界路由器 VBR(Virtual border router)連線。

介面說明

DeleteTransitRouterVbrAttachment 介面屬於非同步介面,即系統會先返回一個 RequestId,但該 VBR 連線並未刪除完成,系統後台的刪除任務仍在進行。您可以呼叫 ListTransitRouterVbrAttachments 介面查詢 VBR 連線的狀態。

  • 當 VBR 連線處於 Detaching 狀態時,表示 VBR 連線正在刪除中,在該狀態下,您只能對 VBR 連線執行查詢操作,不能執行其他操作。

  • 當查詢不到指定的 VBR 連線時,表示 VBR 連線刪除完成。

在呼叫 DeleteTransitRouterVbrAttachment 介面過程中請確保輸入的參數值無誤。如果您輸入的參數有誤,呼叫介面後仍然會返回 RequestId,但不會刪除企業版轉發路由器下的邊界路由器 VBR 連線。

調試

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

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

cen:DeleteTransitRouterVbrAttachment

delete

*TransitRouterVbrAttachment

acs:cen:*:{#accountId}:centransitrouterattachment/{#centransitrouterattachmentId}

請求參數

名稱

類型

必填

描述

樣本值

ClientToken

string

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

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

說明

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

02fb3da4-130e-11e9-8e44-001****

TransitRouterAttachmentId

string

VBR 連線 ID。

tr-attach-9nlnjv7by7n7a****

DryRun

boolean

是否對此次請求執行預檢,包括權限、執行個體狀態驗證等。取值:

  • false(預設值):傳送正常請求,通過檢查後直接刪除 VBR 連線。

  • true:傳送檢查請求,只進行驗證,不會刪除 VBR 連線。檢查項目包括是否填寫了必要參數、請求格式等。如果檢查不通過,則返回對應錯誤。如果檢查通過,則返回對應請求 ID。

false

Force

boolean

是否強制刪除 VBR 連線,取值:

  • false(預設值):刪除 VBR 連線前驗證是否存在相關資源相依性,如關聯轉發、路由學習等。如果存在相關相依性,則不允許刪除,返回對應錯誤。

  • true:刪除 VBR 連線時,預設刪除所有相關相依性。

false

返回參數

名稱

類型

描述

樣本值

object

返回結果。

RequestId

string

請求 ID。

3EDA94DE-0AE5-41FC-A91E-7170E408E0FD

樣本

正常返回樣本

JSON格式

{
  "RequestId": "3EDA94DE-0AE5-41FC-A91E-7170E408E0FD"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

400 OperationFailed.RouteTableAssociationExist Operation failed because TransitRouterRouteTable exists 由於存在關聯的路由表,網路連線刪除失敗。
400 OperationFailed.RouteEntryExist Operation failed because the TransitRouterAttachment exists in RouteTable.
400 OperationFailed.RouteTablePropagationExist The specified TransitRouterAttachment has configured RouteTablePropagation. Please remove the configuration first. TransitAttachment 已綁定至路由表,請解除綁定後重試。
400 OperationFailed.VbrAttachedVbrHa The operation is failed because of VbrAttachedVbrHa.
400 OperationFailed.FlowLogExistOrNisOpened Operation failed because FlowLog exists or Nis opened. 存在 flowlog 或已啟用 Nis 服務,無法支援該操作。
400 OperationUnsupported.TransitRouterType The specified TransitRouterType does not support the operation. 目前的 TransitRouter 類型不支援此操作。
400 InstanceReferenced.VpcRouteEntry The specified attachment is referenced by vpc route entry. VPC 中存在路由的下一跳指向該 attachment,無法操作。
400 OperationFailed.NotSupportForceDelete Not support force delete attachment. 不支援強制刪除功能。
400 InvalidTransitRouterAttachmentId.NotFound The TransitRouterAttachmentId is not found. 參數中指定的 TransitRouterAttachmentId 不存在。
400 OperationFailed.PrefixListExist Operation failed because PrefixList exists. prefix list 存在,無法支援該操作,請刪除 prefix list 後重試。
400 OperationFailed.VbrWithAllowPrefixes Operation failed because allow prefixes referenced by vbr exists. VBR 上目前設定了允許的前綴路由,導致操作失敗。
400 InvalidParameter Invalid parameter. 參數不合法。
400 Unauthorized The AccessKeyId is unauthorized. 帳號無權限操作。
400 InstanceReferenced.VbrRouteEntry Operation is failed because there is at least one route entry which next hop is the specified attachment. VBR 中存在路由的下一跳指向該 attachment,無法操作。
400 OperationNotPermitted.AttachmentManagedByCloudService The specified Attachment managed by cloud service can only be deleted through cloud service.
400 InvalidParameter.TransitRouterAttachmentId The specified parameter TransitRouterAttachmentId is invalid.

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

變更歷史

更多資訊,參考變更詳情