All Products
Search
Document Center

Cloud Firewall:DescribeTrFirewallsV2Detail

Last Updated:Feb 06, 2026

Queries the details of a VPC firewall for a transit router.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the response. Valid values:

  • zh (default): Chinese

  • en: English

zh

FirewallId

string

No

The ID of the VPC firewall instance.

vfw-tr-a5a6b89f46764928****

Response elements

Element

Type

Description

Example

object

FirewallName

string

The name of the VPC firewall instance.

cloudfirewall-manual

RequestId

string

The ID of the request.

7E53A7FB-3EB9-5E33-8E50-B8F417D1E02B

FirewallId

string

The ID of the VPC firewall instance.

vfw-tr-9c7c711abdfa4d80****

FirewallStatus

string

The status of the firewall. Valid values:

  • Creating: The firewall is being created.

  • Deleting: The firewall is being deleted.

  • Ready: The firewall is ready.

Ready

CenId

string

The ID of the Cloud Enterprise Network (CEN) instance.

cen-37nddhri7jf0d2****

TransitRouterId

string

The ID of the transit router instance.

tr-wz9y8sgug8b1xb416****

RegionNo

string

The region ID of the transit router instance.

cn-shanghai

FirewallEniId

string

The ID of the elastic network interface (ENI) of the firewall.

eni-uf621u00nafypeex****

FirewallEniVpcId

string

The ID of the VPC to which the ENI of the firewall belongs.

vpc-2zeppcci782zeh2bk****

FirewallEniVswitchId

string

The ID of the vSwitch to which the ENI of the firewall belongs.

vsw-uf6ptq1kl1c1d9pw9****

FirewallDescription

string

The description of the firewall.

VPC边界防火墙

RouteMode

string

The routing mode. Valid values:

  • managed: automatic mode

  • manual: manual mode

managed

FirewallSwitchStatus

string

The status of the VPC firewall. Valid values:

  • opened: The firewall is enabled.

  • closed: The firewall is disabled.

  • notconfigured: The firewall is not configured.

  • configured: The firewall is configured.

  • creating: The firewall is being created.

  • opening: The firewall is being enabled.

  • deleting: The firewall is being deleted.

Note

If you do not specify this parameter, VPC firewalls in all states are queried.

opened

FirewallVpcCidr

string

The CIDR block of the VPC that is automatically created for the firewall in automatic mode.

10.0.0.0/16

FirewallSubnetCidr

string

The CIDR block of the vSwitch that is automatically created in the firewall VPC to host the ENI of the firewall in automatic mode.

10.0.1.0/24

TrAttachmentMasterCidr

string

The primary CIDR block of the vSwitch that is automatically created in the firewall VPC to connect to the transit router in automatic mode.

10.0.2.0/24

TrAttachmentSlaveZone

string

The secondary zone of the vSwitch that is automatically created in the firewall VPC to connect to the transit router in automatic mode.

cn-hangzhou-i

TrAttachmentSlaveCidr

string

The secondary CIDR block of the vSwitch that is automatically created in the firewall VPC to connect to the transit router in automatic mode.

10.0.3.0/24

TrAttachmentMasterZone

string

The primary zone of the vSwitch that is automatically created in the firewall VPC to connect to the transit router in automatic mode.

cn-hangzhou-h

TrAttachmentId

string

The ID of the transit router attachment.

tr-attach-r1llaxxeha71jsm36v

Examples

Success response

JSON format

{
  "FirewallName": "cloudfirewall-manual",
  "RequestId": "7E53A7FB-3EB9-5E33-8E50-B8F417D1E02B",
  "FirewallId": "vfw-tr-9c7c711abdfa4d80****",
  "FirewallStatus": "Ready",
  "CenId": "cen-37nddhri7jf0d2****",
  "TransitRouterId": "tr-wz9y8sgug8b1xb416****",
  "RegionNo": "cn-shanghai",
  "FirewallEniId": "eni-uf621u00nafypeex****",
  "FirewallEniVpcId": "vpc-2zeppcci782zeh2bk****",
  "FirewallEniVswitchId": "vsw-uf6ptq1kl1c1d9pw9****",
  "FirewallDescription": "VPC边界防火墙",
  "RouteMode": "managed",
  "FirewallSwitchStatus": "opened",
  "FirewallVpcCidr": "10.0.0.0/16",
  "FirewallSubnetCidr": "10.0.1.0/24",
  "TrAttachmentMasterCidr": "10.0.2.0/24",
  "TrAttachmentSlaveZone": "cn-hangzhou-i",
  "TrAttachmentSlaveCidr": "10.0.3.0/24",
  "TrAttachmentMasterZone": "cn-hangzhou-h",
  "TrAttachmentId": "tr-attach-r1llaxxeha71jsm36v"
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorTrFirewallNotExist Cen TR firewall not exist
400 ErrorAliUid Aliuid invalid. The aliuid is invalid.
400 ErrorParameters Error Parameters The parameter is invalid.
400 ErrorDBTxError A database transaction error occurred. The error message returned because an internal error has occurred in the database transaction.
400 ErrorAuthentication authentication error The authentication failed.
400 ErrorDBSelectError A database select error occurred. The error message returned because an internal error has occurred in querying the database.
400 ErrorDBNoRow No rows in database. No data found.
400 ErrorMarshalJSON internal error. Internal error.
400 ErrorUnMarshalJSON internal error. Internal Error

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.