
# 边缘安全 EdgeSec
云服务在IAM预置了常用授权项，称为系统身份策略。如果IAM系统身份策略无法满足授权要求，管理员可以根据各服务支持的授权项，创建IAM自定义身份策略来进行精细的访问控制，IAM自定义身份策略是对系统身份策略的扩展和补充。
除IAM服务外，[Organizations](https://support.huaweicloud.com/productdesc-organizations/org_01_0011.html)服务中的[服务控制策略](https://support.huaweicloud.com/usermanual-organizations/org_03_0065.html)（Service Control Policy，以下简称SCP）也可以使用这些授权项元素设置访问控制策略。
SCP不直接进行授权，只划定权限边界。将SCP绑定到组织单元或者成员账号时，并没有直接对组织单元或成员账号授予操作权限，而是规定了成员账号或组织单元包含的成员账号的授权范围。IAM身份策略授予权限的有效性受SCP限制，只有在SCP允许范围内的权限才能生效。
IAM服务与Organizations服务在使用这些元素进行访问控制时，存在着一些区别，详情请参见：[IAM服务与Organizations服务权限访问控制的区别](https://support.huaweicloud.com/organizations_faq/org_06_0004.html)。
本章节介绍IAM服务身份策略授权场景中自定义身份策略和组织服务中SCP使用的元素，这些元素包含了操作（Action）、资源（Resource）和条件（Condition）。
- 如何使用这些元素编辑IAM自定义身份策略，请参考[创建自定义身份策略](https://support.huaweicloud.com/usermanual-iam5/iam_01_0917.html)。
- 如何使用这些元素编辑SCP自定义策略，请参考[创建SCP](https://support.huaweicloud.com/usermanual-organizations/org_03_0035.html)。
#### 操作（Action）
操作（Action）即为身份策略中支持的授权项。
- **"访问级别"**列描述如何对操作进行分类（List、Read和Write等）。此分类可帮助您了解在身份策略中相应操作对应的访问级别。
- **"资源类型"** 列指每个操作是否支持资源级权限。
  - 资源类型支持通配符号\*表示所有。如果此列没有值（-），则必须在身份策略语句的Resource元素中指定所有资源类型（"\*"）。
  
  - 如果该列包含资源类型，则必须在具有该操作的语句中指定该资源的URN。
  
  - 资源类型列中必需资源在表中用星号（\*）标识，表示使用此操作必须指定该资源类型。
  
  
  关于EdgeSec定义的资源类型的详细信息请参见[资源类型（Resource）]。
  
- **"条件键"** 列包括了可以在身份策略语句的Condition元素中支持指定的键值。
  - 如果该授权项资源类型列存在值，则表示条件键仅对列举的资源类型生效。
  
  - 如果该授权项资源类型列没有值（-），则表示条件键对整个授权项生效。
  
  - 如果此列条件键没有值（-），表示此操作不支持指定条件键。
  
  
  关于EdgeSec定义的条件键的详细信息请参见[条件（Condition）]。
  
- "**别名** "列包括了可以在身份策略中配置的策略授权项。通过这些授权项，可以控制支持策略授权的API访问。详细信息请参见[身份策略兼容性说明](https://support.huaweicloud.com/iam5_faq/iam_01_1103.html)。
您可以在身份策略语句的Action元素中指定以下EdgeSec的相关操作。
表1EdgeSec支持的授权项 
| 授权项                                                      | 描述                   | 访问级别  | 资源类型（\*为必须） | 条件键                   | 别名                                               |
|:---|:---|:---|:---|:---|:---|
| edgesec::purchaseProduct                                 | 授予权限购买边缘安全加速产品。      | write | -           | -                     | edgesec:product:put                              |
| edgesec::changeProduct                                   | 授予权限变更边缘安全加速产品。      | write | -           | -                     | edgesec:product:put                              |
| edgesec:domain:create                                    | 授予权限创建边缘安全防护域名。      | write | domain \*   | g:EnterpriseProjectId | edgesec:wafDomain:create                         |
| edgesec:domain:get                                       | 授予权限查询边缘安全防护域名。      | read  | domain \*   | g:EnterpriseProjectId | edgesec:wafDomain:get                            |
| edgesec:domain:listEdgeSecDomain                         | 授予权限查询边缘安全防护域名。      | list  | domain \*   | g:EnterpriseProjectId | edgesec:wafDomain:list                           |
| edgesec:domain:listCdnDomain                             | 授予权限查询边缘安全防护域名。      | list  | domain \*   | g:EnterpriseProjectId | edgesec:cdnDomain:list                           |
| edgesec:domain:update                                    | 授予权限更新边缘安全防护域名。      | write | domain \*   | g:EnterpriseProjectId | edgesec:wafDomain:put                            |
| edgesec:domain:delete                                    | 授予权限删除边缘安全防护域名。      | write | domain \*   | g:EnterpriseProjectId | edgesec:wafDomain:delete                         |
| edgesec::getHttpAttackDistribution                       | 授予权限查询http攻击分布统计数据。  | list  | -           | g:EnterpriseProjectId | edgesec:statistics:get                           |
| edgesec::getHttpAttackTimeline                           | 授予权限查询http攻击时间线统计数据。 | list  | -           | g:EnterpriseProjectId | edgesec:statistics:get                           |
| edgesec::getHttpAttackTop                                | 授予权限查询http攻击top统计数据。 | list  | -           | g:EnterpriseProjectId | edgesec:statistics:get                           |
| edgesec::getDomainThreatenDistribution                   | 授予权限查询3天域名威胁统计数据。    | list  | -           | -                     | edgesec:statistics:get                           |
| edgesec::getBotAttackDistribution                        | 授予权限查询bot攻击分布统计数据。   | list  | -           | g:EnterpriseProjectId | edgesec:statistics:get                           |
| edgesec::getBotAttackTimeline                            | 授予权限查询bot攻击时间线统计数据。  | list  | -           | g:EnterpriseProjectId | edgesec:statistics:get                           |
| edgesec::getDdosAttackTimeline                           | 授予权限查询ddos攻击时间线统计数据。 | list  | -           | -                     | edgesec:statistics:get                           |
| edgesec::getOverviews                                    | 授予权限查询安全总览请求数据。      | list  | -           | -                     | edgesec:wafOverviewsStatistics:get               |
| edgesec::getOverviewsQpsTimeline                         | 授予权限查询安全统计qps次数。     | list  | -           | -                     | edgesec:wafOverviewsQpsTimeline:get              |
| edgesec::getOverviewsBandwidthTimeline                   | 授予权限查询安全统计带宽数据。      | list  | -           | -                     | edgesec:wafOverviewsBandwidthTimeline:get        |
| edgesec::getOverviewsClassification                      | 授予权限查询安全总览分类信息。      | list  | -           | -                     | edgesec:wafOverviewsClassification:get           |
| edgesec::getOverviewsResponseCodeTimeline                | 授予权限查询安全统计响应码数据。     | list  | -           | -                     | edgesec:wafOverviewsResponseCodeTimeline:get     |
| edgesec::getOverviewsAbnormal                            | 授予权限查询业务异常监控。        | list  | -           | -                     | edgesec:wafOverviewsAbnormal:get                 |
| edgesec::listDdosLogs                                    | 授予权限读取日志数据。          | list  | -           | -                     | edgesec:log:get                                  |
| edgesec::getLtsConfig                                    | 授予权限查询Lts配置。         | read  | -           | -                     | edgesec:ltsconfig:get                            |
| edgesec::updateLtsConfig                                 | 授予权限更新Lts配置。         | write | -           | -                     | edgesec:ltsconfig:update                         |
| edgesec::getDdosLogs                                     | 授予权限下载Ddos攻击日志。      | read  | -           | -                     | edgesec:log:get                                  |
| edgesec::listHttpLogs                                    | 授予权限读取http攻击日志。      | list  | -           | -                     | edgesec:log:list                                 |
| edgesec:protectionRule:createRuleSet                     | 授予权限创建边缘安全防护内置规则集。   | write | -           | -                     | edgesec:managedWafRuleset:create                 |
| edgesec:protectionRule:listRuleSets                      | 授予权限查询边缘安全防护内置规则集。   | list  | -           | -                     | edgesec:managedWafRuleset:list                   |
| edgesec:protectionRule:deleteRuleSets                    | 授予权限批量删除边缘安全防护内置规则集。 | write | -           | -                     | edgesec:managedWafRuleset:batchDelete            |
| edgesec:protectionRule:getRuleSet                        | 授予权限查询指定边缘安全防护内置规则集。 | read  | -           | -                     | edgesec:managedWafRuleset:get                    |
| edgesec:protectionRule:updateRuleSet                     | 授予权限更新指定边缘安全防护内置规则集。 | write | -           | -                     | edgesec:managedWafRuleset:put                    |
| edgesec:protectionRule:applyRuleSet                      | 授予权限更新指定边缘安全防护内置规则集。 | write | -           | -                     | edgesec:managedWafRuleset:apply                  |
| edgesec:protectionRule:deleteRuleSet                     | 授予权限删除指定边缘安全防护内置规则集。 | write | -           | -                     | edgesec:managedWafRuleset:delete                 |
| edgesec:protectionRule:copyRuleSet                       | 授予权限复制边缘安全防护内置规则集。   | write | -           | -                     | edgesec:managedWafRuleset:copy                   |
| edgesec:protectionRule:getBotBehaviorDetectionRule       | 授予权限查询边缘安全bot防护规则。   | read  | -           | -                     | edgesec:BotBehaviorDetectionRules:get            |
| edgesec:protectionRule:getBotKnownCategoryRule           | 授予权限查询边缘安全bot防护规则。   | read  | -           | -                     | edgesec:BotKnownCategoryRules:get                |
| edgesec:protectionRule:getBotTransparentDetectionRule    | 授予权限查询边缘安全bot防护规则。   | read  | -           | -                     | edgesec:BotTransparentDetectionRules:get         |
| edgesec:protectionRule:updateBotBehaviorDetectionRule    | 授予权限更新边缘安全bot防护规则。   | write | -           | -                     | edgesec:BotBehaviorDetectionRules:update         |
| edgesec:protectionRule:updateBotKnownCategoryRule        | 授予权限更新边缘安全bot防护规则。   | write | -           | -                     | edgesec:BotKnownCategoryRules:batchUpdate        |
| edgesec:protectionRule:updateBotTransparentDetectionRule | 授予权限更新边缘安全bot防护规则。   | write | -           | -                     | edgesec:BotTransparentDetectionRules:batchUpdate |
| edgesec:protectionRule:listIgnoreRule                    | 授予权限查询误报屏蔽防护规则列表。    | list  | -           | -                     | edgesec:wafIgnoreRule:list                       |
| edgesec:protectionRule:createIgnoreRule                  | 授予权限创建误报屏蔽防护规则。      | write | -           | -                     | edgesec:wafIgnoreRule:create                     |
| edgesec:protectionRule:getIgnoreRule                     | 授予权限查询误报屏蔽防护规则。      | read  | -           | -                     | edgesec:wafIgnoreRule:get                        |
| edgesec:protectionRule:updateIgnoreRule                  | 授予权限更新误报屏蔽防护规则。      | write | -           | -                     | edgesec:wafIgnoreRule:put                        |
| edgesec:protectionRule:recountIgnoreRule                 | 授予权限重置误报屏蔽防护规则。      | write | -           | -                     | edgesec:wafIgnoreRule:recount                    |
| edgesec:protectionRule:deleteIgnoreRule                  | 授予权限删除误报屏蔽防护规则。      | write | -           | -                     | edgesec:wafIgnoreRule:delete                     |
| edgesec:protectionRule:listPolicy                        | 授予权限查询防护策略列表。        | list  | -           | -                     | edgesec:wafPolicy:list                           |
| edgesec:protectionRule:createPolicy                      | 授予权限创建防护策略规则。        | write | -           | -                     | edgesec:wafPolicy:create                         |
| edgesec:protectionRule:getPolicy                         | 授予权限查询防护策略规则。        | read  | -           | -                     | edgesec:wafPolicy:get                            |
| edgesec:protectionRule:updatePolicy                      | 授予权限更新防护策略规则。        | write | -           | -                     | edgesec:wafPolicy:put                            |
| edgesec:protectionRule:updatePolicyDomain                | 授予权限应用域名防护策略规则。      | write | -           | -                     | edgesec:wafPolicyDomain:put                      |
| edgesec:protectionRule:updateRuleStatus                  | 授予权限应用域名防护策略规则开关。    | write | -           | -                     | edgesec:wafPolicyRuleStatus:put                  |
| edgesec:protectionRule:deletePolicy                      | 授予权限删除防护策略规则。        | write | -           | -                     | edgesec:wafPolicy:delete                         |
| edgesec:protectionRule:listPrivacyMaskRule               | 授予权限查询隐私屏蔽防护规则列表。    | list  | -           | -                     | edgesec:wafPrivacyMaskRule:list                  |
| edgesec:protectionRule:createPrivacyMaskRule             | 授予权限创建隐私屏蔽防护规则。      | write | -           | -                     | edgesec:wafPrivacyMaskRule:create                |
| edgesec:protectionRule:getPrivacyMaskRule                | 授予权限查询隐私屏蔽防护规则。      | read  | -           | -                     | edgesec:wafPrivacyMaskRule:get                   |
| edgesec:protectionRule:updatePrivacyMaskRule             | 授予权限更新隐私屏蔽防护规则。      | write | -           | -                     | edgesec:wafPrivacyMaskRule:put                   |
| edgesec:protectionRule:deletePrivacyMaskRule             | 授予权限删除隐私屏蔽防护规则。      | write | -           | -                     | edgesec:wafPrivacyMaskRule:delete                |
| edgesec:protectionRule:listPunishmentRule                | 授予权限查询攻击惩罚列表。        | list  | -           | -                     | edgesec:wafPunishmentRule:list                   |
| edgesec:protectionRule:createPunishmentRule              | 授予权限创建攻击惩罚。          | write | -           | -                     | edgesec:wafPunishmentRule:create                 |
| edgesec:protectionRule:getPunishmentRule                 | 授予权限查询攻击惩罚。          | read  | -           | -                     | edgesec:wafPunishmentRule:get                    |
| edgesec:protectionRule:updatePunishmentRule              | 授予权限更新攻击惩罚。          | write | -           | -                     | edgesec:wafPunishmentRule:put                    |
| edgesec:protectionRule:deletePunishmentRule              | 授予权限删除攻击惩罚。          | write | -           | -                     | edgesec:wafPunishmentRule:delete                 |
| edgesec:protectionRule:listIpGroup                       | 授予权限查询IP地址组列表。       | list  | -           | -                     | edgesec:wafIpGroup:list                          |
| edgesec:protectionRule:createIpGroup                     | 授予权限创建IP地址组。         | write | -           | -                     | edgesec:wafIpGroup:create                        |
| edgesec:protectionRule:getIpGroup                        | 授予权限查询IP地址组。         | read  | -           | -                     | edgesec:wafIpGroup:get                           |
| edgesec:protectionRule:updateIpGroup                     | 授予权限更新IP地址组。         | write | -           | -                     | edgesec:wafIpGroup:put                           |
| edgesec:protectionRule:deleteIpGroup                     | 授予权限删除IP地址组。         | write | -           | -                     | edgesec:wafIpGroup:delete                        |
| edgesec:protectionRule:listValueList                     | 授予权限查询引用表列表。         | list  | -           | -                     | edgesec:wafValueList:list                        |
| edgesec:protectionRule:createValueList                   | 授予权限创建引用表。           | write | -           | -                     | edgesec:wafValueList:create                      |
| edgesec:protectionRule:getValueList                      | 授予权限查询引用表。           | read  | -           | -                     | edgesec:wafValueList:get                         |
| edgesec:protectionRule:updateValueList                   | 授予权限更新引用表。           | write | -           | -                     | edgesec:wafValueList:put                         |
| edgesec:protectionRule:deleteValueList                   | 授予权限删除引用表。           | write | -           | -                     | edgesec:wafValueList:delete                      |
| edgesec:protectionRule:updateThirdBot                    | 授予权限更新三方BOT防护规则。     | write | -           | -                     | edgesec:wafThirdBotRule:put                      |
| edgesec:protectionRule:deleteThirdBot                    | 授予权限删除三方BOT防护规则。     | write | -           | -                     | edgesec:wafThirdBotRule:delete                   |
| edgesec:protectionRule:listAccessControlRule             | 授予权限查询访问控制防护规则集列表。   | list  | -           | -                     | edgesec:wafCustomRule:list                       |
| edgesec:protectionRule:listAntiCrawlerRule               | 授予权限查询反爬虫防护规则集列表。    | list  | -           | -                     | edgesec:wafAntiCrawlerRule:list                  |
| edgesec:protectionRule:createAccessControlRule           | 授予权限创建访问控制防护规则集。     | write | -           | -                     | edgesec:wafCustomRule:create                     |
| edgesec:protectionRule:createAntiCrawlerRule             | 授予权限创建反爬虫防护规则集。      | write | -           | -                     | edgesec:wafAntiCrawlerRule:create                |
| edgesec:protectionRule:updateAccessControlRule           | 授予权限更新访问控制防护规则集。     | write | -           | -                     | edgesec:wafCustomRule:put                        |
| edgesec:protectionRule:updateAntiCrawlerRule             | 授予权限更新反爬虫防护规则集。      | write | -           | -                     | edgesec:wafAntiCrawlerRule:put                   |
| edgesec:protectionRule:switchAntiCrawlerRule             | 授予权限更新反爬虫防护规则集开关。    | write | -           | -                     | edgesec:wafAntiCrawlerRule:switch                |
| edgesec:protectionRule:getAccessControlRule              | 授予权限查询访问控制防护规则集详情。   | read  | -           | -                     | edgesec:wafCustomRule:get                        |
| edgesec:protectionRule:getAntiCrawlerRule                | 授予权限查询反爬虫防护规则集详情。    | read  | -           | -                     | edgesec:wafAntiCrawlerRule:get                   |
| edgesec:protectionRule:deleteAccessControlRule           | 授予权限删除访问控制防护规则集。     | write | -           | -                     | edgesec:wafCustomRule:delete                     |
| edgesec:protectionRule:deleteAntiCrawlerRule             | 授予权限删除反爬虫防护规则集。      | write | -           | -                     | edgesec:wafAntiCrawlerRule:delete                |
| edgesec:protectionRule:listGeoIpAreas                    | 授予权限查询地理位置选项列表。      | list  | -           | -                     | edgesec:wafGeoIpMap:list                         |
| edgesec:protectionRule:listCcRule                        | 授予权限查询CC规则列表。        | list  | -           | -                     | edgesec:wafCcRule:list                           |
| edgesec:protectionRule:listBlockTrustIpRule              | 授予权限查询IP黑白名单规则列表。    | list  | -           | -                     | edgesec:wafWhiteBlackIpRule:list                 |
| edgesec:protectionRule:createBlockTrustIpRule            | 授予权限创建IP黑白名单规则。      | write | -           | -                     | edgesec:wafWhiteBlackIpRule:create               |
| edgesec:protectionRule:createCcRule                      | 授予权限创建CC规则。          | write | -           | -                     | edgesec:wafCcRule:create                         |
| edgesec:protectionRule:getBlockTrustIpRule               | 授予权限查询IP黑白名单规则。      | read  | -           | -                     | edgesec:wafWhiteBlackIpRule:get                  |
| edgesec:protectionRule:getCcRule                         | 授予权限查询CC规则。          | read  | -           | -                     | edgesec:wafCcRule:get                            |
| edgesec:protectionRule:deleteBlockTrustIpRule            | 授予权限删除IP黑白名单规则。      | write | -           | -                     | edgesec:wafWhiteBlackIpRule:delete               |
| edgesec:protectionRule:deleteCcRule                      | 授予权限删除CC规则。          | write | -           | -                     | edgesec:wafCcRule:delete                         |
| edgesec:protectionRule:updateBlockTrustIpRule            | 授予权限更新IP黑白名单规则。      | write | -           | -                     | edgesec:wafWhiteBlackIpRule:put                  |
| edgesec:protectionRule:updateCcRule                      | 授予权限更新CC规则。          | write | -           | -                     | edgesec:wafCcRule:put                            |
   
EdgeSec的API通常对应着一个或多个授权项。[表2]展示了API与授权项的关系，以及该API需要依赖的授权项。
 表2API与授权项的关系 
| API                                                                                      | 对应的授权项                                         | 依赖的授权项 |
|:---|:---|:---|
| GET /v1/edgesec/log/ddos-attack-logs                                                     | edgesec::listDdosLogs                          | -      |
| POST /v1/edgesec/configuration/domains                                                   | edgesec:domain:create                          | -      |
| PUT /v1/edgesec/configuration/domains/{domain_id}                                        | edgesec:domain:update                          | -      |
| DELETE /v1/edgesec/configuration/domains/{domain_id}                                     | edgesec:domain:delete                          | -      |
| GET /v1/edgesec/configuration/domains/{domain_id}                                        | edgesec:domain:get                             | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule              | edgesec:protectionRule:listAccessControlRule   | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule             | edgesec:protectionRule:createAccessControlRule | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule/batch-update | edgesec:protectionRule:updateAccessControlRule | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule/{rule_id}    | edgesec:protectionRule:getAccessControlRule    | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule/{rule_id}    | edgesec:protectionRule:updateAccessControlRule | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}/access-control-rule/{rule_id} | edgesec:protectionRule:deleteAccessControlRule | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/blocktrustip-rule                | edgesec:protectionRule:listBlockTrustIpRule    | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/blocktrustip-rule               | edgesec:protectionRule:createBlockTrustIpRule  | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/blocktrustip-rule/{rule_id}      | edgesec:protectionRule:getBlockTrustIpRule     | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/blocktrustip-rule/{rule_id}      | edgesec:protectionRule:updateBlockTrustIpRule  | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}/blocktrustip-rule/{rule_id}   | edgesec:protectionRule:deleteBlockTrustIpRule  | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule                          | edgesec:protectionRule:listCcRule              | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule                         | edgesec:protectionRule:createCcRule            | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule/batch-update             | edgesec:protectionRule:updateCcRule            | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule/{rule_id}                | edgesec:protectionRule:getCcRule               | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule/{rule_id}                | edgesec:protectionRule:updateCcRule            | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}/cc-rule/{rule_id}             | edgesec:protectionRule:deleteCcRule            | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule                      | edgesec:protectionRule:listIgnoreRule          | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule                     | edgesec:protectionRule:createIgnoreRule        | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule/{rule_id}            | edgesec:protectionRule:getIgnoreRule           | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule/{rule_id}            | edgesec:protectionRule:updateIgnoreRule        | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule/{rule_id}         | edgesec:protectionRule:deleteIgnoreRule        | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/ignore-rule/{rule_id}/recount   | edgesec:protectionRule:recountIgnoreRule       | -      |
| GET /v1/edgesec/configuration/http/policies                                              | edgesec:protectionRule:listPolicy              | -      |
| POST /v1/edgesec/configuration/http/policies                                             | edgesec:protectionRule:createPolicy            | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}                                  | edgesec:protectionRule:getPolicy               | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}                                  | edgesec:protectionRule:updatePolicy            | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}                               | edgesec:protectionRule:deletePolicy            | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/hosts                           | edgesec:protectionRule:updatePolicyDomain      | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/{rule_type}/{rule_id}/status     | edgesec:protectionRule:updateRuleStatus        | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/punishment-rule                  | edgesec:protectionRule:listPunishmentRule      | -      |
| POST /v1/edgesec/configuration/http/policies/{policy_id}/punishment-rule                 | edgesec:protectionRule:createPunishmentRule    | -      |
| GET /v1/edgesec/configuration/http/policies/{policy_id}/punishment-rule/{rule_id}        | edgesec:protectionRule:getPunishmentRule       | -      |
| PUT /v1/edgesec/configuration/http/policies/{policy_id}/punishment-rule/{rule_id}        | edgesec:protectionRule:updatePunishmentRule    | -      |
| DELETE /v1/edgesec/configuration/http/policies/{policy_id}/punishment-rule/{rule_id}     | edgesec:protectionRule:deletePunishmentRule    | -      |
| GET /v1/edgesec/configuration/http/ip-groups                                             | edgesec:protectionRule:listIpGroup             | -      |
| POST /v1/edgesec/configuration/http/ip-groups                                            | edgesec:protectionRule:createIpGroup           | -      |
| GET /v1/edgesec/configuration/http/ip-groups/{ip_group_id}                               | edgesec:protectionRule:getIpGroup              | -      |
| PUT /v1/edgesec/configuration/http/ip-groups/{ip_group_id}                               | edgesec:protectionRule:updateIpGroup           | -      |
| DELETE /v1/edgesec/configuration/http/ip-groups/{ip_group_id}                            | edgesec:protectionRule:deleteIpGroup           | -      |
| GET /v1/edgesec/configuration/http/reference-table                                       | edgesec:protectionRule:listValueList           | -      |
| POST /v1/edgesec/configuration/http/reference-table                                      | edgesec:protectionRule:createValueList         | -      |
| GET /v1/edgesec/configuration/http/reference-table/{table_id}                            | edgesec:protectionRule:getValueList            | -      |
| PUT /v1/edgesec/configuration/http/reference-table/{table_id}                            | edgesec:protectionRule:updateValueList         | -      |
| DELETE /v1/edgesec/configuration/http/reference-table/{table_id}                         | edgesec:protectionRule:deleteValueList         | -      |
| GET /v1/edgesec/stat/http-attack-distribution                                            | edgesec::getHttpAttackDistribution             | -      |
| GET /v1/edgesec/stat/http-attack-timelines                                               | edgesec::getHttpAttackTimeline                 | -      |
| GET /v1/edgesec/stat/http-attack-top                                                     | edgesec::getHttpAttackTop                      | -      |
   
 #### 资源类型（Resource）
资源类型（Resource）表示身份策略所作用的资源。如[表3]中的某些操作指定了可以在该操作指定的资源类型，则必须在具有该操作的身份策略语句中指定该资源的URN，身份策略仅作用于此资源；如未指定，Resource默认为"\*"，则身份策略将应用到所有资源。您也可以在身份策略中设置条件，从而指定资源类型。
EdgeSec定义了以下可以在身份策略的Resource元素中使用的资源类型。
 表3EdgeSec支持的资源类型 
| 资源类型   | URN                                            |
|:---|:---|
| domain | edgesec::\<account-id\>:domain:\<domain-name\> |
   
 #### 条件（Condition）
EdgeSec服务不支持在身份策略中的条件键中配置服务级的条件键。
EdgeSec可以使用适用于所有服务的全局条件键，请参考[全局条件键](https://support.huaweicloud.com/usermanual-iam5/iam_01_0934.html)。
