全部產品
Search
文件中心

Cloud Firewall:CreateTrFirewallV2RoutePolicy

更新時間:Jun 18, 2026

建立 TR 防火牆路由規則。

調試

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

調試

授權資訊

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

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

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

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

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

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

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

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

操作

存取層級

資源類型

條件關鍵字

關聯操作

yundun-cloudfirewall:CreateTrFirewallV2RoutePolicy

create

*全部资源

*

請求參數

名稱

類型

必填

描述

樣本值

Lang

string

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

  • zh(預設):中文

  • en:英文。

zh

PolicyType

string

VPC 邊界防火牆雲端企業網企業版引流場景類型。取值:

  • fullmesh:多點間互聯

  • one_to_one:點到點

  • end_to_end:點到多點。

fullmesh

PolicyName

string

引流名稱。

Singapore Point to Multipoint

PolicyDescription

string

引流描述。

Singapore Point to Multipoint

FirewallId

string

VPC 邊界防火牆執行個體 ID。

vfw-tr-f8ce36689b224f77****

SrcCandidateList

array<object>

主引流執行個體列表。

object

引流執行個體。

CandidateId

string

引流執行個體的 ID。

vpc-2ze9epancaw8t4sha****

CandidateType

string

引流執行個體類型。

VPC

DestCandidateList

array<object>

子引流執行個體列表。

object

子引流執行個體。

CandidateId

string

引流執行個體的 ID。

vpc-2ze9epancaw8t4sha****

CandidateType

string

引流執行個體類型。

VPC

返回參數

名稱

類型

描述

樣本值

object

TrFirewallRoutePolicyId

string

防火牆路由策略 ID。

policy-8ebed27e13e14ce2****

RequestId

string

返回結果的請求 ID。

C91D68BA-A0BE-51BF-A0F1-1CB5C57FE58D

樣本

正常返回樣本

JSON格式

{
  "TrFirewallRoutePolicyId": "policy-8ebed27e13e14ce2****",
  "RequestId": "C91D68BA-A0BE-51BF-A0F1-1CB5C57FE58D"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

200 ErrorDBUpdateError A database update error occurred.
400 ErrorAliUid Aliuid invalid.
400 ErrorParameters Error Parameters
400 ErrorAuthentication authentication error
400 ErrorDBNoRow No rows in database.
400 ErrorDBSelectError A database select error occurred.
400 ErrorPolicySrcAndDestConflict Policy has same destination candidate as source candidtes.
400 ErrorUserCredentials User credentials failed.
400 ErrorTrFirewallEndToEndTrToAll Parameter error, point-to-multipoint scenario, TR instance does not support configuration ALL.
400 ErrorDBInsertError A database insert error occurred.
400 ErrorCandidateNoRouteTable Please attach candidate with transit router before create routing template.
400 ErrorTrFirewallRouteMapConflict Cen TR firewall route table has route map conflict.
400 ErrorTrFirewallCenManegedRouteMapConflict Cen TR firewall route table has cen managed route map conflict.
400 ErrorCandidateHasStaticRoute Tr firewall don't support candidate which associated with transit router route table contains custom route. Please retry after deleted the route.
400 ErrorFirewallUpdating Can not modify firewall, firewall is updating. Please check if there is a routing policy updating.
400 ErrorDuplicateTrFwPolicyName Duplicate firewall policy Name.
400 ErrorCandidateAlreadyInToALlPolicy Candidate already in to aLl policy.
400 ErrorFirewallCandidateReference Firewall Candidate referrence count greater than one.
400 ErrorDBTxError A database transaction error occurred.
400 ErrorRecordLog record operation log error.
400 ErrorTrFirewallOnlyContainsEcrAndTrCandidate TR firewall cannot only contain both ECR and TR.
400 ErrorTrFirewallDoNotSupportPrefixList Cen TR firewall do not support prefix list.
400 ErrorTrFirewallEcmpRoute Cen TR ecmp next hop must add to route policy at the same time.
400 ErrorTrFirewallNotExist Cen TR firewall not exist
400 ErrorCrossRegionCloudServiceStaticRoute The CEN-TR routing table contains cross-region cloud service static routes. Please delete them and try again.
400 ErrorTrRouteTableContainsRejectRoutes There are routes conflict in transit router route table. Please resolve route conflict before create route policy.
400 ErrorCandidateHasIPv6Route Cloud Enterprise Network TR enterprise firewall don't support ipv6 route.

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

變更歷史

更多資訊,參考變更詳情