すべてのプロダクト
Search
ドキュメントセンター

Cloud Firewall:CreateTrFirewallV2RoutePolicy

最終更新日:Jul 27, 2026

トランジットルーターの VPC ファイアウォールのルーティングルールを作成します。**[前提条件]** Cloud Firewall を有効化 → Cloud Enterprise Network (CEN) インスタンスを作成 → Enterprise Edition トランジットルーターを作成 → トランジットルータールートテーブルに VPC を追加 → CreateTrFirewallV2 を呼び出してトランジットルーターの VPC ファイアウォールを作成。

今すぐお試しください

この API を OpenAPI Explorer でお試しください。手作業による署名は必要ありません。呼び出しに成功すると、入力したパラメーターに基づき、資格情報が組み込まれた SDK コードが自動的に生成されます。このコードをダウンロードしてローカルで使用できます。

テスト

RAM 認証

下表に、この API を呼び出すために必要な認証情報を示します。認証情報は、RAM (Resource Access Management) ポリシーを使用して定義できます。以下で各列名について説明します。

  • アクション:特定のリソースに対して実行可能な操作。ポリシー構文ではAction要素として指定します。

  • API:アクションを具体的に実行するための API。

  • アクセスレベル:各 API に対して事前定義されているアクセスの種類。有効な値:create、list、get、update、delete。

  • リソースタイプ:アクションが作用するリソースの種類。リソースレベルでの権限をサポートするかどうかを示すことができます。ポリシーの有効性を確保するため、アクションの対象として適切なリソースを指定してください。

    • リソースレベルの権限を持つ API の場合、必要なリソースタイプはアスタリスク (*) でマークされます。ポリシーのResource要素で対応する ARN を指定してください。

    • リソースレベルの権限を持たない API の場合、「すべてのリソース」と表示され、ポリシーのResource要素でアスタリスク (*) でマークされます。

  • 条件キー:サービスによって定義された条件のキー。このキーにより、きめ細やかなアクセス制御が可能になります。この制御は、アクション単体に適用することも、特定のリソースに対するアクションに適用することもできます。Alibaba Cloud は、サービス固有の条件キーに加えて、すべての RAM 統合サービスに適用可能な一連の共通条件キーを提供しています。

  • 依存アクション:ある特定のアクションを実行するために、前提として実行が必要となる他のアクション。依存アクションの権限も RAM ユーザーまたは RAM ロールに付与する必要があります。

アクション

アクセスレベル

リソースタイプ

条件キー

依存アクション

yundun-cloudfirewall:CreateTrFirewallV2RoutePolicy

create

*すべてのリソース。

*

なし なし

リクエストパラメーター

パラメーター

必須 / 任意

説明

Lang

string

任意

応答内のコンテンツの言語。有効な値:

  • zh (デフォルト): 中国語

  • en: 英語

zh

PolicyType

string

任意

CEN Enterprise Edition トランジットルーターの仮想プライベートクラウド (VPC) ファイアウォールのトラフィックリダイレクトシナリオタイプ。有効な値:

  • fullmesh: マルチポイント相互接続

  • one_to_one: ポイントツーポイント

  • end_to_end: ポイントツーマルチポイント

説明

PolicyType は必須です。このパラメーターが指定されていない場合、ErrorParameters(400) が返されます。

fullmesh。

PolicyName

string

任意

トラフィックリダイレクトシナリオの名前。

Singapore Point to Multipoint

PolicyDescription

string

任意

トラフィックリダイレクトシナリオの説明。

Singapore Point to Multipoint

FirewallId

string

任意

仮想プライベートクラウド (VPC) ファイアウォールのインスタンス ID。

説明

FirewallId は必須です。このパラメーターが指定されていない場合、ErrorParameters(400) が返されます。DescribeTrFirewallsV2List を呼び出してインスタンス ID を取得できます。

vfw-tr-f8ce36689b224f77****

SrcCandidateList

array<object>

任意

プライマリトラフィックリダイレクトインスタンスのリスト。

説明

SrcCandidateList は必須です。このパラメーターが指定されていない場合、ErrorParameters(400) が返されます。

object

任意

トラフィックリダイレクトインスタンス。

CandidateId

string

任意

トラフィックリダイレクトインスタンスの ID。

vpc-2ze9epancaw8t4sha****

CandidateType

string

任意

トラフィックリダイレクトインスタンスのタイプ。有効な値: VPC、VBR、TR、VPN、ECR。 [_single.params.SrcCandidateList.items.CandidateType.enum.VBR ]VBR [_single.params.SrcCandidateList.items.CandidateType.enum.VPN ]VPN [_single.params.SrcCandidateList.items.CandidateType.enum.VPC ]VPC [parameters.5.schema.items.properties.CandidateType.enumValueTitles.VBR ]VBR [parameters.5.schema.items.properties.CandidateType.enumValueTitles.VPN ]VPN [parameters.5.schema.items.properties.CandidateType.enumValueTitles.VPC ]VPC

列挙値:

  • VBR :

    VBR

  • TR :

    TR

  • VPN :

    VPN

  • VPC :

    VPC

VPC。

DestCandidateList

array<object>

任意

セカンダリトラフィックリダイレクトインスタンスのリスト。

説明

DestCandidateList は必須です。このパラメーターが指定されていない場合、ErrorParameters(400) が返されます。

object

任意

セカンダリトラフィックリダイレクトインスタンス。

CandidateId

string

任意

トラフィックリダイレクトインスタンスの ID。

vpc-2ze9epancaw8t4sha****

CandidateType

string

任意

トラフィックリダイレクトインスタンスのタイプ。有効な値: VPC、VBR、TR、ALL、VPN、ECR。

VPC。

レスポンスフィールド

フィールド

説明

object

TrFirewallRoutePolicyId

string

ファイアウォールルーティングポリシーの ID。

policy-8ebed27e13e14ce2****

RequestId

string

リクエスト ID。

C91D68BA-A0BE-51BF-A0F1-1CB5C57FE58D

成功レスポンス

JSONJSON

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

エラーコード

HTTP ステータスコード

エラーコード

エラーメッセージ

説明

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 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.
400 ErrorTrFirewallEcmpRouteMiss The next hop of the equivalent route must also be added to the cloud firewall traffic redirection scenario. The missing traffic redirection instance is %s.
400 ErrorTrFirewallRouteMapMiss Route table %s contains a route map with priority %s, while route table %s does not contain a route map with priority %s.
400 ErrorTrFirewallRouteMapDifferent The RouteMap with priority %s has inconsistent configurations between the route table %s and the route table %s.

完全なリストについては、「エラーコード」をご参照ください。

変更履歴

完全なリストについては、「変更履歴」をご参照ください。