Menghapus alamat IP NAT.
Deskripsi operasi
DeleteNatIp adalah operasi asinkron. Setelah Anda mengirim permintaan, sistem akan mengembalikan ID permintaan, tetapi alamat IP NAT belum dihapus. Tugas penghapusan terus berjalan di latar belakang. Anda dapat memanggil ListNatIps untuk mengkueri status penghapusan alamat IP NAT:
-
Jika alamat IP NAT berada dalam status Deleting, alamat IP NAT sedang dihapus. Dalam status ini, Anda hanya dapat melakukan operasi kueri.
-
Jika alamat IP NAT tidak dapat ditemukan, alamat IP NAT telah dihapus.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteNatIp |
delete |
*NatGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah gerbang NAT tempat alamat IP NAT berada. Anda dapat memanggil DescribeRegions untuk mengkueri ID wilayah. |
cn-qingdao |
| NatIpId |
string |
No |
ID instans alamat IP NAT yang ingin Anda hapus. |
vpcnatip-gw8y7q3cpk3fggs87**** |
| NatGatewayId |
string |
No |
ID instans gerbang NAT tempat awalan IP berada. Parameter ini wajib diisi saat Anda menghapus awalan IP. |
ngw-gw8v16wgvtq26vh59**** |
| Ipv4Prefix |
string |
No |
Awalan IP yang akan dihapus. |
192.168.0.0/28 |
| DryRun |
boolean |
No |
Apakah akan menjalankan dry run. Nilai valid:
|
false |
| 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 akan menggunakan RequestId dari permintaan API sebagai ClientToken. RequestId dapat berbeda untuk setiap permintaan API. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| RegionId |
string |
Yes |
ID wilayah gerbang NAT tempat alamat IP NAT berada. Anda dapat memanggil DescribeRegions untuk mengkueri ID wilayah. |
cn-qingdao |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
E9AD97A0-5338-43F8-8A80-5E274CCBA11B |
Contoh
Respons sukses
JSONformat
{
"RequestId": "E9AD97A0-5338-43F8-8A80-5E274CCBA11B"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | |
| 400 | OperationFailed.DefaultNatIp | The operation is failed because of default NatIP can not be deleted. | |
| 400 | DependencyViolation.NatIp | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | IncorrectStatus.NatGateway | The status of %s [%s] is incorrect. | |
| 400 | DependencyViolation.FullNatEntry | The fullnat entry depends on this nat ip,so the operation cannot be completed. | |
| 400 | IllegalParam.NatIp | The param of %s is illegal. | |
| 400 | Mismatch.Ipv4PrefixAndNatIpCidr | The %s and %s are mismatched. | |
| 400 | Mismatch.Ipv4PrefixAndCidrReservations | The %s and %s are mismatched. | |
| 400 | IllegalParam.Ipv4Prefix | The param of %s is illegal. | |
| 400 | DependencyViolation.%s | The specified resource of [%s] depends on [%s], so the operation cannot be completed. | |
| 400 | DependencyViolation.SnatEntry | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | DependencyViolation.Ipv4Prefix | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | ResourceNotFound.NatIp | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.NatGateway | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.NatIpCidr | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.%s | The specified resource of %s is not found. | |
| 404 | ResourceNotFound.Ipv4Prefix | The specified resource of %s is not found. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.