建立 NAT 防火牆。
調試
您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。
調試
授權資訊
|
操作 |
存取層級 |
資源類型 |
條件關鍵字 |
關聯操作 |
|
yundun-cloudfirewall:CreateSecurityProxy |
get |
*All Resource
|
無 | 無 |
請求參數
|
名稱 |
類型 |
必填 |
描述 |
樣本值 |
| Lang |
string |
否 |
接收訊息的語言類型。取值:
|
zh |
| ProxyName |
string |
是 |
NAT 防火牆名稱。支援大小寫英文字母、中文、數字、底線(_)、長度為 4~50 個字元,且不能以底線開頭。 |
nat-firewall |
| RegionNo |
string |
是 |
VPC 所在的地域 ID。 說明
關於雲端防火牆支援地域的詳細資訊,請參見支援的地域。 |
cn-hangzhou |
| VpcId |
string |
是 |
VPC 執行個體 ID。 |
vpc-uf6b5lyul0x****** |
| NatGatewayId |
string |
是 |
NAT 閘道的 ID。 |
ngw-bp1okz6k7****** |
| VswitchAuto |
string |
否 |
是否使用交換機自動模式。取值:
|
true |
| VswitchId |
string |
否 |
交換機 ID。交換機手動模式時必填。 |
vsw-bp1sqg9w****** |
| NatRouteEntryList |
array<object> |
是 |
NAT 閘道待切換路由列表。 |
|
|
object |
否 |
安全防護目的位址列表。 |
||
| NextHopId |
string |
是 |
原 NAT 閘道下一跳轉位址。 |
ngw-bp1okz6****** |
| DestinationCidr |
string |
是 |
預設路由目的網段。 |
0.0.0.0/0 |
| NextHopType |
string |
是 |
下一跳的網路類型。取值:NatGateway。 |
NatGateway |
| RouteTableId |
string |
是 |
NAT 閘道預設路由所在路由表。 |
vtb-2ze1****** |
| FirewallSwitch |
string |
否 |
安全防護開關。取值:
|
close |
| StrictMode |
integer |
否 |
是否啟用嚴格模式。
|
0 |
| VswitchCidr |
string |
否 |
虛擬交換機的網段。交換機自動模式時必填。 |
0.0.0.0/0 |
| FwVswitchZoneId |
string |
否 |
防火牆交換機可用區。 |
cn-beijing-b |
返回參數
|
名稱 |
類型 |
描述 |
樣本值 |
|
object |
|||
| ProxyId |
string |
NAT 防火牆 ID。 |
proxy-nat97a****** |
| RequestId |
string |
回傳結果的請求 ID。 |
15FCCC52-1E23-57AE-B5EF-3E00A3****** |
樣本
正常返回樣本
JSON格式
{
"ProxyId": "proxy-nat97a******",
"RequestId": "15FCCC52-1E23-57AE-B5EF-3E00A3******"
}
錯誤碼
|
HTTP status code |
錯誤碼 |
錯誤資訊 |
描述 |
|---|---|---|---|
| 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. |
訪問錯誤中心查看更多錯誤碼。
變更歷史
更多資訊,參考變更詳情。