WAF provides system-defined policies that can be directly used in IAM. You can also create custom policies and use them to supplement system-defined policies, implementing more refined access control. The following are related concepts:
The check mark (√) indicates that an action takes effect. The cross mark (x) indicates that an action does not take effect.
Permission |
API |
Action |
Dependency Item |
IAM Project |
---|---|---|---|---|
Querying Details about a Dedicated WAF Instance |
GET /v1/{project_id}/premium-waf/instance/{instance_id} |
waf:premiumInstance:get |
- |
√ |
Deleting a Dedicated WAF Engine |
DELETE /v1/{project_id}/premium-waf/instance/{instance_id} |
waf:premiumInstance:delete |
- |
√ |
Renaming a Dedicated WAF Engine |
PUT /v1/{project_id}/premium-waf/instance/{instance_id} |
waf:premiumInstance:put |
- |
√ |
Creating a Dedicated WAF Engine |
POST /v1/{project_id}/premium-waf/instance |
waf:premiumInstance:create |
- |
√ |
Operations on a Dedicated WAF Instance |
POST /v1/{project_id}/premium-waf/instance/{instance_id}/action |
waf:premiumInstance:put |
- |
√ |
Querying the List of Dedicated WAF Engines |
GET /v1/{project_id}/premium-waf/instance |
waf:premiumInstance:list |
- |
√ |
Adding a Protected Domain Name |
POST /v1/{project_id}/premium-waf/host |
waf:instance:create |
- |
√ |
Querying Domain Names Protected by Dedicated WAF Engines |
GET /v1/{project_id}/premium-waf/host |
waf:instance:list |
- |
√ |
Modifying a Domain Name Protected by a Dedicated WAF Instance |
PUT /v1/{project_id}/premium-waf/host/{host_id} |
waf:instance:put |
- |
√ |
Querying Domain Name Settings in Dedicated Mode |
GET /v1/{project_id}/premium-waf/host/{host_id} |
waf:instance:get |
- |
√ |
Deleting a Domain Name from a Dedicated WAF Instance |
DELETE /v1/{project_id}/premium-waf/host/{host_id} |
waf:instance:delete |
- |
√ |
Querying Protection Policies |
GET /v1/{project_id}/waf/policy |
waf:instance:list |
- |
√ |
Creating a Policy |
POST /v1/{project_id}/waf/policy |
waf:policy:create |
- |
√ |
Querying a Policy by ID |
GET /v1/{project_id}/waf/policy/{policy_id} |
waf:policy:get |
- |
√ |
Updating a policy |
PATCH /v1/{project_id}/waf/policy/{policy_id} |
waf:policy:put |
- |
√ |
Deleting a Policy |
DELETE /v1/{project_id}/waf/policy/{policy_id} |
waf:policy:delete |
- |
√ |
Changing the Status of a Blacklist or Whitelist Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/whiteblackip/{ruleId}/status |
waf:whiteBlackIpRule:put |
- |
√ |
Changing the Status of a CC attack protection rule |
PUT/v1/{projectId}/waf/policy/{policyId}/cc/{ruleId}/status |
waf:ccRule:put |
- |
√ |
Changing the Status of a Precise Protection Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/custom/{ruleId}/status |
waf:preciseProtectionRule:put |
- |
√ |
Changing the Status of a Data Masking Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/privacy/{ruleId}/status |
waf:privacyRule:put |
- |
√ |
Changing the Status of an Information Leakage Protection Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/antileakage/{ruleId}/status |
waf:antiLeakageRule:put |
- |
√ |
Changing the Status of a False Alarm Masking Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/ignore/{ruleId}/status |
waf:falseAlarmMaskRule:put |
- |
√ |
Changing the Status of a Geolocation Access Control Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/geoip/{ruleId}/status |
waf:geoIpRule:put |
- |
√ |
Changing the Status of a Web Tamper Protection Rule |
PUT/v1/{projectId}/waf/policy/{policyId}/antitamper/{ruleId}/status |
waf:antiTamperRule:put |
- |
√ |
Querying the Blacklist and Whitelist Rule List |
GET /v1/{project_id}/waf/policy/{policy_id}/whiteblackip |
waf:whiteBlackIpRule:list |
- |
√ |
Creating a Blacklist or Whitelist Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/whiteblackip |
waf:whiteBlackIpRule:create |
- |
√ |
Querying a Blacklist or Whitelist Rule |
GET /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} |
waf:whiteBlackIpRule:get |
- |
√ |
Updating a Blacklist or Whitelist Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} |
waf:whiteBlackIpRule:put |
- |
√ |
Deleting a Blacklist or Whitelist Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/whiteblackip/{rule_id} |
waf:whiteBlackIpRule:delete |
- |
√ |
Querying CC Attack Protection Rules |
GET /v1/{project_id}/waf/policy/{policy_id}/cc |
waf:ccRule:list |
- |
√ |
Creating a CC attack protection rule |
POST /v1/{project_id}/waf/policy/{policy_id}/cc |
waf:ccRule:create |
- |
√ |
Querying a CC Attack Protection Rule by ID |
GET /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} |
waf:ccRule:get |
- |
√ |
Updating a CC Attack Protection Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} |
waf:ccRule:put |
- |
√ |
Deleting a CC Attack Protection Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/cc/{rule_id} |
waf:ccRule:delete |
- |
√ |
Querying Precise Protection Rules |
GET /v1/{project_id}/waf/policy/{policy_id}/custom |
waf:preciseProtectionRule:list |
- |
√ |
Creating a Precise Protection Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/custom |
waf:preciseProtectionRule:create |
- |
√ |
Querying a Precise Protection Rule by ID |
GET /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id} |
waf:preciseProtectionRule:get |
- |
√ |
Updating a Precise Protection Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id} |
waf:preciseProtectionRule:put |
- |
√ |
Deleting a Precise Protection Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/custom/{rule_id} |
waf:preciseProtectionRule:delete |
- |
√ |
Querying the Data Masking Rule List |
GET /v1/{project_id}/waf/policy/{policy_id}/privacy |
waf:privacyRule:list |
- |
√ |
Creating a Data Masking Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/privacy |
waf:privacyRule:create |
- |
√ |
Querying a Data Masking Rule by ID |
GET /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} |
waf:privacyRule:get |
- |
√ |
Updating the Data Masking Rule List |
PUT /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} |
waf:privacyRule:put |
- |
√ |
Deleting a Data Masking Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/privacy/{rule_id} |
waf:privacyRule:delete |
- |
√ |
Creating a Known Attack Source Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/punishment |
waf:punishmentRule:create |
- |
√ |
Querying the List of Known Attack Source Rules |
GET /v1/{project_id}/waf/policy/{policy_id}/punishment |
waf:punishmentRule:list |
- |
√ |
Querying a Known Attack Source Rule by ID |
GET /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id} |
waf:punishmentRule:get |
- |
√ |
Updating a Known Attack Source Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id} |
waf:punishmentRule:put |
- |
√ |
Deleting a Known Attack Source Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/punishment/{rule_id} |
waf:punishmentRule:delete |
- |
√ |
Querying the List of Web Tamper Protection Rules |
GET /v1/{project_id}/waf/policy/{policy_id}/antitamper |
waf:antiTamperRule:list |
- |
√ |
Creating a Web Tamper Protection Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/antitamper |
waf:antiTamperRule:create |
- |
√ |
Querying a Web Tamper Protection Rule by ID |
GET /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id} |
waf:antiTamperRule:get |
- |
√ |
Updating the Cache for a Web Tamper Protection Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id}/refresh |
waf:antiTamperRule:create |
- |
√ |
Deleting a Web Tamper Protection Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/antitamper/{rule_id} |
waf:antiTamperRule:delete |
- |
√ |
Querying the List of Information Leakage Prevention Rules |
GET /v1/{project_id}/waf/policy/{policy_id}/antileakage |
waf:antiLeakageRule:list |
- |
√ |
Creating an Information Leakage Protection Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/antileakage |
waf:antiLeakageRule:create |
- |
√ |
Querying an Information Leakage Prevention Rule |
GET /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id} |
waf:antiLeakageRule:get |
- |
√ |
Updating an Information Leakage Prevention Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id} |
waf:antiLeakageRule:put |
- |
√ |
Deleting an Information Leakage Prevention Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/antileakage/{rule_id} |
waf:antiLeakageRule:delete |
- |
√ |
Querying the False Alarm Masking Rule List |
GET /v1/{project_id}/waf/policy/{policy_id}/ignore |
waf:falseAlarmMaskRule:list |
- |
√ |
Creating a False Alarm Masking Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/ignore |
waf:falseAlarmMaskRule:create |
- |
√ |
Querying a False Alarm Masking Rule |
GET /v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id} |
waf:falseAlarmMaskRule:get |
- |
√ |
Deleting a False Alarm Masking Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/ignore/{rule_id} |
waf:falseAlarmMaskRule:delete |
- |
√ |
Querying the List of Geolocation Access Control Rule |
GET /v1/{project_id}/waf/policy/{policy_id}/geoip |
waf:geoIpRule:get |
- |
√ |
Creating a Geolocation Access Control Rule |
POST /v1/{project_id}/waf/policy/{policy_id}/geoip |
waf:geoIpRule:create |
- |
√ |
Updating a Geolocation Access Control Rule |
PUT /v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id} |
waf:geoIpRule:put |
- |
√ |
Deleting a Geolocation Access Control Rule |
DELETE /v1/{project_id}/waf/policy/{policy_id}/geoip/{rule_id} |
waf:geoIpRule:delete |
- |
√ |
Querying the Reference Table List |
GET /v1/{project_id}/waf/valuelist |
waf:valuelist:list |
- |
√ |
Creating a Reference Table |
POST /v1/{project_id}/waf/valuelist |
waf:valueList:create |
- |
√ |
Modifying a Reference Table |
PUT /v1/{project_id}/waf/valuelist/{valuelistid} |
waf:valueList:put |
- |
√ |
Deleting a Reference Table |
DELETE /v1/{project_id}/waf/valuelist/{valuelistid} |
waf:valueList:delete |
- |
√ |
Querying the Certificate List |
GET /v1/{project_id}/waf/certificate |
waf:certificate:list |
- |
√ |
Creating a Certificate |
POST /v1/{project_id}/waf/certificate |
waf:certificate:create |
- |
√ |
Querying a Certificate |
GET /v1/{project_id}/waf/certificate/{certificate_id} |
waf:certificate:get |
- |
√ |
Deleting a Certificate |
DELETE /v1/{project_id}/waf/certificate/{certificate_id} |
waf:certificate:delete |
- |
√ |
Querying Website Request Statistics |
GET /v1/{project_id}/waf/overviews/statistics |
waf:event:get |
- |
√ |
Querying the QPS Statistics |
GET /v1/{project_id}/waf/overviews/qps/timeline |
waf:event:get |
- |
√ |
Querying Bandwidth Usage Statistics |
GET /v1/{project_id}/waf/overviews/bandwidth/timeline |
waf:event:get |
- |
√ |
Querying the List of Attack Event |
GET /v1/{project_id}/waf/event |
waf:event:get |
- |
√ |
Querying Attack Event Details |
GET /v1/{project_id}/waf/event/{eventid} |
waf:event:get |
- |
√ |