NAT IP アドレスを削除します。
操作説明
DeleteNatIp は非同期操作です。リクエストを送信すると、システムはリクエスト ID を返しますが、NAT IP アドレスはまだ削除されていません。削除タスクはバックグラウンドで実行を続けます。 ListNatIps を呼び出して、NAT IP アドレスの削除ステータスをクエリできます:
-
NAT IP アドレスが Deleting 状態の場合、NAT IP アドレスは削除中です。この状態では、クエリ操作のみを実行できます。
-
NAT IP アドレスが見つからない場合、NAT IP アドレスは削除されています。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:DeleteNatIp |
delete |
*NatGateway
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
NAT IP アドレスが属する NAT ゲートウェイのリージョン ID。 DescribeRegions を呼び出して、リージョン ID をクエリできます。 |
cn-qingdao |
| NatIpId |
string |
任意 |
削除する NAT IP アドレスのインスタンス ID。 |
vpcnatip-gw8y7q3cpk3fggs87**** |
| NatGatewayId |
string |
任意 |
IP プレフィックスが属する NAT ゲートウェイのインスタンス ID。このパラメーターは、IP プレフィックスを削除する場合に必須です。 |
ngw-gw8v16wgvtq26vh59**** |
| Ipv4Prefix |
string |
任意 |
削除する IP プレフィックス。 |
192.168.0.0/28 |
| DryRun |
boolean |
任意 |
ドライランを実行するかどうかを指定します。有効な値:
|
false |
| ClientToken |
string |
任意 |
リクエストのべき等性を確保するために使用されるクライアントトークン。 クライアントを使用してトークンを生成できますが、異なるリクエスト間でトークンが一意であることを確認する必要があります。ClientToken の値には ASCII 文字のみを含めることができます。 説明
このパラメーターを指定しない場合、システムは API リクエストの RequestId を ClientToken として使用します。RequestId は API リクエストごとに異なる場合があります。 |
5A2CFF0E-5718-45B5-9D4D-70B3FF3898 |
| RegionId |
string |
必須 |
NAT IP アドレスが属する NAT ゲートウェイのリージョン ID。 DescribeRegions を呼び出して、リージョン ID をクエリできます。 |
cn-qingdao |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| RequestId |
string |
リクエスト ID。 |
E9AD97A0-5338-43F8-8A80-5E274CCBA11B |
例
成功レスポンス
JSONJSON
{
"RequestId": "E9AD97A0-5338-43F8-8A80-5E274CCBA11B"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。