CreateNatGateway
この API は廃止されました。一時的にアクセス可能ですが、更新やバグ修正対応は一切行われません。代わりに Vpc(2016-04-28) - CreateNatGateway への移行を推奨します。より強化された機能に加え、サポートも引き続きご利用いただけます。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
vpc:CreateNatGateway |
create |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| RegionId |
string |
必須 |
|
|
| VpcId |
string |
必須 |
|
|
| Name |
string |
任意 |
名前の長さは 2~128 文字である必要があります。先頭は英字または漢字である必要がありますが、 |
|
| Description |
string |
任意 |
説明の長さは 2~256 文字である必要があります。先頭は英字または漢字である必要がありますが、 |
|
| ClientToken |
string |
任意 |
このトークンはクライアントが生成し、リクエストごとに一意である必要があります。トークンには ASCII 文字のみを含めることができ、長さが 64 文字を超えることはできません。 |
|
| BandwidthPackage |
array<object> |
必須 |
|
|
|
object |
任意 |
|
||
| Bandwidth |
integer |
任意 |
|
|
| Zone |
string |
任意 |
|
|
| IpCount |
integer |
任意 |
|
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|
||
| NatGatewayId |
string |
|
|
| RequestId |
string |
|
|
| ForwardTableIds |
object |
|
|
| ForwardTableId |
array |
|
|
|
string |
|
||
| BandwidthPackageIds |
object |
|
|
| BandwidthPackageId |
array |
|
|
|
string |
|
例
成功レスポンス
JSONJSON
{
"NatGatewayId": "",
"RequestId": "",
"ForwardTableIds": {
"ForwardTableId": [
""
]
},
"BandwidthPackageIds": {
"BandwidthPackageId": [
""
]
}
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | InvalidVPCStatus | vpc incorrect status. | |
| 400 | InvalidNatGatewayName.MalFormed | NatGateway name is not valid. | |
| 400 | InvalidNatGatewayDescription.MalFormed | NatGateway description is not valid. | |
| 400 | MissingParameter.BandwidthPackage | only support one BandwidthPackage be created with NatGateway. | |
| 400 | OperationDenied | The user cannot allow to create natgw, please call PD to authorize | |
| 400 | RouterEntryConflict.Duplicated | A route entry already exists, which CIDR is '0.0.0.0/0' | |
| 400 | MissingParameter | Miss mandatory parameter. | |
| 400 | QuotaExceeded.BandwidthPackageIps | The specified ipCount exceeded quota. | |
| 400 | AllocateIpFailed | Alloc bandwidthPackage ips failed, maybe no available ip. | |
| 400 | ParameterIllegal | ipCount,bandwidth parameter invalid | |
| 400 | ZONE_NO_AVAILABLE_IP | The Zone have no available ip. | |
| 400 | InvalidNatGatewayId.NotFound | The NatGatewayId not exist. | |
| 400 | InvalidParameter.Spec.ValueNotSupported | The specified Spec is not valid. | |
| 400 | COMMODITY.INVALID_COMPONENT | The instance component is invalid. | |
| 400 | OperationUnsupported.MultiNatGateway | More than one natGateway per vpc is unsupported. | |
| 400 | VswitchStatusError | The VSwitch is creating . | |
| 400 | Forbidden.CheckEntryRuleQuota | Route entry quota rule check error. | |
| 400 | OperationFailed.UnpaidBillsExist | The account has unpaid bills. Please pay your overdue bill first. | |
| 400 | IncorrectStatus.RouteEntry | Specified routeEntry status error. | |
| 400 | IncorrectStatus.RouteTableStatus | %s | |
| 400 | TaskConflict | The operation is too frequent, please wait a moment and try again. | |
| 400 | OperationFailed.TokenVerfiy | Token verify failed. | |
| 400 | IllegalParam.Name | The specified Name is invalid, shorter than 2 characters. | |
| 500 | OrderError.NatGateway | The Account failed to create order. | |
| 404 | InvalidRegionId.NotFound | The specified RegionId does not exist in our records. | |
| 404 | InvalidVpcId.NotFound | Specified value of VpcId is not found in our record. | |
| 404 | InvalidZoneId.NotFound | Specified value of ZoneId is not exists. | |
| 404 | VPC_ONLY_CAN_CREATE_ONE_NAT_GATEWAY | NatGateway in one vpc support only one. | |
| 404 | OperationFailed.CrateEntryTimeOut | Operation failed because create custom routeEntry timeout. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。