Menghapus gateway VPN yang ditentukan.
Deskripsi operasi
Anda tidak dapat menghapus gateway VPN yang memiliki koneksi IPsec-VPN aktif.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteVpnGateway |
delete |
*VpnGateway.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari gateway VPN. Anda dapat memanggil DescribeRegions untuk menanyakan ID wilayah. |
cn-hangzhou |
| ClientToken |
string |
No |
Token client yang digunakan untuk memastikan idempotensi permintaan. Nilai ini dihasilkan oleh client. Pastikan nilainya unik di antara permintaan yang berbeda. Token dapat memiliki panjang hingga 64 karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem akan menggunakan RequestId sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04115b |
| VpnGatewayId |
string |
Yes |
ID gateway VPN. |
vpn-bp1q8bgx4xnkm2ogj**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
>0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": ">0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DependencyViolation.VpnConnection | There are vpn connections on specified customer gateway not deleted. | Gateway pelanggan yang ditentukan memiliki koneksi VPN yang belum dihapus. |
| 400 | DependencyViolation.SslVpnServer | There is SSL VPN server on specified vpn gateway not deleted. | Gateway VPN yang ditentukan memiliki server SSL VPN yang belum dihapus. |
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | DependencyViolation.GreTunnel | There is Gre tunnel on specified vpn gateway not deleted. | Gateway VPN tertentu memiliki saluran data GRE yang belum dihapus. |
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 400 | TaskConflict | The eip operate too frequent, TaskConflict. | Operasi terlalu sering. Tunggu sebentar lalu coba lagi. |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | Gateway VPN yang ditentukan tidak ada. Periksa apakah Gateway VPN sudah benar. |
| 400 | DependencyViolation.IpsecServer | the resource cannot be deleted because the resource has an ipsec server dependency. | Gateway VPN yang ditentukan memiliki konfigurasi server IPsec-VPN yang belum dihapus. |
| 403 | Forbidden.SubUser | User not authorized to operate on the specified resource as your account is created by another user. | Anda tidak memiliki izin untuk beroperasi pada Sumber daya ini. Ajukan izin yang diperlukan dan coba lagi. |
| 403 | Forbidden | User not authorized to operate on the specified resource. | EIP bukan milik pemanggil saat ini. Periksa apakah Anda memiliki izin untuk mengakses EIP ini. |
| 403 | ForbiddenRelease | Forbidden to release a prepaid instance within validity period | |
| 404 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.