指定されたインターネット NAT ゲートウェイを削除します。
操作説明
DeleteNatGateway は非同期操作です。リクエストを送信すると、システムはリクエスト ID を返しますが、NAT ゲートウェイはすぐには削除されません。削除タスクはバックグラウンドで実行されます。 DescribeNatGateways を呼び出して、NAT ゲートウェイのステータスを照会できます。
-
NAT ゲートウェイが Deleting 状態の場合、NAT ゲートウェイは削除中です。この状態では、クエリ操作のみを実行できます。
-
NAT ゲートウェイが見つからない場合、NAT ゲートウェイは削除されています。
NAT ゲートウェイの削除は元に戻せません。慎重に操作してください。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:DeleteNatGateway |
delete |
*NatGateway。
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
NAT ゲートウェイのリージョン ID。 DescribeRegions を呼び出してリージョン ID をクエリできます。 |
cn-hangzhou |
| NatGatewayId |
string |
必須 |
削除する NAT ゲートウェイのインスタンス ID。 |
ngw-bp1uewa15k4iy5770**** |
| Force |
boolean |
任意 |
NAT ゲートウェイを強制削除するかどうかを指定します。有効な値:
|
false |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
リクエスト ID。 |
||
| RequestId |
string |
リクエスト ID。 |
0ED8D006-F706-4D23-88ED-E11ED28DCAC0 |
例
成功レスポンス
JSONJSON
{
"RequestId": "0ED8D006-F706-4D23-88ED-E11ED28DCAC0"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | DependencyViolation.VpcEndpointService | The specified resource of %s depends on %s, so the operation cannot be completed. | NAT ゲートウェイに依存するエンドポイントサービスがあります。この操作は実行できません。 |
| 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. | NAT ゲートウェイに依存するルートエントリがあるため、操作を完了できません。 |
| 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 ゲートウェイはすでに EIP に関連付けられています。まず NAT ゲートウェイから EIP の関連付けを解除してください。 |
| 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 または Ipv4Prefix が SNAT エントリに関連付けられています。削除操作を続行できません。依存する SNAT エントリを先に削除してから、もう一度お試しください。 |
| 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. | DNAT エントリインスタンスのインスタンスステータスが正しくないため、削除できません。 |
| 400 | DependencyViolation.NatIp | The specified resource of %s depends on %s, so the operation cannot be completed. | 依存する NAT IP アドレスが存在するため、操作を完了できません。 |
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | NAT IP アドレスが中間状態にあります。後でもう一度お試しください。 |
| 400 | DependencyViolation.NatIpCidr | The specified resource of %s depends on %s, so the operation cannot be completed. | NAT ゲートウェイに依存する NAT CIDR ブロックがあるため、操作を完了できません。 |
| 400 | IncorrectStatus.NatGateway | The NatGateway instance is being deleted and needs to wait until the process is complete. | 指定された NAT ゲートウェイが安定した状態ではありません。 |
| 400 | IncorrectStatus.RouterEntry | The status of %s [%s] is incorrect. | RouterEntry の現在のステータスが正しくありません。 |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。