Menghapus koneksi IPsec-VPN.
Deskripsi operasi
Jika koneksi IPsec-VPN dikaitkan dengan instans router transit, lepaskan kaitan koneksi IPsec-VPN dari instans router transit sebelum Anda menghapus koneksi IPsec-VPN. Untuk informasi selengkapnya, lihat DeleteTransitRouterVpnAttachment.
Jika koneksi IPsec-VPN tidak dikaitkan dengan Sumber daya apa pun, Anda dapat memanggil operasi
DeleteVpnAttachmentuntuk langsung menghapus koneksi IPsec-VPN.
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 koneksi IPsec-VPN. Anda dapat memanggil operasi DescribeRegions untuk mengkueri 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 Anda harus memastikan bahwa token tersebut unik di antara permintaan yang berbeda. Nilai ClientToken hanya dapat 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 tanggapan. |
||
| 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 |
Apakah tugas saat ini berhasil dijalankan.
|
true |
| Message |
string |
Paket 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. | The service is being configured. Please try again later. |
| 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. | The current VCO status does not support operations such as modification and deletion. |
| 400 | CrossAccountAuthorizedVco.NotAllowDelete | Current vpn connection is cross account authorized to cen, should delete cross account authorization first. | The current VPN connection instance is authorized across accounts to a CEN of another account. You must first revoke the cross-account authorization before deletion. |
| 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.