DescribeTrFirewallsV2Detail

Updated at:

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

Operation description

Queries the details of a virtual private cloud (VPC) firewall for an Enterprise Edition transit router. You can obtain the FirewallId by calling DescribeTrFirewallsV2List. If the firewall is not created, you must first create an Enterprise Edition transit router in Cloud Enterprise Network (CEN) and then call CreateTrFirewallV2 to create the firewall and obtain the FirewallId.

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

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

yundun-cloudfirewall:DescribeTrFirewallsV2Detail

get

*VpcCenTrFirewall

acs:cloudfirewall::{#accountId}:vpccentrfirewall/{#FirewallId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the response message. Valid values:

  • zh (default): Chinese

  • en: English

zh

FirewallId

string

No

The ID of the VPC firewall instance. This parameter is required. If this parameter is not specified, the ErrorMissingFirewallId (-360444, firewall id is required) error is returned.

Note

You can call DescribeTrFirewallsV2List to query existing FirewallIds (in the format of vfw-tr-*). If the firewall is not created, you must first create an Enterprise Edition transit router in CEN and then call CreateTrFirewallV2.

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 where the ENI of the firewall resides.

vpc-2zeppcci782zeh2bk****

FirewallEniVswitchId

string

The ID of the vSwitch where the ENI of the firewall resides.

vsw-uf6ptq1kl1c1d9pw9****

FirewallDescription

string

The description of the firewall.

vpc-firewall-description

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: enabled

  • closed: disabled

  • notconfigured: The VPC firewall is not configured.

  • configured: The VPC firewall is configured.

  • creating: The VPC firewall is being created.

  • opening: The VPC firewall is being enabled.

  • deleting: The VPC firewall is being deleted.

Note

If this parameter is not specified, VPC firewalls in all states are queried.

opened

FirewallVpcCidr

string

The VPC CIDR block of the firewall in automatic mode.

10.0.0.0/16

FirewallSubnetCidr

string

The subnet CIDR block that stores the firewall ENI in the firewall VPC in automatic mode.

10.0.1.0/24

TrAttachmentMasterCidr deprecated

string

The primary subnet CIDR block used to connect to the transit router in the firewall VPC in automatic mode.

10.0.2.0/24

TrAttachmentSlaveZone deprecated

string

The secondary zone of the subnet used to connect to the transit router in the firewall VPC in automatic mode.

cn-hangzhou-i

TrAttachmentSlaveCidr deprecated

string

The secondary subnet CIDR block used to connect to the transit router in the firewall VPC in automatic mode.

10.0.3.0/24

TrAttachmentMasterZone deprecated

string

The primary zone of the subnet used to connect to the transit router in the firewall VPC in automatic mode.

cn-hangzhou-h

TrAttachmentId

string

The ID of the transit router attachment in the firewall VPC in automatic mode.

tr-attach-r1llaxxeha71jsm36v

TrAttachmentZones

array<object>

The list of zones and vSwitch CIDR blocks for the transit router attachment.

object

VSwitchCidr

string

The CIDR block of the vSwitch for the transit router attachment.

10.0.2.0/24

VSwitchZoneId

string

The zone ID of the vSwitch for the transit router attachment.

cn-hangzhou-h

FirewallAttachmentZone

string

The ID of the zone used for the firewall attachment.

cn-hangzhou-h

FirewallServiceMode

string

The deployment mode of the transit router firewall service. Valid values: PrimaryStandby (primary/secondary mode) and MultiPrimary (active-active mode).

PrimaryStandby

FirewallServiceZones

array

The list of zone IDs used by the transit router firewall service.

string

A zone ID used by the transit router firewall service.

cn-hangzhou-i

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-firewall-description",
  "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",
  "TrAttachmentZones": [
    {
      "VSwitchCidr": "10.0.2.0/24",
      "VSwitchZoneId": "cn-hangzhou-h"
    }
  ],
  "FirewallAttachmentZone": "cn-hangzhou-h",
  "FirewallServiceMode": "PrimaryStandby",
  "FirewallServiceZones": [
    "cn-hangzhou-i"
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorTrFirewallNotExist Cen TR firewall not exist 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
400 MissingParameter.FirewallId The required parameter 'FirewallId' is missing.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.