調用DeleteVpnGateway介面刪除指定的VPN網關。
介面說明
無法刪除已有 IPsec 串連的 VPN 閘道。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| RegionId |
string |
是 |
VPN 閘道執行個體所在的地區 ID。 您可以通過調用 DescribeRegions 介面擷取地區 ID。 |
cn-hangzhou |
| ClientToken |
string |
否 |
用戶端 Token,用於保證請求的等冪性。 由用戶端產生該參數值,要保證在不同請求間唯一,最大值不超過 64 個 ASCII 字元。 說明
若您未指定,則系統自動使用 API 請求的 RequestId 作為 ClientToken 標識。每次 API 請求的 RequestId 可能不一樣。 |
02fb3da4-130e-11e9-8e44-0016e04115b |
| VpnGatewayId |
string |
是 |
VPN 閘道執行個體的 ID。 |
vpn-bp1q8bgx4xnkm2ogj**** |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| RequestId |
string |
請求 ID。 |
>0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
樣本
正常返回樣本
JSON格式
{
"RequestId": ">0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
異常返回樣本
JSON格式
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 400 | DependencyViolation.VpnConnection | There are vpn connections on specified customer gateway not deleted. | 指定的使用者網關上有 vpn 串連未刪除。 |
| 400 | DependencyViolation.SslVpnServer | There is SSL VPN server on specified vpn gateway not deleted. | 指定的 vpn 網關上有 SSL VPN 服務端未刪除。 |
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | DependencyViolation.GreTunnel | There is Gre tunnel on specified vpn gateway not deleted. | 指定的 vpn 網關上有 Gre 隧道未刪除。 |
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 400 | TaskConflict | The eip operate too frequent, TaskConflict. | 操作過於頻繁,任務衝突。 |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | 指定的 VPN 閘道不存在,請您檢查 VPN 閘道是否正確。 |
| 400 | DependencyViolation.IpsecServer | the resource cannot be deleted because the resource has an ipsec server dependency. | 該資源無法被刪除,因為該資源下有ipsec 服務端依賴。 |
| 403 | Forbidden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | 您沒有許可權操作該資源,請您申請操作許可權後再試。 |
| 403 | Forbidden | User not authorized to operate on the specified resource. | 您沒有許可權操作指定資源,請申請許可權後再操作。 |
| 403 | ForbiddenRelease | Forbidden to release a prepaid instance within validity period | |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。