Edge Node Service (ENS) に NAT Gateway を作成します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
ens:CreateNatGateway |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Name |
string |
任意 |
NAT Gateway の名前です。名前の長さは 1~128 文字で、 |
name |
| EnsRegionId |
string |
必須 |
ENS エッジノードの ID です。 |
cn-suzhou-telecom |
| NetworkId |
string |
必須 |
ネットワークの ID です。 |
n-5qj7ykuxmjn7k96l090sp**** |
| VSwitchId |
string |
任意 |
vSwitch の ID です。 |
vsw-5savh5ngxh8sbj14bu7n**** |
| InstanceType |
string |
任意 |
NAT Gateway のインスタンスタイプです。enat.default を指定します。 |
enat.default |
| Tag |
array<object> |
任意 |
リソースに付与するタグです。 |
|
|
object |
任意 |
キーと値のペアの配列です。 |
||
| Key |
string |
任意 |
タグキーです。1 つのリソースには最大 20 個のタグを設定できます。
|
team |
| Value |
string |
任意 |
タグ値です。タグ値は空文字列でも構いませんが、最大 128 文字までです。また、 |
Deep |
| InstanceBillingCycle |
string |
任意 |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
応答オブジェクトです。 |
||
| RequestId |
string |
リクエスト ID です。 |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| NatGatewayId |
string |
NAT Gateway の ID です。 |
nat-5t7nh1cfm6kxiszlttr38**** |
例
成功レスポンス
JSONJSON
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"NatGatewayId": "nat-5t7nh1cfm6kxiszlttr38****"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | InvalidParameter.RegionNotSupported | The specified EnsRegion does not support this operation. | |
| 400 | InvalidParameter.VSwitchNotFound | The specified VSwitch is not found. | |
| 400 | InvalidParameter.VSwitchNotBelongToNetwork | The specified VSwitch is not bound to the Network | |
| 400 | InvalidParameter.NetworkNotFound | The specified Network is not found. | |
| 400 | InvalidParameter.NetworkNotSupported | The specified Network does not support this operation. | |
| 400 | QuotaExceed.NatGateway | The maximum number of natGateway is reached. | |
| 400 | SaleControl.VerificationFailed | You did not pass the salecontrol verification.Please contact the product. | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。