Menghapus blok CIDR NAT dengan memanggil operasi DeleteNatIpCidr.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
vpc:DeleteNatIpCidr |
delete |
*NatGateway
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
ID wilayah gerbang NAT tempat blok CIDR NAT yang akan dihapus berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
eu-central-1 |
| NatIpCidr |
string |
Yes |
Blok CIDR NAT yang akan dihapus.
|
172.16.0.0/24 |
| 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 nilai ini, tetapi Anda harus memastikan bahwa nilai 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 sebagai ClientToken. RequestId dari setiap permintaan API mungkin berbeda. |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| NatGatewayId |
string |
Yes |
ID instans gerbang NAT tempat blok CIDR NAT yang akan dihapus berada. |
ngw-gw8v16wgvtq26vh59**** |
| RegionId |
string |
Yes |
ID wilayah gerbang NAT tempat blok CIDR NAT yang akan dihapus berada. Anda dapat memanggil operasi DescribeRegions untuk mengkueri ID wilayah. |
eu-central-1 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
7021BEB1-210F-48A9-AB82-BE9A9110BB89 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "7021BEB1-210F-48A9-AB82-BE9A9110BB89"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ResourceNotFound.NatIpCidr | The specified resource of %s is not found. | |
| 400 | OperationFailed.DefaultNatIpCidr | The operation is failed because of default NatIPCidr 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. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.