All Products
Search
Document Center

Cloud Firewall:DescribeVpcFirewallCenList

Last Updated:Apr 24, 2024

Queries virtual private cloud (VPC) firewalls. Each VPC firewall protects mutual access traffic between a specified VPC and a network instance that is attached to a Cloud Enterprise Network (CEN) instance.

Operation description

You can call the DescribeVpcFirewallCenList operation to query VPC firewalls. A VPC firewall protects mutual access traffic between a specified VPC and a network instance that is attached to a CEN instance. The network instance can be a VPC, a virtual border router (VBR), or a Cloud Connect Network (CCN) instance.

Limits

You can call this operation up to 10 times per second per account. If the number of the calls per second exceeds the limit, throttling is triggered. As a result, your business may be affected. We recommend that you take note of the limit when you call this operation.

Debugging

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

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • The required resource types are displayed in bold characters.
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
yundun-cloudfirewall:DescribeVpcFirewallCenListRead
  • All Resources
    *
    none
none

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 VPC.

Note For more information about the regions, see Supported regions.
cn-hangzhou
NetworkInstanceIdstringNo

The ID of the network instance.

vpc-8vbwbo90rq0anm6t****
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 configured.
  • configured: The VPC firewall is configured but is not enabled.
Note If you do not specify this parameter, VPC firewalls in all states are queried.
opened
VpcFirewallIdstringNo

The instance ID of the VPC firewall.

vfw-m5e7dbc4y****
VpcFirewallNamestringNo

The instance name of the VPC firewall.

Test firewall
CenIdstringNo

The ID of the CEN instance.

cen-x5jayxou71ad73****
CurrentPagestringNo

The number of the page to return.

Pages start from page 1. Default value: 1.

1
PageSizestringNo

The number of entries to return on each page.

Default value: 10. Maximum value: 50.

10
RouteModestringNo

The routing mode of the VPC firewall. Valid values:

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

The UID of the member that is managed by your Alibaba Cloud account. The member is also an Alibaba Cloud account.

258039427902****
TransitRouterTypestringNo

The type of the transit router. Valid values:

  • Basic: Basic Edition transit router
  • Enterprise: Enterprise Edition transit router
Basic

Response parameters

ParameterTypeDescriptionExample
object
TotalCountinteger

The total number of VPC firewalls.

10
RequestIdstring

The ID of the request.

850A84D6-0DE4-4797-A1E8-00090125k8g2
VpcFirewallsobject []

An array that consists of the details about the VPC firewall.

ConnectTypestring

The connection type of the VPC firewall. The value is fixed as cen, which indicates a CEN instance.

cen
VpcFirewallIdstring

The instance ID of the VPC firewall.

vfw-m5e7dbc4y****
RegionStatusstring

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

  • enable: yes
  • disable: no
enable
CenIdstring

The ID of the CEN instance.

cen-x5jayxou71ad73****
VpcFirewallNamestring

The instance name of the VPC firewall.

Test firewall
ResultCodestring

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

  • Unauthorized: Cloud Firewall is not authorized to access the VPC for which the VPC firewall is created, and the VPC firewall cannot be created.
  • RegionDisable: VPC Firewall is not supported in the region of the VPC for which the VPC firewall is created, and the VPC firewall cannot be created.
  • OpsDisable: You are not allowed to create the VPC firewall.
  • VbrNotSupport: The VPC firewall cannot be created for a VBR that is attached to the CEN instance.
  • Empty string: You can create a VPC firewall for the network instance.
Unauthorized
CenNamestring

The name of the CEN instance.

Test CEN instance
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 configured.
opened
LocalVpcobject

The details about the VPC.

VpcIdstring

The ID of the VPC.

vpc-8vbwbo90rq0anm6t****
TransitRouterTypestring

The edition of the CEN transit router. Valid values:

  • Basic: Basic Edition transit router
  • Enterprise: Enterprise Edition transit router
Basic
NetworkInstanceIdstring

The ID of the network instance.

vpc-2zefk9fbn8j7v585g****
RouteModestring

The routing mode of the VPC firewall. Valid values:

  • auto: automatic mode
  • manual: manual mode
auto
RegionNostring

The region ID of the VPC.

cn-hangzhou
AuthorizationStatusstring

Indicates whether the VPC is granted the required permissions. The value is fixed as authorized, which indicates that the VPC is granted the required permissions.

authorized
ManualVSwitchIdstring

The ID of the specified vSwitch when the routing mode is manual.

vsw-zeq4o875u****
OwnerIdlong

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

158039427902****
NetworkInstanceTypestring

The type of the network instance. Valid values:

  • VPC
  • VBR
  • CCN
VPC
VpcNamestring

The name of the VPC.

Test instance
SupportManualModestring

Indicates whether the manual routing mode is supported. Valid values:

  • 1: yes
  • 0: no
0
NetworkInstanceNamestring

The name of the network instance.

Test VPC
VpcCidrTableListobject []

An array that consists of the CIDR blocks of the VPC.

RouteTableIdstring

The route table ID of the VPC.

vtb-1234
RouteEntryListobject []

An array that consists of the route entries for the VPC.

NextHopInstanceIdstring

The instance ID of the next hop for the VPC.

vrt-m5eb5me6c3l5sezae****
DestinationCidrstring

The destination CIDR block of the VPC.

192.168.XX.XX/24
DefendCidrListarray

An array consisting of the CIDR blocks that are protected by the VPC firewall.

string

The CIDR block that is protected by the VPC firewall.

10.0.XX.XX/24
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
0
MemberUidstring

The UID of the member that is manged by your Alibaba Cloud account. The member is also an Alibaba Cloud account.

258039427902****
PrecheckStatusstring

Indicates whether the VPC firewall can be automatically enabled to protect VPC traffic based on route learning. Valid values:

  • passed: The VPC firewall can be automatically enabled.
  • failed: The VPC firewall cannot be automatically enabled.
  • unknown: The VPC firewall is in an unknown state.
failed

Examples

Sample success responses

JSONformat

{
  "TotalCount": 10,
  "RequestId": "850A84D6-0DE4-4797-A1E8-00090125k8g2",
  "VpcFirewalls": [
    {
      "ConnectType": "cen",
      "VpcFirewallId": "vfw-m5e7dbc4y****",
      "RegionStatus": "enable",
      "CenId": "cen-x5jayxou71ad73****",
      "VpcFirewallName": "Test firewall\n",
      "ResultCode": "Unauthorized",
      "CenName": "Test CEN instance\n",
      "FirewallSwitchStatus": "opened",
      "LocalVpc": {
        "VpcId": "vpc-8vbwbo90rq0anm6t****",
        "TransitRouterType": "Basic",
        "NetworkInstanceId": "vpc-2zefk9fbn8j7v585g****",
        "RouteMode": "auto",
        "RegionNo": "cn-hangzhou",
        "AuthorizationStatus": "authorized",
        "ManualVSwitchId": "vsw-zeq4o875u****",
        "OwnerId": 0,
        "NetworkInstanceType": "VPC",
        "VpcName": "Test instance\n",
        "SupportManualMode": "0",
        "NetworkInstanceName": "Test VPC\n",
        "VpcCidrTableList": [
          {
            "RouteTableId": "vtb-1234",
            "RouteEntryList": [
              {
                "NextHopInstanceId": "vrt-m5eb5me6c3l5sezae****",
                "DestinationCidr": "192.168.XX.XX/24"
              }
            ]
          }
        ],
        "DefendCidrList": [
          "10.0.XX.XX/24"
        ]
      },
      "IpsConfig": {
        "BasicRules": 1,
        "EnableAllPatch": 1,
        "RunMode": 0
      },
      "MemberUid": "258039427902****",
      "PrecheckStatus": "failed"
    }
  ]
}

Error codes

HTTP status codeError codeError messageDescription
400ErrorAliUidThe aliuid is invalid.The aliuid is invalid.
400ErrorDBSelectErrorA database select error occurred.The error message returned because an internal error has occurred in querying the database.
400ErrorAssetsStatusfirewall status is invalid.-
400ErrorPageNoEither page number or page size is invalid.Either page number or page size is invalid.
400ErrorInvalidMemberUidMember uid is invalidThe member is invalid.

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

Change history

Change timeSummary of changesOperation
2021-11-15Add Operationsee changesets