DescribeVpcFirewallList

Updated at:

Queries the information about virtual private cloud (VPC) border firewalls that protect traffic between two VPCs connected by Express Connect.

Operation description

This operation is generally used to perform a paging query on the information about virtual private cloud (VPC) border firewalls. The virtual private cloud (VPC) border firewalls protect traffic between two VPCs connected by Express Connect.

QPS limits

The QPS limit for a single user is 10 queries per second. If the limit is exceeded, API invocations are throttled, which may affect your services. Invoke the API operation at a reasonable frequency.

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

get

*VpcFirewall

acs:cloudfirewall::{#accountId}:vpcfirewall/{#VpcFirewallId}

None None

Request parameters

Parameter

Type

Required

Description

Example

Lang

string

No

The language of the request and response. Valid values:

  • zh (default): Chinese.

  • en: English.

zh

RegionNo

string

No

The region ID of the VPC.

Note

For more information about the regions supported by Cloud Firewall, see Supported regions.

cn-hangzhou

VpcId

string

No

The instance ID of the VPC.

vpc-8vbwbo90rq0anm6t****

FirewallSwitchStatus

string

No

The status of the virtual private cloud (VPC) border firewall. Valid values:

  • opened: Enabled.

  • closed: Disabled.

  • notconfigured: The virtual private cloud (VPC) border firewall is not configured.

  • configured: The virtual private cloud (VPC) border firewall is configured.

Note

If you do not specify the Settings for this parameter, virtual private cloud (VPC) border firewalls in all states are queried.

opened

VpcFirewallId

string

No

The instance ID of the virtual private cloud (VPC) border firewall.

vfw-m5e7dbc4y****

VpcFirewallName

string

No

The instance name of the virtual private cloud (VPC) border firewall.

test-vpc-firewall

CurrentPage

string

No

The page number Settings for a paging query.

Default value: 1, which indicates the first page.

1

PageSize

string

No

The number Settings of virtual private cloud (VPC) border firewalls per page for a paging query.

Default value: 10. Maximum value: 50.

10

MemberUid

string

No

The UID of the member accounts of the current Alibaba Cloud account.

258039427902****

ConnectSubType

string

No

The connection subtype. Valid values:

  • vpc2vpc: Express Connect.

  • vpcpeer: VPC peering connection.

vpcpeer

PeerUid

string

No

The UID of the Alibaba Cloud account to which the peer VPC belongs.

258039427902****

Response elements

Element

Type

Description

Example

object

The list of VPC firewalls.

TotalCount

integer

The total number of virtual private cloud (VPC) border firewalls.

10

RequestId

string

The ID of the request.

850A84D6-0DE4-4797-A1E8-00090125k8g2

VpcFirewalls

array<object>

The details of the virtual private cloud (VPC) border firewalls.

array<object>

The details of the virtual private cloud (VPC) border firewalls.

ConnectType

string

The interconnection type of the virtual private cloud (VPC) border firewall. Valid values: expressconnect, which indicates Express Connect.

expressconnect

VpcFirewallId

string

The instance ID of the virtual private cloud (VPC) border firewall.

vfw-m5e7dbc4y****

RegionStatus

string

The availability status of the region. Valid values:

  • enable: Available. The region supports virtual private cloud (VPC) border firewalls.

  • disable: Unavailable. The region does not support virtual private cloud (VPC) border firewalls.

enable

Bandwidth

integer

The bandwidth of the Express Connect circuit. Unit: Mbit/s.

2

VpcFirewallName

string

The instance name of the virtual private cloud (VPC) border firewall.

test-firewall

FirewallSwitchStatus

string

The switch status of the virtual private cloud (VPC) border firewall. Valid values:

  • opened: Enabled.

  • closed: Disabled.

  • notconfigured: The virtual private cloud (VPC) border firewall is not configured.

opened

LocalVpc

object

The details of the local VPC.

VpcName

string

The name of the local VPC.

test-vpc1

VpcId

string

The instance ID of the local VPC.

vpc-8vbwbo90rq0anm6t****

AuthorizationStatus

string

The authorization status of the local VPC. Valid values: authorized, which indicates that the VPC is authorized.

authorized

OwnerId

integer

The UID of the Alibaba Cloud account to which the local VPC belongs.

158039427902****

RegionNo

string

The region ID of the local VPC.

cn-hangzhou

VpcCidrTableList

array<object>

The CIDR block list of the local VPC.

array<object>

The CIDR block list of the local VPC.

RouteTableId

string

The ID of the route table of the local VPC.

vtb-1234

RouteEntryList

array<object>

The routing entry list of the local VPC.

object

The routing entry list of the local VPC.

NextHopInstanceId

string

The next hop instance ID of the local VPC.

vrt-m5eb5me6c3l5sezae****

DestinationCidr

string

The destination CIDR block of the local VPC.

192.168.XX.XX/24

PeerVpc

object

The details of the peer VPC.

VpcName

string

The name of the peer VPC.

test-vpc2

VpcId

string

The instance ID of the peer VPC.

vpc-8vbwbo90rq0anm6t****

AuthorizationStatus

string

The authorization status of the peer VPC. Valid values: authorized, which indicates that the VPC is authorized.

authorized

OwnerId

integer

The UID of the Alibaba Cloud account to which the peer VPC belongs.

158039427902****

RegionNo

string

The region ID of the peer VPC.

cn-hangzhou

VpcCidrTableList

array<object>

The CIDR block list of the peer VPC.

array<object>

The CIDR block list of the peer VPC.

RouteTableId

string

The ID of the route table of the peer VPC.

vtb-1256

RouteEntryList

array<object>

The routing entry list of the peer VPC.

object

The routing entry list of the peer VPC.

NextHopInstanceId

string

The next hop instance ID of the peer VPC.

vrt-m5eb5me6c3l5sezae****

DestinationCidr

string

The destination CIDR block of the peer VPC.

192.168.XX.XX/24

IpsConfig

object

The IPS configuration.

BasicRules

integer

The switch for Basic Policies. Valid values:

  • 1: Enabled.

  • 0: Disabled.

1

EnableAllPatch

integer

The switch for virtual patches. Valid values:

  • 1: Enabled.

  • 0: Disabled.

1

RunMode

integer

The IPS defense mode. Valid values:

  • 1: Block mode.

  • 0: Monitor mode.

0

RuleClass

integer

The IPS rules group. Valid values:

  • 1: Loose rule group.

  • 2: Medium rule group.

  • 3: Strict rule group.

1

MemberUid

string

The UID of the member accounts.

258039427902****

ResultCode

string

The operation result code when you create a VPC border firewall. Valid values:

  • Unauthorized: Indicates that a VPC without authorization exists, and you are not allowed to create a VPC border firewall.

  • RegionDisable: Indicates that the region where the VPC resides does not support VPC border firewalls, and you are not allowed to create a VPC border firewall.

  • Empty string: Indicates that you can normally create a VPC border firewall for this network instance.

Unauthorized

ConnectSubType

string

The connection subtype. Valid values:

  • vpc2vpc: Express Connect.

  • vpcpeer: VPC peering connection.

vpcpeer

AclConfig

object

The ACL engine mode.

StrictMode

integer

Specifies whether strict mode is enabled. Valid values:

  • 1: Enabled.

  • 0: Disabled.

1

Examples

Success response

JSON format

{
  "TotalCount": 10,
  "RequestId": "850A84D6-0DE4-4797-A1E8-00090125k8g2",
  "VpcFirewalls": [
    {
      "ConnectType": "expressconnect",
      "VpcFirewallId": "vfw-m5e7dbc4y****",
      "RegionStatus": "enable",
      "Bandwidth": 2,
      "VpcFirewallName": "test-firewall",
      "FirewallSwitchStatus": "opened",
      "LocalVpc": {
        "VpcName": "test-vpc1",
        "VpcId": "vpc-8vbwbo90rq0anm6t****",
        "AuthorizationStatus": "authorized",
        "OwnerId": 0,
        "RegionNo": "cn-hangzhou",
        "VpcCidrTableList": [
          {
            "RouteTableId": "vtb-1234",
            "RouteEntryList": [
              {
                "NextHopInstanceId": "vrt-m5eb5me6c3l5sezae****",
                "DestinationCidr": "192.168.XX.XX/24"
              }
            ]
          }
        ]
      },
      "PeerVpc": {
        "VpcName": "test-vpc2",
        "VpcId": "vpc-8vbwbo90rq0anm6t****",
        "AuthorizationStatus": "authorized",
        "OwnerId": 0,
        "RegionNo": "cn-hangzhou",
        "VpcCidrTableList": [
          {
            "RouteTableId": "vtb-1256",
            "RouteEntryList": [
              {
                "NextHopInstanceId": "vrt-m5eb5me6c3l5sezae****",
                "DestinationCidr": "192.168.XX.XX/24"
              }
            ]
          }
        ]
      },
      "IpsConfig": {
        "BasicRules": 1,
        "EnableAllPatch": 1,
        "RunMode": 0,
        "RuleClass": 1
      },
      "MemberUid": "258039427902****",
      "ResultCode": "Unauthorized",
      "ConnectSubType": "vpcpeer",
      "AclConfig": {
        "StrictMode": 1
      }
    }
  ]
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorDBSelectError A database select error occurred. The error message returned because an internal error has occurred in querying the database.
400 ErrorPageNo Either page number or page size is invalid. Either page number or page size is invalid.
400 ErrorUnmarshalJSON An error occurred while parsing JSON. An error occurred while decoding JSON.
400 ErrorAliUid Aliuid invalid. The aliuid is invalid.
400 ErrorFirewallStatus Firewall status error, please try again later. Firewall status error, please try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.