全部產品
Search
文件中心

Cloud Firewall:CreateSecurityProxy

更新時間:Jun 26, 2026

建立 NAT 防火牆。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

下表是API對應的授權資訊,可以在RAM權限原則語句的Action元素中使用,用來給RAM使用者或RAM角色授予調用此API的許可權。具體說明如下:

  • 操作:是指具體的許可權點。

  • 存取層級:是指每個操作的存取層級,取值為寫入(Write)、讀取(Read)或列出(List)。

  • 資源類型:是指操作中支援授權的資源類型。具體說明如下:

    • 對於必選的資源類型,用前面加 * 表示。

    • 對於不支援資源級授權的操作,用全部資源表示。

  • 條件關鍵字:是指雲產品自身定義的條件關鍵字。

  • 關聯操作:是指成功執行操作所需要的其他許可權。操作者必須同時具備關聯操作的許可權,操作才能成功。

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-cloudfirewall:CreateSecurityProxy

get

*All Resource

*

請求參數

名稱

類型

必填

描述

樣本值

Lang

string

接收訊息的語言類型。取值:

  • zh(預設):中文

  • en:英文。

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:自動模式

  • false:手動模式。

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

安全防護開關。取值:

  • open:開啟

  • close:關閉。

close

StrictMode

integer

是否啟用嚴格模式。

  • 1:啟用嚴格模式

  • 0:停用嚴格模式。

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.

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情