Menghapus Gateway NAT Internet yang ditentukan.
Deskripsi operasi
DeleteNatGateway adalah operasi asinkron. Setelah mengirim permintaan, sistem akan mengembalikan ID permintaan, tetapi Gateway NAT tidak langsung dihapus. Proses penghapusan berjalan di latar belakang. Anda dapat memanggil DescribeNatGateways untuk memeriksa status Gateway NAT:
-
Jika Gateway NAT berada dalam status Deleting, artinya sedang dalam proses penghapusan. Dalam status ini, hanya operasi kueri yang dapat dilakukan.
-
Jika Gateway NAT tidak ditemukan, berarti Gateway NAT telah berhasil dihapus.
Penghapusan Gateway NAT bersifat permanen dan tidak dapat dikembalikan. Lakukan dengan hati-hati.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteNatGateway |
delete |
*NatGateway.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah dari Gateway NAT. Anda dapat memanggil DescribeRegions untuk menanyakan ID wilayah. |
cn-hangzhou |
| NatGatewayId |
string |
Yes |
ID instans Gateway NAT yang ingin Anda hapus. |
ngw-bp1uewa15k4iy5770**** |
| Force |
boolean |
No |
Menentukan apakah akan menghapus Gateway NAT secara paksa. Nilai yang valid:
|
false |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
ID permintaan. |
||
| 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.VpcEndpointService | The specified resource of %s depends on %s, so the operation cannot be completed. | Gateway NAT memiliki layanan titik akhir yang bergantung. Operasi ini tidak dapat dilakukan. |
| 400 | DependencyViolation.FullNatEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | DependencyViolation.RouterEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | Operasi tidak dapat diselesaikan karena gateway NAT memiliki entri rute yang bergantung. |
| 400 | DependencyViolation.BandwidthPackages | There are BandwidthPackages on specified NatGateway not deleted. | |
| 400 | DependencyViolation.EIPS | There are Eips on specified NatGateway, please unbind it first. | NAT gerbang tertentu sudah terasosiasi dengan elastic IP address (EIP). Lepaskan asosiasi EIP dari NAT gerbang terlebih dahulu. |
| 400 | Forbidden.PrePaidNatGateway | The specified NatGateway is PrePaid. | |
| 400 | InvalidOperation.DeletionProtection | The instance cannnot delete because of deletion protecion. | |
| 400 | DependencyViolation.SnatEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | NatIp atau Ipv4Prefix terkait dengan entri SNAT. Operasi penghapusan tidak dapat dilanjutkan. Hapus entri SNAT dependen terlebih dahulu, lalu coba lagi. |
| 400 | IncorrectStatus.SnatEntry | The status of %s [%s] is incorrect. | |
| 400 | DependencyViolation.ForwardEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | IncorrectStatus.ForwardEntry | The status of %s [%s] is incorrect. | Instans entri DNAT tidak dapat dihapus karena status instansnya tidak valid. |
| 400 | DependencyViolation.NatIp | The specified resource of %s depends on %s, so the operation cannot be completed. | Operasi tidak dapat diselesaikan karena terdapat alamat IP NAT yang bergantung. |
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | Alamat IP NAT berada dalam status antara. Coba lagi nanti. |
| 400 | DependencyViolation.NatIpCidr | The specified resource of %s depends on %s, so the operation cannot be completed. | Operasi tidak dapat diselesaikan karena gateway NAT memiliki blok CIDR NAT yang bergantung. |
| 400 | IncorrectStatus.NatGateway | The NatGateway instance is being deleted and needs to wait until the process is complete. | Gerbang NAT yang ditentukan tidak berada dalam status stabil. |
| 400 | IncorrectStatus.RouterEntry | The status of %s [%s] is incorrect. | Status RouterEntry saat ini salah. |
| 400 | IncorrectStatus.VSwitch | The specified vSwitch status is invalid. | |
| 404 | INSTANCE_NOT_EXISTS | Instance not exists. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidNatGatewayId.NotFound | The specified NatGatewayId does not exist in our records. | |
| 404 | ResourceNotFound.NatGateway | The specified resource of %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.