Menghapus koneksi IPsec-VPN dengan memanggil operasi DeleteVpnAttachment.
Deskripsi operasi
Jika koneksi IPsec-VPN dikaitkan dengan instance transit router, putuskan kaitannya dari instance tersebut sebelum menghapus koneksi IPsec-VPN. Untuk informasi selengkapnya, lihat DeleteTransitRouterVpnAttachment.
Jika koneksi IPsec-VPN tidak dikaitkan dengan resource apa pun, Anda dapat langsung memanggil operasi
DeleteVpnAttachmentuntuk menghapus koneksi tersebut.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteVpnAttachment |
delete |
*VpnConnections
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari koneksi IPsec-VPN. Anda dapat memanggil operasi DescribeRegions untuk menanyakan ID wilayah. |
cn-hangzhou |
| VpnConnectionId |
string |
Yes |
ID koneksi IPsec-VPN. |
vco-p0w7gtr14m09r9lkr**** |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Anda dapat menggunakan klien untuk menghasilkan token, tetapi pastikan token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya boleh berisi karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem secara otomatis menggunakan nilai RequestId sebagai nilai ClientToken. Nilai RequestId berbeda untuk setiap permintaan API. |
123e4567-e89b-12d3-a456-4266**** |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Parameter respons. |
||
| RequestId |
string |
ID permintaan. |
29440C49-398F-3D06-BA8B-E3CD13F3246D |
| Code |
string |
Kode status yang dikembalikan oleh tugas saat ini. Nilai 200 menunjukkan bahwa tugas berhasil. |
200 |
| Success |
boolean |
Menunjukkan apakah tugas saat ini berhasil dieksekusi.
|
true |
| Message |
string |
Pesan yang dikembalikan oleh tugas saat ini. |
successful |
Contoh
Respons sukses
JSONformat
{
"RequestId": "29440C49-398F-3D06-BA8B-E3CD13F3246D",
"Code": "200",
"Success": true,
"Message": "successful"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | VpnConnection.Configuring | The specified service is configuring. | Layanan sedang dikonfigurasi. Coba lagi nanti. |
| 400 | InternalError | The request processing has failed due to some unknown error, exception or failure. | |
| 400 | Vco.StatusNotSupport | The current VCO status does not support operations such as modification and deletion. | Status saat ini dari gateway pelanggan VPN (VCO) tidak mendukung operasi seperti modifikasi atau penghapusan. |
| 400 | CrossAccountAuthorizedVco.NotAllowDelete | Current vpn connection is cross account authorized to cen, should delete cross account authorization first. | Instans koneksi VPN saat ini diotorisasi ke CEN di akun lain. Hapus otorisasi lintas akun sebelum menghapusnya. |
| 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.