All Products
Search
Document Center

Edge Security Acceleration:ListWafManagedRules

Last Updated:Nov 15, 2025
This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.

List WAF Managed Rules

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

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:
    • For mandatory resource types, indicate with a prefix of * .
    • 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
esa:ListWafManagedRuleslist
*Site
acs:esa:{#regionId}:{#accountId}:site/{#SiteId}
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
SiteIdlongYes

Site ID, which can be obtained by calling the ListSites interface.

1
IdlongYes

ID of the WAF rule.

10000001
AttackTypeintegerYes

Attack type of the vulnerability protection event. Values:

  • SQL injection
  • Cross-site scripting
  • Code execution
  • CRLF
  • Local file inclusion
  • Remote file inclusion
  • Webshell
  • Cross-site request forgery
  • Other
  • SEMA
11
LanguagestringNo

Language type, which will be used to return the response. Value range:

  • en: English.
  • zh: Chinese.
zh
QueryArgsobjectNo

Query conditions.

IdNameLikestringNo

Fuzzy search for rule ID or rule name.

example
ProtectionLevelsarrayNo

List of rule protection levels.

integerNo

Rule protection level. Values:

  • Lenient
  • Moderate
  • Strict
  • Ultra strict
1
ActionstringNo

Action.

deny
StatusstringNo

Status.

on
PageNumberintegerNo

Query page number.

1
PageSizeintegerNo

Query page size.

20

Response parameters

ParameterTypeDescriptionExample
object

Schema of Response

RequestIdstring

Request ID.

36af3fcc-43d0-441c-86b1-428951dc8225
TotalCountlong

Total number of rules after filtering.

20
Rulesarray<object>

List of managed rules.

ruleobject

Details of the managed rule.

Idlong

ID of the managed rule.

100001
Namestring

Name of the managed rule.

SQL injection
ProtectionLevelinteger

Protection level of the managed rule.

1
Actionstring

Protection action of the managed rule.

deny
Statusstring

Protection status of the managed rule.

on
PageNumberinteger

Page number.

1
PageSizeinteger

Page size.

20

Examples

Sample success responses

JSONformat

{
  "RequestId": "36af3fcc-43d0-441c-86b1-428951dc8225",
  "TotalCount": 20,
  "Rules": [
    {
      "Id": 100001,
      "Name": "SQL injection",
      "ProtectionLevel": 1,
      "Action": "deny",
      "Status": "on"
    }
  ],
  "PageNumber": 1,
  "PageSize": 20
}

Error codes

HTTP status codeError codeError messageDescription
400InvalidParameterThe specified parameter is invalid.The specified parameter is invalid.
400InternalExceptionFailed to call the service. Try again later or contact technical support.Failed to call the service. Try again later or contact technical support.

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

Change history

Change timeSummary of changesOperation
2024-11-12The Error code has changed. The request parameters of the API has changedView Change Details