調用DeleteTransitRouterVpnAttachment介面刪除VPN串連。
介面說明
在調用 DeleteTransitRouterVpnAttachment 介面過程時請確保輸入的參數值無誤。如果您輸入的參數有誤調用介面後仍然會返回 RequestId,但不會刪除 VPN 串連。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
cen:DeleteTransitRouterVpnAttachment |
delete |
*TransitRouterVpnAttachment
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 只支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 不一樣。 |
123e4567-e89b-12d3-a456-42665544**** |
| DryRun |
boolean |
否 |
是否只預檢此次請求。取值:
|
false |
| TransitRouterAttachmentId |
string |
是 |
VPN 串連 ID。 |
tr-attach-b9xj1dv69600kj**** |
| Force |
boolean |
否 |
是否強制移除 VPN 串連,取值:
|
false |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
返回結果。 |
||
| RequestId |
string |
請求 ID。 |
FA43C571-E88B-56C0-8FF8-5646D9B96297 |
樣本
正常返回樣本
JSON格式
{
"RequestId": "FA43C571-E88B-56C0-8FF8-5646D9B96297"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | OperationFailed.RouteTableAssociationExist | Operation failed because TransitRouterRouteTable exists. | TransitRouterRouteTable存在,無法支援當前操作。 |
| 400 | OperationFailed.RouteEntryExist | Operation failed because the TransitRouterAttachment exists in RouteTable. | |
| 400 | InvalidTransitRouterAttachmentId.NotFound | The TransitRouterAttachmentId is not found. | 參數中指定的TransitRouterAttachmentId不存在。 |
| 400 | OperationFailed.NotSupportForceDelete | Not support force delete attachment. | 不支援強制移除功能。 |
| 400 | OperationUnsupported.TransitRouterType | The operation is not supported because of the wrong transitRouter type. | 當前TransitRouter類型不支援該操作。 |
| 400 | IncorrectStatus.ResourceStatus | The resource is not in a valid state for the attachment operation. | 該資源不處於穩態,無法進行該操作,請稍後重試。 |
| 400 | OperationFailed.RouteTablePropagationExist | Operation failed because You are not allowed to delete TransitAttachment with TransitRouter RouteTable Associated. | TransitAttachment綁定在路由表上,請解除綁定後重試。 |
| 400 | OperationFailed.PrefixListExist | Operation failed because PrefixList exists. | prefixlist存在,操作失敗。 |
| 400 | OperationFailed.FlowLogExistOrNisOpened | Operation failed because FlowLog exists or Nis opened. | 存在flowlog或者開通Nis服務,無法支援該操作。 |
| 400 | InvalidParameter | Invalid parameter. | 參數不合法。 |
| 400 | Unauthorized | The AccessKeyId is unauthorized. | 帳號無許可權操作。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。