呼叫 DeleteIpv6Gateway 介面刪除 IPv6 閘道。
介面說明
刪除 IPv6 閘道前,請先刪除僅主動出規則。更多資訊,請參見 DeleteIpv6EgressOnlyRule 。
- DeleteIpv6Gateway 介面屬於非同步介面,即系統返回一個請求 ID,但該 IPv6 閘道尚未刪除成功,系統背景的刪除任務仍在進行。您可以呼叫 DescribeIpv6GatewayAttribute 查詢 IPv6 閘道的刪除狀態:
當 IPv6 閘道處於 Deleting 狀態時,表示 IPv6 閘道正在刪除中。
當查詢不到指定的 IPv6 閘道時,表示 IPv6 閘道刪除成功。
DeleteIpv6Gateway 介面不支援並行刪除同一個 IPv6 閘道。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
vpc:DeleteIpv6Gateway |
delete |
*Ipv6Gateway
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
IPv6 閘道所屬的地域 ID。您可以透過呼叫 DescribeRegions 介面取得地域 ID。 |
cn-huhehaote |
| Ipv6GatewayId |
string |
是 |
要刪除的 IPv6 閘道執行個體 ID。 |
ipv6gw-hp3y0l3ln89j8**** |
| DryRun |
boolean |
否 |
是否僅預檢此次請求,取值:
|
false |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的冪等性。 從您的用戶端產生一個參數值,確保不同請求間該參數值唯一。ClientToken 僅支援 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 識別碼。每次 API 請求的 RequestId 可能不一樣。 |
123e4567-e89b-12d3-a456-426655440000 |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE |
樣本
正常返回樣本
JSON格式
{
"RequestId": "E9A8AABE-A84B-4AF2-A68A-8E2EA190E7AE"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | DependencyViolation.GatewayRouteTableRelation | The specified resource of %s depends on %s, so the operation cannot be completed. | 您指定的資源被其他的資源依賴,不允許進行目前操作。 |
| 400 | IncorrectStatus.Ipv6Gateway | The status of %s [%s] is incorrect. | 您指定的 Ipv6Gateway 處於非穩態,請稍後重試。 |
| 400 | DependencyViolation.EgressRules | The specified resource of %s depends on %s, so the operation cannot be completed. | 您指定的資源被其他的資源依賴,不允許進行目前操作。 |
| 400 | DependencyViolation.Ipv6InternetBandwidth | The specified resource of %s depends on %s, so the operation cannot be completed. | 指定的 IPv6 執行個體已開通 IPv6 頻寬,請釋放 IPv6 頻寬後再操作。 |
| 400 | OperationFailed.RouteEntryUnstable | The operation is failed because of route entry related to it is unstable, please try later. | 由於執行個體關聯的路由條目處於非穩態,請稍後重試。 |
| 400 | Forbidden.OperateShareResource | You cannot operate shared resources. | 來自共享的資源不允許操作。 |
| 400 | DependencyViolation.SharedIpv6InternetBandwidth | The IPv6 gateway [%s] has IPv6 address [%s] that enabled internet from share user [%s], please delete it and try again later. | 此 IPv6 閘道[%s]下的位址[%s]開通了公網頻寬,來自於共享使用者[%s],請刪除後重試。 |
| 400 | IncorrectStatus.Vpc | Vpc incorrect status. | 指定的 VPC 未處於穩態。 |
| 400 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | 參數錯誤。 |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。