All Products
Search
Document Center

Cloud Firewall:DescribeTrFirewallsV2List

Last Updated:Sep 02, 2024

Queries the virtual private cloud (VPC) firewalls that are created for transit routers.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer.

Authorization information

There is currently no authorization information disclosed in the API.

Request parameters

ParameterTypeRequiredDescriptionExample
LangstringNo

The language of the content within the response. Valid values:

  • zh: Chinese (default)
  • en: English
zh
RegionNostringNo

The region ID of the transit router.

cn-hangzhou
FirewallSwitchStatusstringNo

The status of the VPC firewall. Valid values:

  • opened: The VPC firewall is enabled.
  • closed: The VPC firewall is disabled.
  • notconfigured: The VPC firewall is not created.
  • configured: The VPC firewall is created but is not enabled.
  • creating: The VPC firewall is being created.
  • opening: The VPC firewall is being enabled.
  • deleting: The VPC firewall is being deleted.
Note If you do not specify this parameter, VPC firewalls in all states are queried.
opened
CurrentPageintegerNo

The page number. Default value: 1.

1
PageSizeintegerNo

The number of entries per page. Default value: 10.

10
FirewallIdstringNo

The instance ID of the VPC firewall.

vfw-tr-f1799baa9e254651****
FirewallNamestringNo

The name of the VPC firewall.

test
RouteModestringNo

The routing mode of the VPC firewall. Valid values:

  • managed: automatic mode
  • manual: manual mode
Note If you do not specify this parameter, VPC firewalls in all routing modes are queried.
managed
CenIdstringNo

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

cen-rig0t5zi96crkl****
TransitRouterIdstringNo

The ID of the transit router.

tr-uf6egtvyaedvt20xl****

Response parameters

ParameterTypeDescriptionExample
object
TotalCountstring

The total number of entries returned.

6
RequestIdstring

The request ID.

1471E2EC-F706-5F11-A79B-BD583ACB8297
VpcTrFirewallsarray<object>

The VPC firewalls.

object
VpcFirewallNamestring

The instance name of the VPC firewall.

test
FirewallSwitchStatusstring

The status of the VPC firewall. Valid values:

  • opened: The VPC firewall is enabled.
  • closed: The VPC firewall is disabled.
  • notconfigured: The VPC firewall is not created.
  • configured: The VPC firewall is created but is not enabled.
  • creating: The VPC firewall is being created.
  • opening: The VPC firewall is being enabled.
  • deleting: The VPC firewall is being deleted.
Note If you do not specify this parameter, VPC firewalls in all states are queried.
opened
CenIdstring

The ID of the CEN instance.

cen-03f8s0z052ka3v****
CenNamestring

The name of the CEN instance.

cen_swas
RouteModestring

The routing mode of the VPC firewall. Valid values:

  • managed: automatic mode
  • manual: manual mode
managed
RegionStatusstring

Indicates whether you can create a VPC firewall in a specified region. Valid values:

  • enable: yes
  • disable: no
enable
ResultCodestring

The result code of the operation that creates the VPC firewall. Valid values:

  • RegionDisable: VPC Firewall is not supported in the region of the network instance. You cannot create a VPC firewall for the network instance.
  • Empty string: You can create a VPC firewall for the network instance.
RegionDisable
RegionNostring

The region ID of the transit router.

cn-hangzhou
TransitRouterIdstring

The ID of the transit router.

tr-2vcmhjs88nil55fvu****
FirewallIdstring

The instance ID of the VPC firewall.

vfw-tr-99bc4f0fc88b4d00****
IpsConfigobject

The information about the intrusion prevention system (IPS) configuration.

BasicRulesinteger

Indicates whether basic protection is enabled. Valid values:

  • 1: yes
  • 0: no
1
EnableAllPatchinteger

Indicates whether virtual patching is enabled. Valid values:

  • 1: yes
  • 0: no
1
RunModeinteger

The mode of the IPS. Valid values:

  • 1: block mode
  • 0: monitor mode
1
OwnerIdlong

The ID of the Alibaba Cloud account to which the VPC belongs.

171761785151****
PrecheckStatusstring

Indicates whether the VPC firewall can be automatically enabled. Valid values:

  • passed: yes
  • failed: no
  • unknown
passed
ProtectedResourceobject

The protected resources.

Countinteger

The number of protected resources.

1
VpcListarray

The protected VPCs.

string

The protected VPC.

["vpc-2zegxdvs5f2je81ph****"]
VbrListarray

The protected virtual border routers (VBRs).

string

The protected VBR.

[ "vbr-2zegxdvs5f2je81ph****" ]
VpnListarray

The protected VPN gateways.

string

The protected VPN gateway.

[ "vpn-2zegxdvs5f2je81ph****" ]
PeerTrListarray

The protected peer transit routers.

string

The protected peer transit router.

[ "tr-2zegxdvs5f2je81ph****" ]
UnprotectedResourceobject

The unprotected resources.

Countinteger

The number of unprotected resources.

1
VpcListarray

The unprotected VPCs.

string

The unprotected VPC.

[ "vpc-2zegxdvs5f2je81ph****" ]
VbrListarray

The unprotected VBRs.

string

The unprotected VBR.

[ "vbr-2zegxdvs5f2je81ph****" ]
VpnListarray

The unprotected VPN gateways.

string

The unprotected VPN gateway.

[ "vpn-2zegxdvs5f2je81ph****" ]
PeerTrListarray

The unprotected peer transit routers.

string

The unprotected peer transit router.

[ "tr-2zegxdvs5f2je81ph****" ]

Examples

Sample success responses

JSONformat

{
  "TotalCount": "6",
  "RequestId": "1471E2EC-F706-5F11-A79B-BD583ACB8297",
  "VpcTrFirewalls": [
    {
      "VpcFirewallName": "test",
      "FirewallSwitchStatus": "opened",
      "CenId": "cen-03f8s0z052ka3v****",
      "CenName": "cen_swas",
      "RouteMode": "managed",
      "RegionStatus": "enable",
      "ResultCode": " RegionDisable",
      "RegionNo": "cn-hangzhou",
      "TransitRouterId": "tr-2vcmhjs88nil55fvu****",
      "FirewallId": "vfw-tr-99bc4f0fc88b4d00****",
      "IpsConfig": {
        "BasicRules": 1,
        "EnableAllPatch": 1,
        "RunMode": 1
      },
      "OwnerId": 0,
      "PrecheckStatus": "passed",
      "ProtectedResource": {
        "Count": 1,
        "VpcList": [
          "[\"vpc-2zegxdvs5f2je81ph****\"]"
        ],
        "VbrList": [
          "[\n      \"vbr-2zegxdvs5f2je81ph****\"\n]"
        ],
        "VpnList": [
          "[\n      \"vpn-2zegxdvs5f2je81ph****\"\n]"
        ],
        "PeerTrList": [
          "[\n      \"tr-2zegxdvs5f2je81ph****\"\n]"
        ]
      },
      "UnprotectedResource": {
        "Count": 1,
        "VpcList": [
          "[\n      \"vpc-2zegxdvs5f2je81ph****\"\n]"
        ],
        "VbrList": [
          "[\n      \"vbr-2zegxdvs5f2je81ph****\"\n]"
        ],
        "VpnList": [
          "[\n      \"vpn-2zegxdvs5f2je81ph****\"\n]"
        ],
        "PeerTrList": [
          "[\n      \"tr-2zegxdvs5f2je81ph****\"\n]"
        ]
      }
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-08-15The response structure of the API has changedView Change Details
2023-06-13The response structure of the API has changedView Change Details