指定されたインターネット NAT ゲートウェイを削除します。
操作説明
概要
-
DeleteNatGateway は非同期操作です。リクエストを送信すると、システムはリクエスト ID を返し、バックグラウンドでタスクを実行します。タスクのステータスを確認するには、DescribeNatGateways を呼び出してください。
-
NAT ゲートウェイのステータスが Deleting の場合、NAT ゲートウェイは削除中です。この状態では NAT ゲートウェイをクエリできますが、他の操作は実行できません。
-
NAT ゲートウェイが見つからない場合は、すでに削除されています。
NAT ゲートウェイを削除すると、復元することはできません。慎重に操作してください。
-
-
指定された期間内に、DeleteNatGateway 操作を繰り返し呼び出して NAT ゲートウェイを削除することはできません。
今すぐお試しください
テスト
RAM 認証
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
NAT ゲートウェイが配置されているリージョン ID です。 最新のリージョンリストを取得するには、DescribeRegions 操作を呼び出してください。 |
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. | |
| 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. | |
| 400 | DependencyViolation.BandwidthPackages | There are BandwidthPackages on specified NatGateway not deleted. | |
| 400 | DependencyViolation.EIPS | There are Eips on specified NatGateway, please unbind it first. | |
| 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. | |
| 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. | |
| 400 | DependencyViolation.NatIp | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | IncorrectStatus.NatIp | The status of %s [%s] is incorrect. | |
| 400 | DependencyViolation.NatIpCidr | The specified resource of %s depends on %s, so the operation cannot be completed. | |
| 400 | IncorrectStatus.NatGateway | The NatGateway instance is being deleted and needs to wait until the process is complete. | |
| 400 | IncorrectStatus.RouterEntry | The status of %s [%s] is incorrect. | |
| 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. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。