NAT ファイアウォールを作成します。
今すぐお試しください
テスト
RAM 認証
|
アクション |
アクセスレベル |
リソースタイプ |
条件キー |
依存アクション |
|
yundun-cloudfirewall:CreateSecurityProxy |
get |
*All Resource
|
なし | なし |
リクエストパラメーター
|
パラメーター |
型 |
必須 / 任意 |
説明 |
例 |
| Lang |
string |
任意 |
応答コンテンツの言語。有効な値:
|
zh |
| ProxyName |
string |
必須 |
NAT ファイアウォールの名前。名前には大文字、小文字、中国語文字、数字、アンダースコア(_)を含めることができます。名前は 4~50 文字で、アンダースコアで始めることはできません。 |
nat-firewall |
| RegionNo |
string |
必須 |
VPC のリージョン ID。 説明
Cloud Firewall がサポートするリージョンの詳細については、サポートされるリージョンを参照してください。 |
cn-hangzhou |
| VpcId |
string |
必須 |
VPC 接続インスタンスの ID。 |
vpc-uf6b5lyul0x****** |
| NatGatewayId |
string |
必須 |
NAT ゲートウェイの ID。 |
ngw-bp1okz6k7****** |
| VswitchAuto |
string |
任意 |
自動 vSwitch モードを使用するかどうかを指定します。有効な値:
|
true |
| VswitchId |
string |
任意 |
vSwitch の ID。このパラメーターは、vSwitch が手動モードの場合に必須です。 |
vsw-bp1sqg9w****** |
| NatRouteEntryList |
array<object> |
必須 |
NAT ゲートウェイで切り替えるルートのリスト。 |
|
|
object |
任意 |
セキュリティ保護の送信先アドレスのリスト。 |
||
| NextHopId |
string |
必須 |
元の NAT ゲートウェイのネクストホップアドレス。 |
ngw-bp1okz6****** |
| DestinationCidr |
string |
必須 |
デフォルトルートの送信先 CIDR ブロック。 |
0.0.0.0/0 |
| NextHopType |
string |
必須 |
ネクストホップのネットワークタイプ。有効な値: NatGateway。 |
NatGateway |
| RouteTableId |
string |
必須 |
NAT ゲートウェイのデフォルトルートを含むルートテーブル。 |
vtb-2ze1****** |
| FirewallSwitch |
string |
任意 |
セキュリティ保護スイッチ。有効な値:
|
close |
| StrictMode |
integer |
任意 |
Strict モードを有効にするかどうかを指定します。
|
0 |
| VswitchCidr |
string |
任意 |
vSwitch の CIDR ブロック。このパラメーターは、vSwitch が自動モードの場合に必須です。 |
0.0.0.0/0 |
| FwVswitchZoneId |
string |
任意 |
ファイアウォール vSwitch のゾーン。 |
cn-beijing-b |
レスポンスフィールド
|
フィールド |
型 |
説明 |
例 |
|
object |
|||
| ProxyId |
string |
NAT ファイアウォールの ID。 |
proxy-nat97a****** |
| RequestId |
string |
リクエスト ID。 |
15FCCC52-1E23-57AE-B5EF-3E00A3****** |
例
成功レスポンス
JSONJSON
{
"ProxyId": "proxy-nat97a******",
"RequestId": "15FCCC52-1E23-57AE-B5EF-3E00A3******"
}
エラーコード
|
HTTP ステータスコード |
エラーコード |
エラーメッセージ |
説明 |
|---|---|---|---|
| 400 | ErrorAliUid | Aliuid invalid. | |
| 400 | ErrorParamProxyNameError | proxy name invalid. | |
| 400 | ErrorRegionNoError | Region is error, please reselect | |
| 400 | ErrorVpcIdError | Vpc ID invalid. | |
| 400 | ErrorDnatNotSupport | Secure proxy does not support DNAT entries. | |
| 400 | ErrorProxySnatIpEmpty | SNAT entry is empty. | |
| 400 | ErrorSnatIpQuotaExceed | The number of SNAT IP exceeds the specification. | |
| 400 | ErrorDBSelectError | A database select error occurred. | |
| 400 | ErrorDefaultRouteConflicts | Default route conflicts. | |
| 400 | ErrorUserCredentials | User credentials failed. | |
| 400 | ErrorVpcOpenApi | vpc open api failed | |
| 400 | ErrorVswitchNotFound | vswitch not found | |
| 400 | ErrorProxyRouteEntryConflicts | Proxy custom route table Nat Gateway and Attachment route entry conflict. | |
| 400 | ErrorVswitchNoAvailableCidr | No available CIDR to create a vswitch. | |
| 400 | ErrorCidrFormat | Network segment CIDR format error, please select again | |
| 400 | ErrorInternal | internal error | |
| 400 | ErrorVswitchCidrNotInVpc | Vswitch CIDR address not in vpc. | |
| 400 | ErrorVswitchRouteConflict | vswitch route conflict. | |
| 400 | ErrorVswitchCidrIpNumNotEnough | No enough private proxy IP in vswitch cidr. | |
| 400 | ErrorRouteEntryNotFound | route entry not found. | |
| 400 | ErrorUserNotFound | User not found | |
| 400 | ErrorProxyVpcNotSupportAdvFeature | This vpc advanced feature is not supported. | |
| 400 | ErrorDBInsertError | A database insert error occurred. | |
| 400 | ErrorProxyNumQuotaTop | Proxy num reaches maximum. | |
| 400 | ErrorProxyClusterNotAvailable | Can not find available cluster for nat firewall. | |
| 400 | ErrorDBTxError | A database transaction error occurred. | |
| 400 | ErrorRecordLog | record operation log error. | |
| 400 | ErrorBandwidthPenalty | Cloud Firewall bandwidth is being overused. | |
| 400 | ErrorGeneralInstanceSpecFull | Cloud Firewall instance specifications are full. | |
| 400 | ErrorNatVpnRouteEntryQuotaLimit | The number of VPN routes has reached the quota. | |
| 400 | ErrorVpcRouteTableQuotaLimit | The number of VPC routing tables has reached the specification limit. | |
| 400 | ErrorNatCustomRouteEntryDifferent | The custom route entries in the routing tables are inconsistent. | |
| 400 | ErrorSnatEntryQuotaExceed | SNAT entry quota exceeded. |
完全なリストについては、「エラーコード」をご参照ください。
変更履歴
完全なリストについては、「変更履歴」をご参照ください。