調用DeleteTransitRouterVpcAttachment介面刪除企業版轉寄路由器下的Virtual Private Cloud(Virtual Private Cloud)串連。
介面說明
DeleteTransitRouterVpcAttachment 介面屬於非同步介面,即系統會先返回一個 RequestId,但該 VPC 串連並未刪除完成,系統背景刪除任務仍在進行。您可以調用 ListTransitRouterVpcAttachments 介面查詢 VPC 串連的狀態。
當 VPC 串連處於 Detaching 狀態時,表示 VPC 串連正在刪除中,在該狀態下,您只能對 VPC 串連執行查詢操作,不能執行其他動作。
當查詢不到指定的 VPC 串連時,表示 VPC 串連刪除完成。
在調用 DeleteTransitRouterVpcAttachment 介面過程時請確保輸入的參數值無誤。如果您輸入的參數有誤調用介面後仍然會返回 RequestId,但不會刪除企業版轉寄路由器下的Virtual Private Cloud 串連。
前提條件
刪除 VPC 串連前,請確保您未使用該 VPC 執行個體配置訪問 PrivateZone 的路由。刪除訪問 PrivateZone 的路由,請參見UnroutePrivateZoneInCenToVpc 。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:DeleteTransitRouterVpcAttachment |
delete |
*TransitRouterVpcAttachment
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
02fb3da4-130e-11e9-8e44-001**** |
| TransitRouterAttachmentId |
string |
是 |
VPC 串連 ID。 |
tr-attach-ia340z7xis7t5s**** |
| DryRun |
boolean |
否 |
是否對此次請求執行預檢,包括許可權、執行個體狀態校正等。取值:
|
false |
| Force |
boolean |
否 |
是否強制移除 VPC 串連,取值:
|
false |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
7E61D334-4025-41EF-9145-FC327B35301D |
樣本
正常返回樣本
JSON格式
{
"RequestId": "7E61D334-4025-41EF-9145-FC327B35301D"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationFailed.AttachmentReferencedVpcRouteEntryExisted | Operation is failed because there is at least one route entry which next hop is the specified attachment. | 存在路由指向attachment,無法支援該操作。 |
| 400 | OperationFailed.RouteTablePropagationExist | The specified TransitRouterAttachment has configured RouteTablePropagation. Please remove the configuration first. | 該網路連接配置了路由表學習,請先解除路由學習。 |
| 400 | OperationFailed.MulticastDomainAssociationExist | The specified TransitRouterAttachment has configured MulticastDomainAssociation. Please remove the configuration first. | 當前TransitRouterAttachment綁定在組播域上,請解除綁定後重試。 |
| 400 | OperationUnsupported.TransitRouterType | The specified TransitRouterType does not support the operation. | 當前TransitRouter類型不支援該操作。 |
| 400 | OperationFailed.PrefixListExist | Operation failed because PrefixList exists. | prefixlist存在,操作失敗。 |
| 400 | InvalidTransitRouterAttachmentId.NotFound | TransitRouterAttachmentId is not found. | 網路連接執行個體ID不存在。 |
| 400 | IncorrectStatus.VpcRouteEntry | The resource is not in a valid state for the attachment operation. | 當前VpcRouteEntry的狀態不支援該操作,請稍後重試。 |
| 400 | IncorrectStatus.VpcSwitch | The resource is not in a valid state for the attachment operation. | 當前Vswitch的狀態不支援該操作,請稍後重試。 |
| 400 | IncorrectStatus.Vpc | The resource is not in a valid state for the operation. | 當前VPC的狀態不支援該操作,請稍後重試。 |
| 400 | OperationFailed.NotSupportForceDelete | Not support force delete attachment. | 不支援強制移除功能。 |
| 400 | IncorrectStatus.VpcRouteTable | The VPC route table is not in a desired state. | 該操作相關的VPC路由表不處於穩態,無法操作,請稍後重試。 |
| 400 | OperationFailed.RouteEntryExist | Failed to delete the instance because a route table entry points to the instance. | 存在指向該執行個體的路由表項無法刪除該執行個體,請刪除路由表項後刪除。 |
| 400 | OperationFailed.RouteTableAssociationExist | Operation failed because there is associated routing table. | 由於存在關聯的路由表,網路連接刪除失敗。 |
| 400 | IncorrectStatus.VpcResource | The resource is not in a valid state for the attachment operation. | 當前VPC資源不處於穩態,無法進行該操作,請等待與當前VPC相關操作結束後重試。 |
| 400 | OperationFailed.FlowLogExistOrNisOpened | Operation failed because FlowLog exists or Nis opened. | 存在flowlog或者開通Nis服務,無法支援該操作。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無許可權操作。 |
| 400 | OperationNotPermitted.AttachmentManagedByCloudService | The specified Attachment managed by cloud service can only be deleted through cloud service. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。