Memanggil operasi DeleteVpnConnection untuk menghapus koneksi IPsec-VPN tertentu.
Deskripsi operasi
- Operasi DeleteVpnConnection bersifat asinkron. Setelah Anda melakukan panggilan, sistem mengembalikan ID permintaan, tetapi koneksi IPsec-VPN belum dihapus. Tugas penghapusan terus berjalan di latar belakang. Anda dapat memanggil operasi DescribeVpnGateway untuk mengkueri status instance gateway VPN dan menentukan status penghapusan koneksi IPsec-VPN:
Ketika instance gateway VPN berada dalam status updating, koneksi IPsec-VPN sedang dihapus.
Ketika instance gateway VPN berada dalam status active, koneksi IPsec-VPN telah dihapus.
Operasi DeleteVpnConnection tidak mendukung penghapusan bersamaan untuk koneksi IPsec-VPN tertentu di bawah gateway VPN yang sama.
Setelah koneksi IPsec-VPN dihapus, koneksi antara pusat data on-premises dan Alibaba Cloud akan terputus.
Coba sekarang
Test
RAM authorization
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID region tempat koneksi IPsec-VPN dibuat. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID region. |
cn-hangzhou |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan nilai, tetapi Anda harus memastikan nilai tersebut unik di antara permintaan yang berbeda. Token hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan nilai RequestId sebagai ClientToken. Nilai RequestId berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04115b |
| VpnConnectionId |
string |
Yes |
ID koneksi IPsec-VPN. |
vco-bp1bbi27hojx80nck**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
606998F0-B94D-48FE-8316-ACA81BB230DA |
Contoh
Respons sukses
JSONformat
{
"RequestId": "606998F0-B94D-48FE-8316-ACA81BB230DA"
}
Respons error
JSONformat
{
"RequestId":"606998F0-B94D-48FE-8316-ACA81BB230DA"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | VpnGateway.Configuring | The specified service is configuring. | |
| 400 | VpnTask.CONFLICT | Vpn task has conflict. | |
| 400 | VpnGateway.FinancialLocked | The specified service is financial locked. | |
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 400 | InvalidVpnGatewayInstanceId.NotFound | The specified vpn gateway instance id does not exist. | |
| 403 | Forbbiden.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. | |
| 404 | InvalidVpnConnectionInstanceId.NotFound | The specified vpn connection instance id does not exist. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.