Menghapus gateway pelanggan tertentu.
Deskripsi operasi
Sebelum menghapus gateway pelanggan, pastikan gateway pelanggan tidak dikaitkan dengan koneksi IPsec apa pun. Untuk menghapus koneksi IPsec, lihat DeleteVpnAttachment atau DeleteVpnConnection.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteCustomerGateway |
delete |
*CustomerGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah gateway pelanggan. Anda dapat memperoleh ID wilayah dengan memanggil operasi DescribeRegions. |
cn-shanghai |
| ClientToken |
string |
No |
Token klien yang digunakan untuk memastikan idempotensi permintaan. Klien menghasilkan nilai parameter ini, yang harus unik di antara permintaan yang berbeda. Panjang maksimum adalah 64 karakter ASCII. Catatan
Jika Anda tidak menentukan parameter ini, sistem menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId mungkin berbeda untuk setiap permintaan API. |
02fb3da4-130e-11e9-8e44-0016e04**** |
| CustomerGatewayId |
string |
Yes |
ID instans gateway pelanggan. |
cgw-bp1pvpl9r9adju6l5**** |
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"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | DependencyViolation.VpnConnection | There are vpn connections on specified customer gateway not deleted. | 指定的用户网关上有 vpn 连接未删除。 |
| 400 | VpnGateway.task.conflict | The VPN is in the configuration state, please wait a while before operating. | 该VPN处于正在配置状态,请稍等一会再进行操作。 |
| 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 | InvalidCustomerGatewayInstanceId.NotFound | The specified customer gateway instance id does not exist. | 指定的用户网关实例不存在,请您检查用户网关实例ID是否正确。 |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.