全部產品
Search
文件中心

Cloud Firewall:ModifyTrFirewallV2RoutePolicyScope - 修改TR防火牆路由策略範圍

更新時間:Dec 16, 2025

修改TR防火牆路由策略範圍。

介面說明

支援點到多點多點間互聯情境的修改,不支援點到點情境的修改。

調試

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

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

Lang

string

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

  • zh(預設):中文

  • en:英文

zh

TrFirewallRoutePolicyId

string

防火牆路由策略 ID。

policy-4d724d0139df48f1****

FirewallId

string

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

vfw-tr-6520de0253bc4669****

SrcCandidateList

array<object>

主引流執行個體列表。

object

主引流執行個體。

CandidateId

string

引流執行個體的 ID。

vpc-2ze9epancaw8t4sha****

CandidateType

string

引流執行個體類型。

VPC

DestCandidateList

array<object>

子引流執行個體列表。

object

子引流執行個體。

CandidateId

string

引流執行個體的 ID。

vpc-2ze9epancaw8t4uzi****

CandidateType

string

引流執行個體類型。

VPC

ShouldRecover

string

是否恢複引流配置。取值:

  • true:路由復原

  • false:路由撤銷

false

返回參數

名稱

類型

描述

樣本值

object

TrFirewallRoutePolicyId

string

防火牆路由策略 ID。

policy-4d724d0139df48f1****

RequestId

string

返回結果的請求 ID。

E7D4D635-0C70-5CEB-A609-851E94D51FBB

樣本

正常返回樣本

JSON格式

{
  "TrFirewallRoutePolicyId": "policy-4d724d0139df48f1****",
  "RequestId": "E7D4D635-0C70-5CEB-A609-851E94D51FBB"
}

錯誤碼

HTTP status code

錯誤碼

錯誤資訊

描述

200 ErrorDBUpdateError A database update error occurred. 內部錯誤:資料庫更新錯誤
400 ErrorAliUid Aliuid invalid. aliuid無效
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 ErrorDBTxError A database transaction error occurred. 內部錯誤:資料庫事務錯誤
400 ErrorTrFirewallEndToEndTrToAll Parameter error, point-to-multipoint scenario, TR instance does not support configuration ALL. 參數錯誤, 點到多點情境, TR執行個體不支援配置ALL。
400 ErrorCannotEditRoutePolicyWhenClose Can not edit route policy when policy closed. 無法在防火牆引流模板建立、刪除或關閉時更新引流模板。
400 ErrorFirewallUpdating Can not modify firewall, firewall is updating. Please check if there is a routing policy updating. 無法操作防火牆,防火牆處在更新狀態, 請檢查是否有引流模板正在建立、刪除、更新中、開啟或關閉中。
400 ErrorIllegalRoutePolicyScopeUpdate Can not update policy scope. 點對點情境無法配置更新引流模板範圍。
400 ErrorCannotEditToAllPolicy Can not modify policy scope for policy contains All type candidate. 不能編輯含有ALL類型的引流模板。
400 ErrorCandidateNoRouteTable Please attach candidate with transit router before create routing template. 請在建立引流模板前先將引流執行個體綁定到某個轉寄路由器路由表上。
400 ErrorTrFirewallRouteMapConflict Cen TR firewall route table has route map conflict. 雲企業網路由表和Cloud Firewall存在路由策略衝突。
400 ErrorUserCredentials User credentials failed. 未授權,不可訪問,請先授權防火牆許可權。
400 ErrorTrFirewallDoNotSupportPrefixList Cen TR firewall do not support prefix list. 雲企業網企業版Cloud Firewall不支援首碼列表。
400 ErrorCandidateHasStaticRoute Tr firewall don't support candidate which associated with transit router route table contains custom route. Please retry after deleted the route. 引流執行個體綁定的轉寄路由器路由表中有自訂路由,Cloud Firewall不支援此種類型引流執行個體。請刪除對應路由後重試。
400 ErrorTrRouteTableContainsRejectRoutes There are routes conflict in transit router route table.Please resolve route conflict before create route policy. 轉寄路由器路由表中存在路由衝突,請先解決路由衝突再建立防火牆引流情境。
400 ErrorTrFwVswCidrConflict Illegal tr firewall cidr configuration. Tr 防火牆配置網段不合法。
400 ErrorFirewallCandidateReference Firewall Candidate referrence count greater than one. 引流執行個體存在於多個引流情境中。
400 ErrorDBInsertError A database insert error occurred. 內部錯誤:資料庫插入錯誤
400 ErrorRecordLog record operation log error. 更新動作記錄錯誤。
400 ErrorTrFirewallOnlyContainsEcrAndTrCandidate TR firewall cannot only contain both ECR and TR. TR防火牆不能僅包含ECR和TR
400 ErrorTrFirewallPolicyNotFound TR firewall policy does not exist. TR防火牆引流情境不存在
400 ErrorTrFirewallEcmpRoute Cen TR ecmp next hop must add to route policy at the same time. 雲企業網企業版中等價路由的下一跳必須同時加入Cloud Firewall引流情境。
400 ErrorTrFirewallCenManegedRouteMapConflict Cen TR firewall route table has cen managed route map conflict. 存在優先順序為5000的老版本cen企業版路由策略,請聯絡售後更新路由策略。
400 ErrorCandidateHasIPv6Route Cloud Enterprise Network TR enterprise firewall don't support ipv6 route. 雲企業網TR企業版防火牆不支援Ipv6路由

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

變更歷史

更多資訊,參考變更詳情