@huaweicloud/huaweicloud-sdk-waf 3.1.177 → 3.1.178

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (193) hide show
  1. package/package.json +2 -2
  2. package/v1/WafClient.d.ts +172 -56
  3. package/v1/WafClient.d.ts.map +1 -1
  4. package/v1/WafClient.js +347 -56
  5. package/v1/WafClient.js.map +1 -1
  6. package/v1/model/AnticrawlerRule.d.ts +10 -2
  7. package/v1/model/AnticrawlerRule.d.ts.map +1 -1
  8. package/v1/model/AnticrawlerRule.js +10 -1
  9. package/v1/model/AnticrawlerRule.js.map +1 -1
  10. package/v1/model/CloudWafHostItem.d.ts +11 -3
  11. package/v1/model/CloudWafHostItem.d.ts.map +1 -1
  12. package/v1/model/CloudWafHostItem.js +10 -1
  13. package/v1/model/CloudWafHostItem.js.map +1 -1
  14. package/v1/model/CompositeHostResponse.d.ts +11 -3
  15. package/v1/model/CompositeHostResponse.d.ts.map +1 -1
  16. package/v1/model/CompositeHostResponse.js +10 -1
  17. package/v1/model/CompositeHostResponse.js.map +1 -1
  18. package/v1/model/CreateAnticrawlerRuleRequestbody.d.ts +10 -2
  19. package/v1/model/CreateAnticrawlerRuleRequestbody.d.ts.map +1 -1
  20. package/v1/model/CreateAnticrawlerRuleRequestbody.js +10 -1
  21. package/v1/model/CreateAnticrawlerRuleRequestbody.js.map +1 -1
  22. package/v1/model/CreateAnticrawlerRuleResponse.d.ts +10 -2
  23. package/v1/model/CreateAnticrawlerRuleResponse.d.ts.map +1 -1
  24. package/v1/model/CreateAnticrawlerRuleResponse.js +10 -1
  25. package/v1/model/CreateAnticrawlerRuleResponse.js.map +1 -1
  26. package/v1/model/CreateHostRequestBody.d.ts +11 -3
  27. package/v1/model/CreateHostRequestBody.d.ts.map +1 -1
  28. package/v1/model/CreateHostRequestBody.js +10 -1
  29. package/v1/model/CreateHostRequestBody.js.map +1 -1
  30. package/v1/model/CreateValueListResponse.d.ts +18 -2
  31. package/v1/model/CreateValueListResponse.d.ts.map +1 -1
  32. package/v1/model/CreateValueListResponse.js +18 -1
  33. package/v1/model/CreateValueListResponse.js.map +1 -1
  34. package/v1/model/CustomPage.d.ts +12 -3
  35. package/v1/model/CustomPage.d.ts.map +1 -1
  36. package/v1/model/CustomPage.js +11 -1
  37. package/v1/model/CustomPage.js.map +1 -1
  38. package/v1/model/DeleteAlertNoticeConfigRequest.d.ts +16 -0
  39. package/v1/model/DeleteAlertNoticeConfigRequest.d.ts.map +1 -0
  40. package/v1/model/DeleteAlertNoticeConfigRequest.js +42 -0
  41. package/v1/model/DeleteAlertNoticeConfigRequest.js.map +1 -0
  42. package/v1/model/DeleteAlertNoticeConfigResponse.d.ts +47 -0
  43. package/v1/model/DeleteAlertNoticeConfigResponse.d.ts.map +1 -0
  44. package/v1/model/DeleteAlertNoticeConfigResponse.js +109 -0
  45. package/v1/model/DeleteAlertNoticeConfigResponse.js.map +1 -0
  46. package/v1/model/DeleteAnticrawlerRuleResponse.d.ts +10 -2
  47. package/v1/model/DeleteAnticrawlerRuleResponse.d.ts.map +1 -1
  48. package/v1/model/DeleteAnticrawlerRuleResponse.js +10 -1
  49. package/v1/model/DeleteAnticrawlerRuleResponse.js.map +1 -1
  50. package/v1/model/DeleteHostResponse.d.ts +11 -3
  51. package/v1/model/DeleteHostResponse.d.ts.map +1 -1
  52. package/v1/model/DeleteHostResponse.js +10 -1
  53. package/v1/model/DeleteHostResponse.js.map +1 -1
  54. package/v1/model/DeleteInstanceResponse.d.ts +40 -8
  55. package/v1/model/DeleteInstanceResponse.d.ts.map +1 -1
  56. package/v1/model/DeleteInstanceResponse.js +36 -1
  57. package/v1/model/DeleteInstanceResponse.js.map +1 -1
  58. package/v1/model/DeletePremiumHostResponse.d.ts +23 -6
  59. package/v1/model/DeletePremiumHostResponse.d.ts.map +1 -1
  60. package/v1/model/DeletePremiumHostResponse.js +20 -1
  61. package/v1/model/DeletePremiumHostResponse.js.map +1 -1
  62. package/v1/model/DeleteValueListResponse.d.ts +18 -2
  63. package/v1/model/DeleteValueListResponse.d.ts.map +1 -1
  64. package/v1/model/DeleteValueListResponse.js +18 -1
  65. package/v1/model/DeleteValueListResponse.js.map +1 -1
  66. package/v1/model/ListAnticrawlerRulesRequest.d.ts +10 -2
  67. package/v1/model/ListAnticrawlerRulesRequest.d.ts.map +1 -1
  68. package/v1/model/ListAnticrawlerRulesRequest.js +10 -1
  69. package/v1/model/ListAnticrawlerRulesRequest.js.map +1 -1
  70. package/v1/model/ListCcRulesRequest.d.ts +16 -3
  71. package/v1/model/ListCcRulesRequest.d.ts.map +1 -1
  72. package/v1/model/ListCcRulesRequest.js +15 -1
  73. package/v1/model/ListCcRulesRequest.js.map +1 -1
  74. package/v1/model/ListCertificatesRequest.d.ts +12 -3
  75. package/v1/model/ListCertificatesRequest.d.ts.map +1 -1
  76. package/v1/model/ListCertificatesRequest.js +11 -1
  77. package/v1/model/ListCertificatesRequest.js.map +1 -1
  78. package/v1/model/ListCompositeHostsRequest.d.ts +12 -3
  79. package/v1/model/ListCompositeHostsRequest.d.ts.map +1 -1
  80. package/v1/model/ListCompositeHostsRequest.js +11 -1
  81. package/v1/model/ListCompositeHostsRequest.js.map +1 -1
  82. package/v1/model/ListInstance.d.ts +40 -8
  83. package/v1/model/ListInstance.d.ts.map +1 -1
  84. package/v1/model/ListInstance.js +36 -1
  85. package/v1/model/ListInstance.js.map +1 -1
  86. package/v1/model/ListPremiumHostRequest.d.ts +12 -3
  87. package/v1/model/ListPremiumHostRequest.d.ts.map +1 -1
  88. package/v1/model/ListPremiumHostRequest.js +11 -1
  89. package/v1/model/ListPremiumHostRequest.js.map +1 -1
  90. package/v1/model/ListSourceIpTop5Request.d.ts +12 -0
  91. package/v1/model/ListSourceIpTop5Request.d.ts.map +1 -0
  92. package/v1/model/ListSourceIpTop5Request.js +30 -0
  93. package/v1/model/ListSourceIpTop5Request.js.map +1 -0
  94. package/v1/model/ListSourceIpTop5Response.d.ts +10 -0
  95. package/v1/model/ListSourceIpTop5Response.d.ts.map +1 -0
  96. package/v1/model/ListSourceIpTop5Response.js +19 -0
  97. package/v1/model/ListSourceIpTop5Response.js.map +1 -0
  98. package/v1/model/ListThreatsRequest.d.ts +12 -0
  99. package/v1/model/ListThreatsRequest.d.ts.map +1 -0
  100. package/v1/model/ListThreatsRequest.js +29 -0
  101. package/v1/model/ListThreatsRequest.js.map +1 -0
  102. package/v1/model/ListThreatsResponse.d.ts +29 -0
  103. package/v1/model/ListThreatsResponse.d.ts.map +1 -0
  104. package/v1/model/ListThreatsResponse.js +59 -0
  105. package/v1/model/ListThreatsResponse.js.map +1 -0
  106. package/v1/model/ListUrlRequest.d.ts +20 -0
  107. package/v1/model/ListUrlRequest.d.ts.map +1 -0
  108. package/v1/model/ListUrlRequest.js +45 -0
  109. package/v1/model/ListUrlRequest.js.map +1 -0
  110. package/v1/model/ListUrlResponse.d.ts +7 -0
  111. package/v1/model/ListUrlResponse.d.ts.map +1 -0
  112. package/v1/model/ListUrlResponse.js +15 -0
  113. package/v1/model/ListUrlResponse.js.map +1 -0
  114. package/v1/model/RenameInstanceResponse.d.ts +40 -8
  115. package/v1/model/RenameInstanceResponse.d.ts.map +1 -1
  116. package/v1/model/RenameInstanceResponse.js +36 -1
  117. package/v1/model/RenameInstanceResponse.js.map +1 -1
  118. package/v1/model/ShowAnticrawlerRuleResponse.d.ts +10 -2
  119. package/v1/model/ShowAnticrawlerRuleResponse.d.ts.map +1 -1
  120. package/v1/model/ShowAnticrawlerRuleResponse.js +10 -1
  121. package/v1/model/ShowAnticrawlerRuleResponse.js.map +1 -1
  122. package/v1/model/ShowCompositeHostResponse.d.ts +11 -3
  123. package/v1/model/ShowCompositeHostResponse.d.ts.map +1 -1
  124. package/v1/model/ShowCompositeHostResponse.js +10 -1
  125. package/v1/model/ShowCompositeHostResponse.js.map +1 -1
  126. package/v1/model/ShowInstanceResponse.d.ts +40 -8
  127. package/v1/model/ShowInstanceResponse.d.ts.map +1 -1
  128. package/v1/model/ShowInstanceResponse.js +36 -1
  129. package/v1/model/ShowInstanceResponse.js.map +1 -1
  130. package/v1/model/ShowPremiumHostResponse.d.ts +23 -6
  131. package/v1/model/ShowPremiumHostResponse.d.ts.map +1 -1
  132. package/v1/model/ShowPremiumHostResponse.js +20 -1
  133. package/v1/model/ShowPremiumHostResponse.js.map +1 -1
  134. package/v1/model/ShowValueListResponse.d.ts +18 -2
  135. package/v1/model/ShowValueListResponse.d.ts.map +1 -1
  136. package/v1/model/ShowValueListResponse.js +18 -1
  137. package/v1/model/ShowValueListResponse.js.map +1 -1
  138. package/v1/model/SourceIpTopListInfoItems.d.ts +8 -0
  139. package/v1/model/SourceIpTopListInfoItems.d.ts.map +1 -0
  140. package/v1/model/SourceIpTopListInfoItems.js +17 -0
  141. package/v1/model/SourceIpTopListInfoItems.js.map +1 -0
  142. package/v1/model/StatisticsTimelineItem.d.ts +14 -2
  143. package/v1/model/StatisticsTimelineItem.d.ts.map +1 -1
  144. package/v1/model/StatisticsTimelineItem.js +14 -1
  145. package/v1/model/StatisticsTimelineItem.js.map +1 -1
  146. package/v1/model/UpdateAnticrawlerRuleRequestBody.d.ts +10 -2
  147. package/v1/model/UpdateAnticrawlerRuleRequestBody.d.ts.map +1 -1
  148. package/v1/model/UpdateAnticrawlerRuleRequestBody.js +10 -1
  149. package/v1/model/UpdateAnticrawlerRuleRequestBody.js.map +1 -1
  150. package/v1/model/UpdateAnticrawlerRuleResponse.d.ts +10 -2
  151. package/v1/model/UpdateAnticrawlerRuleResponse.d.ts.map +1 -1
  152. package/v1/model/UpdateAnticrawlerRuleResponse.js +10 -1
  153. package/v1/model/UpdateAnticrawlerRuleResponse.js.map +1 -1
  154. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.d.ts +11 -3
  155. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.d.ts.map +1 -1
  156. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.js +10 -1
  157. package/v1/model/UpdateAnticrawlerRuleTypeRequestbody.js.map +1 -1
  158. package/v1/model/UpdateAnticrawlerRuleTypeResponse.d.ts +11 -3
  159. package/v1/model/UpdateAnticrawlerRuleTypeResponse.d.ts.map +1 -1
  160. package/v1/model/UpdateAnticrawlerRuleTypeResponse.js +10 -1
  161. package/v1/model/UpdateAnticrawlerRuleTypeResponse.js.map +1 -1
  162. package/v1/model/UpdateHostRequestBody.d.ts +11 -3
  163. package/v1/model/UpdateHostRequestBody.d.ts.map +1 -1
  164. package/v1/model/UpdateHostRequestBody.js +10 -1
  165. package/v1/model/UpdateHostRequestBody.js.map +1 -1
  166. package/v1/model/UpdatePremiumHostRequestBody.d.ts +23 -6
  167. package/v1/model/UpdatePremiumHostRequestBody.d.ts.map +1 -1
  168. package/v1/model/UpdatePremiumHostRequestBody.js +20 -1
  169. package/v1/model/UpdatePremiumHostRequestBody.js.map +1 -1
  170. package/v1/model/UpdatePremiumHostResponse.d.ts +23 -6
  171. package/v1/model/UpdatePremiumHostResponse.d.ts.map +1 -1
  172. package/v1/model/UpdatePremiumHostResponse.js +20 -1
  173. package/v1/model/UpdatePremiumHostResponse.js.map +1 -1
  174. package/v1/model/UpdatePremiumInstanceResponse.d.ts +50 -10
  175. package/v1/model/UpdatePremiumInstanceResponse.d.ts.map +1 -1
  176. package/v1/model/UpdatePremiumInstanceResponse.js +45 -1
  177. package/v1/model/UpdatePremiumInstanceResponse.js.map +1 -1
  178. package/v1/model/UpdatePrivacyRuleResponse.d.ts +10 -2
  179. package/v1/model/UpdatePrivacyRuleResponse.d.ts.map +1 -1
  180. package/v1/model/UpdatePrivacyRuleResponse.js +10 -1
  181. package/v1/model/UpdatePrivacyRuleResponse.js.map +1 -1
  182. package/v1/model/UpdateValueListResponse.d.ts +18 -2
  183. package/v1/model/UpdateValueListResponse.d.ts.map +1 -1
  184. package/v1/model/UpdateValueListResponse.js +18 -1
  185. package/v1/model/UpdateValueListResponse.js.map +1 -1
  186. package/v1/model/WafProductInfo.d.ts +11 -3
  187. package/v1/model/WafProductInfo.d.ts.map +1 -1
  188. package/v1/model/WafProductInfo.js +10 -1
  189. package/v1/model/WafProductInfo.js.map +1 -1
  190. package/v1/public-api.d.ts +9 -0
  191. package/v1/public-api.d.ts.map +1 -1
  192. package/v1/public-api.js +9 -0
  193. package/v1/public-api.js.map +1 -1
package/v1/WafClient.js CHANGED
@@ -64,6 +64,7 @@ const CreateSecurityReportSubscriptionRequest_1 = require("./model/CreateSecurit
64
64
  const CreateValueListRequest_1 = require("./model/CreateValueListRequest");
65
65
  const CreateWhiteblackipRuleRequest_1 = require("./model/CreateWhiteblackipRuleRequest");
66
66
  const DeleteAgencyRequest_1 = require("./model/DeleteAgencyRequest");
67
+ const DeleteAlertNoticeConfigRequest_1 = require("./model/DeleteAlertNoticeConfigRequest");
67
68
  const DeleteAnticrawlerRuleRequest_1 = require("./model/DeleteAnticrawlerRuleRequest");
68
69
  const DeleteAntileakageRuleRequest_1 = require("./model/DeleteAntileakageRuleRequest");
69
70
  const DeleteAntitamperRuleRequest_1 = require("./model/DeleteAntitamperRuleRequest");
@@ -124,11 +125,14 @@ const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimel
124
125
  const ListSecurityReportHistoryPeriodsRequest_1 = require("./model/ListSecurityReportHistoryPeriodsRequest");
125
126
  const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
126
127
  const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
128
+ const ListSourceIpTop5Request_1 = require("./model/ListSourceIpTop5Request");
127
129
  const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
130
+ const ListThreatsRequest_1 = require("./model/ListThreatsRequest");
128
131
  const ListTopAbnormalRequest_1 = require("./model/ListTopAbnormalRequest");
129
132
  const ListTopDomainsRequest_1 = require("./model/ListTopDomainsRequest");
130
133
  const ListTopIpRequest_1 = require("./model/ListTopIpRequest");
131
134
  const ListTopUrlRequest_1 = require("./model/ListTopUrlRequest");
135
+ const ListUrlRequest_1 = require("./model/ListUrlRequest");
132
136
  const ListValueListRequest_1 = require("./model/ListValueListRequest");
133
137
  const ListWebBasicProtectionRulesRequest_1 = require("./model/ListWebBasicProtectionRulesRequest");
134
138
  const ListWhiteblackipPolicyRulesRequest_1 = require("./model/ListWhiteblackipPolicyRulesRequest");
@@ -437,7 +441,7 @@ class WafClient {
437
441
  * Please refer to HUAWEI cloud API Explorer for details.
438
442
  *
439
443
  * @summary 批量删除防护策略
440
- * @param {string} contentType 内容类型
444
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
441
445
  * @param {BatchDeletePoliciesRequestBody} batchDeletePoliciesRequestBody 批量删除防护策略body
442
446
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id
443
447
  * @param {*} [options] Override http request option.
@@ -622,9 +626,9 @@ class WafClient {
622
626
  }
623
627
  /**
624
628
  * 变更包周期云模式waf规格。注:
625
- * - 1.变更某产品规格的前提是必须已购买该产品
626
- * - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
627
- * - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
629
+ * - 变更某产品规格的前提是必须已购买该产品
630
+ * - 云模式支持版本降配,扩展包支持减少数量,最少可以到0
631
+ * - 不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
628
632
  *
629
633
  * Please refer to HUAWEI cloud API Explorer for details.
630
634
  *
@@ -895,7 +899,7 @@ class WafClient {
895
899
  * Please refer to HUAWEI cloud API Explorer for details.
896
900
  *
897
901
  * @summary 创建JS脚本反爬虫规则
898
- * @param {string} contentType 内容类型
902
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
899
903
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
900
904
  * @param {CreateAnticrawlerRuleRequestbody} createAnticrawlerRuleRequestBody 创建JS脚本反爬虫规则请求体
901
905
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -914,7 +918,7 @@ class WafClient {
914
918
  * Please refer to HUAWEI cloud API Explorer for details.
915
919
  *
916
920
  * @summary 创建防敏感信息泄露规则
917
- * @param {string} contentType 内容类型
921
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
918
922
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
919
923
  * @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄露规则请求参数
920
924
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -990,7 +994,7 @@ class WafClient {
990
994
  * Please refer to HUAWEI cloud API Explorer for details.
991
995
  *
992
996
  * @summary 创建精准防护规则
993
- * @param {string} contentType 内容类型
997
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
994
998
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
995
999
  * @param {CreateCustomRuleRequestBody} createCustomRuleRequestBody CreateCustomRuleRequestBody
996
1000
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1063,7 +1067,7 @@ class WafClient {
1063
1067
  * Please refer to HUAWEI cloud API Explorer for details.
1064
1068
  *
1065
1069
  * @summary 创建全局白名单(原误报屏蔽)规则
1066
- * @param {string} contentType 内容类型
1070
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1067
1071
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1068
1072
  * @param {CreateIgnoreRuleRequestBody} createIgnoreRuleRequestBody 创建误报屏蔽规则请求体
1069
1073
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1082,7 +1086,7 @@ class WafClient {
1082
1086
  * Please refer to HUAWEI cloud API Explorer for details.
1083
1087
  *
1084
1088
  * @summary 创建WAF独享引擎实例
1085
- * @param {string} contentType 内容类型
1089
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1086
1090
  * @param {CreateInstanceRequestBody} createInstanceRequestBody 待创建的独享引擎信息
1087
1091
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1088
1092
  * @param {*} [options] Override http request option.
@@ -1100,7 +1104,7 @@ class WafClient {
1100
1104
  * Please refer to HUAWEI cloud API Explorer for details.
1101
1105
  *
1102
1106
  * @summary 创建ip地址组
1103
- * @param {string} contentType 内容类型
1107
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1104
1108
  * @param {CreateIpGroupRequestBody} createIpGroupRequestBody 创建ip地址组请求体
1105
1109
  * @param {string} [enterpriseProjectId] 企业项目id
1106
1110
  * @param {*} [options] Override http request option.
@@ -1210,7 +1214,7 @@ class WafClient {
1210
1214
  * Please refer to HUAWEI cloud API Explorer for details.
1211
1215
  *
1212
1216
  * @summary 创建攻击惩罚规则
1213
- * @param {string} contentType 内容类型
1217
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1214
1218
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1215
1219
  * @param {CreatePunishmentRuleRequestBody} createPunishmentRuleRequestBody 创建攻击惩罚规则请求参数
1216
1220
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1295,13 +1299,31 @@ class WafClient {
1295
1299
  options['responseHeaders'] = [''];
1296
1300
  return this.hcClient.sendRequest(options);
1297
1301
  }
1302
+ /**
1303
+ * 删除告警通知配置
1304
+ *
1305
+ * Please refer to HUAWEI cloud API Explorer for details.
1306
+ *
1307
+ * @summary 删除告警通知配置
1308
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1309
+ * @param {string} xLanguage **参数解释:** zh-cn/en-us **约束限制:** 不涉及 **取值范围:** - zh-cn - en-us **默认取值:** 不涉及
1310
+ * @param {string} alertId **参数解释:** 告警通知id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
1311
+ * @param {*} [options] Override http request option.
1312
+ * @throws {RequiredError}
1313
+ */
1314
+ deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest) {
1315
+ const options = (0, exports.ParamCreater)().deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest);
1316
+ // @ts-ignore
1317
+ options['responseHeaders'] = [''];
1318
+ return this.hcClient.sendRequest(options);
1319
+ }
1298
1320
  /**
1299
1321
  * 删除JS脚本反爬虫防护规则
1300
1322
  *
1301
1323
  * Please refer to HUAWEI cloud API Explorer for details.
1302
1324
  *
1303
1325
  * @summary 删除JS脚本反爬虫防护规则
1304
- * @param {string} contentType 内容类型
1326
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1305
1327
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1306
1328
  * @param {string} ruleId 规则id
1307
1329
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1320,7 +1342,7 @@ class WafClient {
1320
1342
  * Please refer to HUAWEI cloud API Explorer for details.
1321
1343
  *
1322
1344
  * @summary 删除防敏感信息泄露防护规则
1323
- * @param {string} contentType 内容类型
1345
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1324
1346
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1325
1347
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
1326
1348
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1413,7 +1435,7 @@ class WafClient {
1413
1435
  * Please refer to HUAWEI cloud API Explorer for details.
1414
1436
  *
1415
1437
  * @summary 删除精准防护规则
1416
- * @param {string} contentType 内容类型
1438
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1417
1439
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1418
1440
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
1419
1441
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1469,7 +1491,7 @@ class WafClient {
1469
1491
  * Please refer to HUAWEI cloud API Explorer for details.
1470
1492
  *
1471
1493
  * @summary 删除全局白名单(原误报屏蔽)防护规则
1472
- * @param {string} contentType 内容类型
1494
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1473
1495
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1474
1496
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
1475
1497
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1488,7 +1510,7 @@ class WafClient {
1488
1510
  * Please refer to HUAWEI cloud API Explorer for details.
1489
1511
  *
1490
1512
  * @summary 删除WAF独享引擎信息
1491
- * @param {string} contentType 内容类型
1513
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1492
1514
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
1493
1515
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
1494
1516
  * @param {*} [options] Override http request option.
@@ -1599,7 +1621,7 @@ class WafClient {
1599
1621
  * Please refer to HUAWEI cloud API Explorer for details.
1600
1622
  *
1601
1623
  * @summary 删除攻击惩罚规则
1602
- * @param {string} contentType 内容类型
1624
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1603
1625
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1604
1626
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
1605
1627
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -1692,12 +1714,12 @@ class WafClient {
1692
1714
  * Please refer to HUAWEI cloud API Explorer for details.
1693
1715
  *
1694
1716
  * @summary 查询JS脚本反爬虫规则列表
1695
- * @param {string} contentType 内容类型
1717
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1696
1718
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1697
1719
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1698
1720
  * @param {number} limit 查询返回记录的数量限制。
1699
1721
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1700
- * @param {string} [type] JS脚本反爬虫规则防护模式 - anticrawler_except_url: 防护所有路径模式,在该模式下,查询的JS脚本反爬虫规则为排除的防护路径规则 - anticrawler_specific_url: 防护指定路径模式,在该模式下,查询的JS脚本反爬虫规则为指定要防护的路径规则 - 默认值:anticrawler_except_url
1722
+ * @param {'anticrawler_except_url' | 'anticrawler_specific_url'} [type] **参数解释:** JS脚本反爬虫规则防护模式 **约束限制:** 不涉及 **取值范围:** - anticrawler_except_url: 防护所有路径模式,在该模式下,查询的JS脚本反爬虫规则为排除的防护路径规则 - anticrawler_specific_url: 防护指定路径模式,在该模式下,查询的JS脚本反爬虫规则为指定要防护的路径规则 **默认取值:** anticrawler_except_url
1701
1723
  * @param {*} [options] Override http request option.
1702
1724
  * @throws {RequiredError}
1703
1725
  */
@@ -1733,7 +1755,7 @@ class WafClient {
1733
1755
  * Please refer to HUAWEI cloud API Explorer for details.
1734
1756
  *
1735
1757
  * @summary 查询防敏感信息泄露规则列表
1736
- * @param {string} contentType 内容类型
1758
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1737
1759
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防敏感信息泄露规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1738
1760
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1739
1761
  * @param {number} limit 查询返回记录的数量限制。
@@ -1792,7 +1814,7 @@ class WafClient {
1792
1814
  * Please refer to HUAWEI cloud API Explorer for details.
1793
1815
  *
1794
1816
  * @summary 查询安全统计带宽数据
1795
- * @param {string} contentType 内容类型
1817
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1796
1818
  * @param {number} from 查询的带宽统计数据的起始时间(13位毫秒时间戳),需要和to同时使用
1797
1819
  * @param {number} to 查询的带宽统计数据的结束时间(13位毫秒时间戳),需要和from同时使用
1798
1820
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -1843,7 +1865,7 @@ class WafClient {
1843
1865
  * @param {string} [name] 规则名称
1844
1866
  * @param {number} [status] 规则的开启状态,1表示开启,0表示关闭
1845
1867
  * @param {string} [category] **参数解释:** 防护动作 **取值范围:** - block: 拦截,表示超过“限速频率”将直接拦截。 - log:仅记录,表示超过“限速频率”将只记录不拦截。 - captcha:表示超过“限速频率”后弹出验证码,进行人机验证,完成验证后,请求将不受访问限制。人机验证目前支持英文。 - dynamic_block:上一个限速周期内,请求频率超过“限速频率”将被拦截,那么在下一个限速周期内,请求频率超过“放行频率”将被拦截。 - advanced_captcha:高阶人机验证,表示超过“限速频率”后弹出验证码,进行人机验证。 - js_challenge:要求客户端完成一段脚本的执行或验证,从而验证请求来源的合法性。
1846
- * @param {string} [tagType] 限速模式: - ip:IP限速,根据IP区分单个Web访问者。 - cookie:用户限速,根据Cookie键值区分单个Web访问者。 - header:用户限速,根据Header区分单个Web访问者。 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者。 - policy: 策略限速 - domain: 域名限速 - url: url限速
1868
+ * @param {'ip' | 'cookie' | 'header' | 'other' | 'policy' | 'domain' | 'url'} [tagType] **参数解释:** 限速模式标识,用于指定区分单个Web访问者的判断依据 **约束限制:** 不涉及 **取值范围:** - ip:IP限速,根据IP区分单个Web访问者 - cookie:用户限速,根据Cookie键值区分单个Web访问者 - header:用户限速,根据Header区分单个Web访问者 - other:根据Referer(自定义请求访问的来源)字段区分单个Web访问者 - policy:策略限速 - domain:域名限速 - urlurl限速 **默认取值:** 不涉及
1847
1869
  * @param {*} [options] Override http request option.
1848
1870
  * @throws {RequiredError}
1849
1871
  */
@@ -1865,7 +1887,7 @@ class WafClient {
1865
1887
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
1866
1888
  * @param {string} [name] 证书名称
1867
1889
  * @param {boolean} [host] 是否获取证书关联的域名,默认为false -true:获取已关联域名的证书 -false:获取未关联域名的证书
1868
- * @param {number} [expStatus] 证书过期状态,0-未过期,1-已过期,2-即将过期(证书将在一个月内过期)
1890
+ * @param {0 | 1 | 2} [expStatus] **参数解释:** 证书过期状态 **约束限制:** 不涉及 **取值范围:** - 0:未过期 - 1:已过期 - 2:即将过期(证书将在一个月内过期) **默认取值:** 不涉及
1869
1891
  * @param {boolean} [queryScm] 查询结果的证书来源服务是否包括SCM服务,值为true或者false。
1870
1892
  * @param {*} [options] Override http request option.
1871
1893
  * @throws {RequiredError}
@@ -1888,7 +1910,7 @@ class WafClient {
1888
1910
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
1889
1911
  * @param {string} [hostname] 域名名称
1890
1912
  * @param {string} [policyname] 防护策略名称
1891
- * @param {number} [protectStatus] 域名防护状态: - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测
1913
+ * @param {-1 | 0 | 1} [protectStatus] **参数解释:** 域名防护状态标识,用于指定域名在WAF中的防护运行状态 **约束限制:** 不涉及 **取值范围:** - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测 **默认取值:** 不涉及
1892
1914
  * @param {string} [wafType] 域名所属WAF模式
1893
1915
  * @param {boolean} [isHttps] 域名是否使用HTTPS
1894
1916
  * @param {*} [options] Override http request option.
@@ -1926,7 +1948,7 @@ class WafClient {
1926
1948
  * Please refer to HUAWEI cloud API Explorer for details.
1927
1949
  *
1928
1950
  * @summary 查询精准防护规则列表
1929
- * @param {string} contentType 内容类型
1951
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
1930
1952
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
1931
1953
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
1932
1954
  * @param {number} limit 查询返回记录的数量限制。
@@ -1949,10 +1971,10 @@ class WafClient {
1949
1971
  * @param {string} contentType 内容类型
1950
1972
  * @param {string} [xLanguage] 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
1951
1973
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
1952
- * @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
1974
+ * @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] **参数解释:** 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准 **约束限制:** 不涉及 **取值范围:** - yesterday:昨天 - today:今天 - 3days:命令注入攻击 - 1week:XSS攻击 - 1month:恶意爬虫 **默认取值:** 不涉及
1953
1975
  * @param {number} [from] 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
1954
1976
  * @param {number} [to] 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
1955
- * @param {Array<string>} [attacks] **参数解释:** 攻击类型 **约束限制:** 不涉及 **取值范围:** - sqli:sql注入攻击 - lfi:本地文件包含 - cmdi:命令注入攻击 - xss:XSS攻击 - robot:恶意爬虫 - rfi:远程文件包含 - custom_custom:精准防护 - cc: cc攻击 - webshell:网站木马 - custom_whiteblackip:黑白名单拦截 - custom_geoip:地理访问控制拦截 - antitamper:防篡改 - anticrawler:反爬虫 - leakage:网站信息防泄漏 - illegal:非法请求 - antiscan_high_freq_scan:高频扫描封禁 - antiscan_dir_traversal:目录遍历防护 - vuln:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
1977
+ * @param {Array<string>} [attacks] **参数解释:** 攻击类型 **约束限制:** 不涉及 **取值范围:** - sqli:sql注入攻击 - lfi:本地文件包含 - cmdi:命令注入攻击 - xss:XSS攻击 - robot:恶意爬虫 - rfi:远程文件包含 - custom_custom:精准防护 - cc: cc攻击 - webshell:网站木马 - custom_whiteblackip:黑白名单拦截 - custom_geoip:地理访问控制拦截 - antitamper:防篡改 - anticrawler:反爬虫 - leakage:网站信息防泄漏 - illegal:非法请求 - antiscan_high_freq_scan:高频扫描封禁 - antiscan_dir_traversal:目录遍历防护 - vuln:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
1956
1978
  * @param {Array<string>} [hosts] 域名id,从获取防护网站列表(ListHost)接口获取域名id
1957
1979
  * @param {Array<string>} [sips] 源ip,Web访问者的IP地址(攻击者IP地址)
1958
1980
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
@@ -1972,7 +1994,7 @@ class WafClient {
1972
1994
  * Please refer to HUAWEI cloud API Explorer for details.
1973
1995
  *
1974
1996
  * @summary 查询事件日志下载的url
1975
- * @param {string} contentType 内容类型
1997
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
1976
1998
  * @param {number} [page] 页数
1977
1999
  * @param {number} [pagesize] 单页显示数
1978
2000
  * @param {*} [options] Override http request option.
@@ -2089,7 +2111,7 @@ class WafClient {
2089
2111
  * Please refer to HUAWEI cloud API Explorer for details.
2090
2112
  *
2091
2113
  * @summary 查询全局白名单(原误报屏蔽)规则列表
2092
- * @param {string} contentType 内容类型
2114
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2093
2115
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的全局白名单规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2094
2116
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
2095
2117
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
@@ -2109,7 +2131,7 @@ class WafClient {
2109
2131
  * Please refer to HUAWEI cloud API Explorer for details.
2110
2132
  *
2111
2133
  * @summary 查询WAF独享引擎列表
2112
- * @param {string} contentType 内容类型
2134
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2113
2135
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
2114
2136
  * @param {number} [page] 分页查询参数,第page页,默认值为1
2115
2137
  * @param {number} [pagesize] 分页查询参数,每页pagesize条记录,默认值为10
@@ -2225,7 +2247,7 @@ class WafClient {
2225
2247
  * Please refer to HUAWEI cloud API Explorer for details.
2226
2248
  *
2227
2249
  * @summary 查询安全总览分类统计top信息
2228
- * @param {string} contentType 内容类型
2250
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2229
2251
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2230
2252
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2231
2253
  * @param {string} [xLanguage] 语言,默认值为en-us。zh-cn(中文)/en-us(英文)
@@ -2274,7 +2296,7 @@ class WafClient {
2274
2296
  * @param {string} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。如果需要一次查全部域名,该参数值填-1。
2275
2297
  * @param {string} [hostname] 域名
2276
2298
  * @param {string} [policyname] 策略名称
2277
- * @param {number} [protectStatus] 域名防护状态: - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测
2299
+ * @param {-1 | 0 | 1} [protectStatus] **参数解释:** 域名防护状态标识,用于指定域名在WAF中的防护运行状态 **约束限制:** 不涉及 **取值范围:** - -1:bypass,该域名的请求直接到达其后端服务器,不再经过WAF - 0:暂停防护,WAF只转发该域名的请求,不做攻击检测 - 1:开启防护,WAF根据您配置的策略进行攻击检测 **默认取值:** 不涉及
2278
2300
  * @param {*} [options] Override http request option.
2279
2301
  * @throws {RequiredError}
2280
2302
  */
@@ -2349,7 +2371,7 @@ class WafClient {
2349
2371
  * Please refer to HUAWEI cloud API Explorer for details.
2350
2372
  *
2351
2373
  * @summary 查询攻击惩罚规则列表
2352
- * @param {string} contentType 内容类型
2374
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2353
2375
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的攻击惩罚规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2354
2376
  * @param {number} offset 偏移量,表示查询该偏移量之后的记录。
2355
2377
  * @param {number} limit 查询返回记录的数量限制。
@@ -2369,7 +2391,7 @@ class WafClient {
2369
2391
  * Please refer to HUAWEI cloud API Explorer for details.
2370
2392
  *
2371
2393
  * @summary 查询安全统计qps次数
2372
- * @param {string} contentType 内容类型
2394
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2373
2395
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2374
2396
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2375
2397
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2391,7 +2413,7 @@ class WafClient {
2391
2413
  * Please refer to HUAWEI cloud API Explorer for details.
2392
2414
  *
2393
2415
  * @summary 查询安全总览中请求次数时间线统计数据
2394
- * @param {string} contentType 内容类型
2416
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2395
2417
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2396
2418
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2397
2419
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2491,13 +2513,31 @@ class WafClient {
2491
2513
  options['responseHeaders'] = [''];
2492
2514
  return this.hcClient.sendRequest(options);
2493
2515
  }
2516
+ /**
2517
+ * 查询攻击源ip
2518
+ *
2519
+ * Please refer to HUAWEI cloud API Explorer for details.
2520
+ *
2521
+ * @summary 查询攻击源ip
2522
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2523
+ * @param {string} recent **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2524
+ * @param {Array<string>} hosts 要查询事件域名id列表
2525
+ * @param {*} [options] Override http request option.
2526
+ * @throws {RequiredError}
2527
+ */
2528
+ listSourceIpTop5(listSourceIpTop5Request) {
2529
+ const options = (0, exports.ParamCreater)().listSourceIpTop5(listSourceIpTop5Request);
2530
+ // @ts-ignore
2531
+ options['responseHeaders'] = [''];
2532
+ return this.hcClient.sendRequest(options);
2533
+ }
2494
2534
  /**
2495
2535
  * 查询安全总览请求与攻击数量。
2496
2536
  *
2497
2537
  * Please refer to HUAWEI cloud API Explorer for details.
2498
2538
  *
2499
2539
  * @summary 查询安全总览请求与攻击数量
2500
- * @param {string} contentType 内容类型
2540
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2501
2541
  * @param {number} from 起始时间(13位时间戳),需要和to同时使用
2502
2542
  * @param {number} to 结束时间(13位时间戳),需要和from同时使用
2503
2543
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2512,13 +2552,31 @@ class WafClient {
2512
2552
  options['responseHeaders'] = [''];
2513
2553
  return this.hcClient.sendRequest(options);
2514
2554
  }
2555
+ /**
2556
+ * 查询攻击事件分布类型。
2557
+ *
2558
+ * Please refer to HUAWEI cloud API Explorer for details.
2559
+ *
2560
+ * @summary 查询攻击事件分布类型
2561
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2562
+ * @param {string} recent **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2563
+ * @param {Array<string>} [hosts] 要查询事件的域名列表
2564
+ * @param {*} [options] Override http request option.
2565
+ * @throws {RequiredError}
2566
+ */
2567
+ listThreats(listThreatsRequest) {
2568
+ const options = (0, exports.ParamCreater)().listThreats(listThreatsRequest);
2569
+ // @ts-ignore
2570
+ options['responseHeaders'] = [''];
2571
+ return this.hcClient.sendRequest(options);
2572
+ }
2515
2573
  /**
2516
2574
  * 查询业务异常TOP统计信息。
2517
2575
  *
2518
2576
  * Please refer to HUAWEI cloud API Explorer for details.
2519
2577
  *
2520
2578
  * @summary 查询业务异常数量
2521
- * @param {string} contentType 内容类型
2579
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2522
2580
  * @param {number} from 起始时间(13位毫秒时间戳),需要和to同时使用
2523
2581
  * @param {number} to 结束时间(13位毫秒时间戳),需要和from同时使用
2524
2582
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2600,13 +2658,35 @@ class WafClient {
2600
2658
  options['responseHeaders'] = [''];
2601
2659
  return this.hcClient.sendRequest(options);
2602
2660
  }
2661
+ /**
2662
+ * 查询QPS。
2663
+ *
2664
+ * Please refer to HUAWEI cloud API Explorer for details.
2665
+ *
2666
+ * @summary 查询事件日志中的url
2667
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2668
+ * @param {number} top 受攻击次数最多的几条url
2669
+ * @param {string} [recent] **参数解释:** 查询日志的时间范围,如1week(1周)、1month(1个月) **约束限制:** 不涉及 **取值范围:** - yesterday - today - 3days - 1week - 1month **默认取值:** 不涉及
2670
+ * @param {number} [from] **参数解释:** 开始时间,统计周期的起始时间戳(毫秒级)。不使用recent参数时需要填写 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2671
+ * @param {number} [to] **参数解释:** 结束时间,统计周期的终止时间戳(毫秒级)。不使用recent参数时需要填写 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
2672
+ * @param {Array<string>} [hosts] 要查询事件的域名id列表
2673
+ * @param {Array<string>} [instances] 要查询事件的独享域名id列表
2674
+ * @param {*} [options] Override http request option.
2675
+ * @throws {RequiredError}
2676
+ */
2677
+ listUrl(listUrlRequest) {
2678
+ const options = (0, exports.ParamCreater)().listUrl(listUrlRequest);
2679
+ // @ts-ignore
2680
+ options['responseHeaders'] = [''];
2681
+ return this.hcClient.sendRequest(options);
2682
+ }
2603
2683
  /**
2604
2684
  * 查询引用表列表
2605
2685
  *
2606
2686
  * Please refer to HUAWEI cloud API Explorer for details.
2607
2687
  *
2608
2688
  * @summary 查询引用表列表
2609
- * @param {string} contentType 内容类型
2689
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2610
2690
  * @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
2611
2691
  * @param {number} [pagesize] 分页查询时,每页包含多少条结果。范围1-100,默认值为10,表示每页包含10条结果。
2612
2692
  * @param {string} [name] 引用表名称
@@ -2714,7 +2794,7 @@ class WafClient {
2714
2794
  * Please refer to HUAWEI cloud API Explorer for details.
2715
2795
  *
2716
2796
  * @summary 重命名WAF独享引擎
2717
- * @param {string} contentType 内容类型
2797
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2718
2798
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
2719
2799
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
2720
2800
  * @param {RenameInstanceRequestBody} [renameInstanceRequestBody] 独享引擎新名称
@@ -2733,7 +2813,7 @@ class WafClient {
2733
2813
  * Please refer to HUAWEI cloud API Explorer for details.
2734
2814
  *
2735
2815
  * @summary 查询JS脚本反爬虫防护规则
2736
- * @param {string} contentType 内容类型
2816
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2737
2817
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2738
2818
  * @param {string} ruleId 规则id
2739
2819
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2752,7 +2832,7 @@ class WafClient {
2752
2832
  * Please refer to HUAWEI cloud API Explorer for details.
2753
2833
  *
2754
2834
  * @summary 查询防敏感信息泄露防护规则
2755
- * @param {string} contentType 内容类型
2835
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2756
2836
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2757
2837
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
2758
2838
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2861,7 +2941,7 @@ class WafClient {
2861
2941
  * Please refer to HUAWEI cloud API Explorer for details.
2862
2942
  *
2863
2943
  * @summary 根据Id查询精准防护规则
2864
- * @param {string} contentType 内容类型
2944
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2865
2945
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2866
2946
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
2867
2947
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2953,7 +3033,7 @@ class WafClient {
2953
3033
  * Please refer to HUAWEI cloud API Explorer for details.
2954
3034
  *
2955
3035
  * @summary 查询全局白名单(原误报屏蔽)防护规则
2956
- * @param {string} contentType 内容类型
3036
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2957
3037
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
2958
3038
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
2959
3039
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -2972,7 +3052,7 @@ class WafClient {
2972
3052
  * Please refer to HUAWEI cloud API Explorer for details.
2973
3053
  *
2974
3054
  * @summary 查询WAF独享引擎信息
2975
- * @param {string} contentType 内容类型
3055
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
2976
3056
  * @param {string} instanceId 独享引擎ID(通过调用WAF的ListInstance接口获取所有独享引擎信息查询独享引擎ID)
2977
3057
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
2978
3058
  * @param {*} [options] Override http request option.
@@ -3097,7 +3177,7 @@ class WafClient {
3097
3177
  * Please refer to HUAWEI cloud API Explorer for details.
3098
3178
  *
3099
3179
  * @summary 根据Id查询攻击惩罚防护规则
3100
- * @param {string} contentType 内容类型
3180
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3101
3181
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3102
3182
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
3103
3183
  * @param {string} [enterpriseProjectId] 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目id。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。
@@ -3151,7 +3231,7 @@ class WafClient {
3151
3231
  * Please refer to HUAWEI cloud API Explorer for details.
3152
3232
  *
3153
3233
  * @summary 查询WAF回源Ip信息
3154
- * @param {string} contentType 内容类型
3234
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3155
3235
  * @param {*} [options] Override http request option.
3156
3236
  * @throws {RequiredError}
3157
3237
  */
@@ -3276,7 +3356,7 @@ class WafClient {
3276
3356
  * Please refer to HUAWEI cloud API Explorer for details.
3277
3357
  *
3278
3358
  * @summary 更新JS脚本反爬虫防护规则
3279
- * @param {string} contentType 内容类型
3359
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3280
3360
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3281
3361
  * @param {string} ruleId 规则id
3282
3362
  * @param {UpdateAnticrawlerRuleRequestBody} updateAnticrawlerRuleRequestBody 更新反爬虫规则的请求体
@@ -3296,7 +3376,7 @@ class WafClient {
3296
3376
  * Please refer to HUAWEI cloud API Explorer for details.
3297
3377
  *
3298
3378
  * @summary 更新JS脚本反爬虫规则防护模式
3299
- * @param {string} contentType 内容类型
3379
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3300
3380
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3301
3381
  * @param {UpdateAnticrawlerRuleTypeRequestbody} updateAnticrawlerRuleTypeRequestbody 创建JS脚本反爬虫规则body
3302
3382
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -3315,7 +3395,7 @@ class WafClient {
3315
3395
  * Please refer to HUAWEI cloud API Explorer for details.
3316
3396
  *
3317
3397
  * @summary 更新防敏感信息泄露防护规则
3318
- * @param {string} contentType 内容类型
3398
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3319
3399
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3320
3400
  * @param {string} ruleId 防敏感信息泄露规则id,通过查询防敏感信息泄露规则列表接口(ListAntileakageRules)获取
3321
3401
  * @param {UpdateAntileakageRuleRequestBody} updateAntileakageRuleRequestBody UpdateAntileakageRuleRequestBody
@@ -3374,7 +3454,7 @@ class WafClient {
3374
3454
  * Please refer to HUAWEI cloud API Explorer for details.
3375
3455
  *
3376
3456
  * @summary 更新精准防护规则
3377
- * @param {string} contentType 内容类型
3457
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3378
3458
  * @param {string} policyId 防护策略id,通过指定防护策略id来指明查询该防护策略下的防护规则,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3379
3459
  * @param {string} ruleId 精准防护规则id,通过查询精准防护规则列表接口(ListCustomRules)获取
3380
3460
  * @param {UpdateCustomRuleRequestBody} updateCustomRuleRequestBody UpdateCustomRuleRequestBody
@@ -3470,7 +3550,7 @@ class WafClient {
3470
3550
  * Please refer to HUAWEI cloud API Explorer for details.
3471
3551
  *
3472
3552
  * @summary 更新全局白名单(原误报屏蔽)防护规则
3473
- * @param {string} contentType 内容类型
3553
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3474
3554
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3475
3555
  * @param {string} ruleId 误报屏蔽规则id,您可以通过查询误报屏蔽规则列表(ListIgnoreRule)接口的响应体中的id字段获取误报屏蔽规则id
3476
3556
  * @param {UpdateIgnoreRuleRequestBody} updateRuleRequestBody 请求体
@@ -3607,7 +3687,7 @@ class WafClient {
3607
3687
  * @summary 修改单条规则的状态
3608
3688
  * @param {string} contentType 内容类型
3609
3689
  * @param {string} policyId 策略id(策略id从查询防护策略列表接口获取)
3610
- * @param {'whiteblackip' | 'geoip' | 'privacy' | 'antitamper' | 'custom' | 'ignore' | 'cc'} ruletype 策略类型
3690
+ * @param {'whiteblackip' | 'geoip' | 'privacy' | 'antitamper' | 'custom' | 'ignore' | 'cc'} ruletype **参数解释:** 策略类型 **约束限制:** 不涉及 **取值范围:** - custom:精准防护 - cc: cc攻击 - whiteblackip: 黑白名单 - geoip: 地理位置 - privacy: 私屏蔽防护 - antitamper: 防篡改规则 - ignore: 全局白名单 **默认取值:** 不涉及
3611
3691
  * @param {string} ruleId 规则id,根据不同的规则类型(ruletype)调用规则列表接口获取规则id,例如黑白名单(whiteblackip)规则id,您可以通过调用查询黑白名单规则列表(ListWhiteblackipRule)获取规则id
3612
3692
  * @param {UpdatePolicyRuleStatusRequestBody} updatePolicyRuleStatusRequestBody 修改规则状态入参
3613
3693
  * @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
@@ -3736,7 +3816,7 @@ class WafClient {
3736
3816
  * Please refer to HUAWEI cloud API Explorer for details.
3737
3817
  *
3738
3818
  * @summary 更新攻击惩罚规则
3739
- * @param {string} contentType 内容类型
3819
+ * @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset&#x3D;utf8
3740
3820
  * @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
3741
3821
  * @param {string} ruleId 攻击惩罚规则id,通过查询攻击惩罚规则列表接口(ListPunishmentRules)获取
3742
3822
  * @param {UpdatePunishmentRuleRequestBody} updatePunishmentRuleRequestBody 更新攻击惩罚规则的请求体
@@ -4905,9 +4985,9 @@ const ParamCreater = function () {
4905
4985
  },
4906
4986
  /**
4907
4987
  * 变更包周期云模式waf规格。注:
4908
- * - 1.变更某产品规格的前提是必须已购买该产品
4909
- * - 2.waf版本只支持升配,不支持降配;扩展包数量可以增加或者减少,但不支持数量减少为0
4910
- * - 3.不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
4988
+ * - 变更某产品规格的前提是必须已购买该产品
4989
+ * - 云模式支持版本降配,扩展包支持减少数量,最少可以到0
4990
+ * - 不支持同时升降配,如增加域名扩展包数量,同时减少规则扩展包数量
4911
4991
  *
4912
4992
  * Please refer to HUAWEI cloud API Explorer for details.
4913
4993
  */
@@ -6658,6 +6738,49 @@ const ParamCreater = function () {
6658
6738
  options.headers = localVarHeaderParameter;
6659
6739
  return options;
6660
6740
  },
6741
+ /**
6742
+ * 删除告警通知配置
6743
+ *
6744
+ * Please refer to HUAWEI cloud API Explorer for details.
6745
+ */
6746
+ deleteAlertNoticeConfig(deleteAlertNoticeConfigRequest) {
6747
+ const options = {
6748
+ method: "DELETE",
6749
+ url: "/v2/{project_id}/waf/alert/{alert_id}",
6750
+ contentType: "application/json",
6751
+ queryParams: {},
6752
+ pathParams: {},
6753
+ headers: {}
6754
+ };
6755
+ const localVarHeaderParameter = {};
6756
+ let contentType;
6757
+ let xLanguage;
6758
+ let alertId;
6759
+ if (deleteAlertNoticeConfigRequest !== null && deleteAlertNoticeConfigRequest !== undefined) {
6760
+ if (deleteAlertNoticeConfigRequest instanceof DeleteAlertNoticeConfigRequest_1.DeleteAlertNoticeConfigRequest) {
6761
+ contentType = deleteAlertNoticeConfigRequest.contentType;
6762
+ xLanguage = deleteAlertNoticeConfigRequest.xLanguage;
6763
+ alertId = deleteAlertNoticeConfigRequest.alertId;
6764
+ }
6765
+ else {
6766
+ contentType = deleteAlertNoticeConfigRequest['Content-Type'];
6767
+ xLanguage = deleteAlertNoticeConfigRequest['X-Language'];
6768
+ alertId = deleteAlertNoticeConfigRequest['alert_id'];
6769
+ }
6770
+ }
6771
+ if (alertId === null || alertId === undefined) {
6772
+ throw new RequiredError('alertId', 'Required parameter alertId was null or undefined when calling deleteAlertNoticeConfig.');
6773
+ }
6774
+ if (contentType !== undefined && contentType !== null) {
6775
+ localVarHeaderParameter['Content-Type'] = String(contentType);
6776
+ }
6777
+ if (xLanguage !== undefined && xLanguage !== null) {
6778
+ localVarHeaderParameter['X-Language'] = String(xLanguage);
6779
+ }
6780
+ options.pathParams = { 'alert_id': alertId, };
6781
+ options.headers = localVarHeaderParameter;
6782
+ return options;
6783
+ },
6661
6784
  /**
6662
6785
  * 删除JS脚本反爬虫防护规则
6663
6786
  *
@@ -10102,6 +10225,56 @@ const ParamCreater = function () {
10102
10225
  options.headers = localVarHeaderParameter;
10103
10226
  return options;
10104
10227
  },
10228
+ /**
10229
+ * 查询攻击源ip
10230
+ *
10231
+ * Please refer to HUAWEI cloud API Explorer for details.
10232
+ */
10233
+ listSourceIpTop5(listSourceIpTop5Request) {
10234
+ const options = {
10235
+ method: "GET",
10236
+ url: "/v1/{project_id}/waf/event/attack/source",
10237
+ contentType: "application/json",
10238
+ queryParams: {},
10239
+ pathParams: {},
10240
+ headers: {}
10241
+ };
10242
+ const localVarHeaderParameter = {};
10243
+ const localVarQueryParameter = {};
10244
+ let contentType;
10245
+ let recent;
10246
+ let hosts;
10247
+ if (listSourceIpTop5Request !== null && listSourceIpTop5Request !== undefined) {
10248
+ if (listSourceIpTop5Request instanceof ListSourceIpTop5Request_1.ListSourceIpTop5Request) {
10249
+ contentType = listSourceIpTop5Request.contentType;
10250
+ recent = listSourceIpTop5Request.recent;
10251
+ hosts = listSourceIpTop5Request.hosts;
10252
+ }
10253
+ else {
10254
+ contentType = listSourceIpTop5Request['Content-Type'];
10255
+ recent = listSourceIpTop5Request['recent'];
10256
+ hosts = listSourceIpTop5Request['hosts'];
10257
+ }
10258
+ }
10259
+ if (recent === null || recent === undefined) {
10260
+ throw new RequiredError('recent', 'Required parameter recent was null or undefined when calling listSourceIpTop5.');
10261
+ }
10262
+ if (recent !== null && recent !== undefined) {
10263
+ localVarQueryParameter['recent'] = recent;
10264
+ }
10265
+ if (hosts === null || hosts === undefined) {
10266
+ throw new RequiredError('hosts', 'Required parameter hosts was null or undefined when calling listSourceIpTop5.');
10267
+ }
10268
+ if (hosts !== null && hosts !== undefined) {
10269
+ localVarQueryParameter['hosts'] = hosts;
10270
+ }
10271
+ if (contentType !== undefined && contentType !== null) {
10272
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10273
+ }
10274
+ options.queryParams = localVarQueryParameter;
10275
+ options.headers = localVarHeaderParameter;
10276
+ return options;
10277
+ },
10105
10278
  /**
10106
10279
  * 查询安全总览请求与攻击数量。
10107
10280
  *
@@ -10170,6 +10343,53 @@ const ParamCreater = function () {
10170
10343
  options.headers = localVarHeaderParameter;
10171
10344
  return options;
10172
10345
  },
10346
+ /**
10347
+ * 查询攻击事件分布类型。
10348
+ *
10349
+ * Please refer to HUAWEI cloud API Explorer for details.
10350
+ */
10351
+ listThreats(listThreatsRequest) {
10352
+ const options = {
10353
+ method: "GET",
10354
+ url: "/v1/{project_id}/waf/event/attack/type",
10355
+ contentType: "application/json",
10356
+ queryParams: {},
10357
+ pathParams: {},
10358
+ headers: {}
10359
+ };
10360
+ const localVarHeaderParameter = {};
10361
+ const localVarQueryParameter = {};
10362
+ let contentType;
10363
+ let recent;
10364
+ let hosts;
10365
+ if (listThreatsRequest !== null && listThreatsRequest !== undefined) {
10366
+ if (listThreatsRequest instanceof ListThreatsRequest_1.ListThreatsRequest) {
10367
+ contentType = listThreatsRequest.contentType;
10368
+ recent = listThreatsRequest.recent;
10369
+ hosts = listThreatsRequest.hosts;
10370
+ }
10371
+ else {
10372
+ contentType = listThreatsRequest['Content-Type'];
10373
+ recent = listThreatsRequest['recent'];
10374
+ hosts = listThreatsRequest['hosts'];
10375
+ }
10376
+ }
10377
+ if (recent === null || recent === undefined) {
10378
+ throw new RequiredError('recent', 'Required parameter recent was null or undefined when calling listThreats.');
10379
+ }
10380
+ if (recent !== null && recent !== undefined) {
10381
+ localVarQueryParameter['recent'] = recent;
10382
+ }
10383
+ if (hosts !== null && hosts !== undefined) {
10384
+ localVarQueryParameter['hosts'] = hosts;
10385
+ }
10386
+ if (contentType !== undefined && contentType !== null) {
10387
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10388
+ }
10389
+ options.queryParams = localVarQueryParameter;
10390
+ options.headers = localVarHeaderParameter;
10391
+ return options;
10392
+ },
10173
10393
  /**
10174
10394
  * 查询业务异常TOP统计信息。
10175
10395
  *
@@ -10466,6 +10686,77 @@ const ParamCreater = function () {
10466
10686
  options.headers = localVarHeaderParameter;
10467
10687
  return options;
10468
10688
  },
10689
+ /**
10690
+ * 查询QPS。
10691
+ *
10692
+ * Please refer to HUAWEI cloud API Explorer for details.
10693
+ */
10694
+ listUrl(listUrlRequest) {
10695
+ const options = {
10696
+ method: "GET",
10697
+ url: "/v1/{project_id}/waf/event/url",
10698
+ contentType: "application/json",
10699
+ queryParams: {},
10700
+ pathParams: {},
10701
+ headers: {}
10702
+ };
10703
+ const localVarHeaderParameter = {};
10704
+ const localVarQueryParameter = {};
10705
+ let contentType;
10706
+ let top;
10707
+ let recent;
10708
+ let from;
10709
+ let to;
10710
+ let hosts;
10711
+ let instances;
10712
+ if (listUrlRequest !== null && listUrlRequest !== undefined) {
10713
+ if (listUrlRequest instanceof ListUrlRequest_1.ListUrlRequest) {
10714
+ contentType = listUrlRequest.contentType;
10715
+ top = listUrlRequest.top;
10716
+ recent = listUrlRequest.recent;
10717
+ from = listUrlRequest.from;
10718
+ to = listUrlRequest.to;
10719
+ hosts = listUrlRequest.hosts;
10720
+ instances = listUrlRequest.instances;
10721
+ }
10722
+ else {
10723
+ contentType = listUrlRequest['Content-Type'];
10724
+ top = listUrlRequest['top'];
10725
+ recent = listUrlRequest['recent'];
10726
+ from = listUrlRequest['from'];
10727
+ to = listUrlRequest['to'];
10728
+ hosts = listUrlRequest['hosts'];
10729
+ instances = listUrlRequest['instances'];
10730
+ }
10731
+ }
10732
+ if (top === null || top === undefined) {
10733
+ throw new RequiredError('top', 'Required parameter top was null or undefined when calling listUrl.');
10734
+ }
10735
+ if (top !== null && top !== undefined) {
10736
+ localVarQueryParameter['top'] = top;
10737
+ }
10738
+ if (recent !== null && recent !== undefined) {
10739
+ localVarQueryParameter['recent'] = recent;
10740
+ }
10741
+ if (from !== null && from !== undefined) {
10742
+ localVarQueryParameter['from'] = from;
10743
+ }
10744
+ if (to !== null && to !== undefined) {
10745
+ localVarQueryParameter['to'] = to;
10746
+ }
10747
+ if (hosts !== null && hosts !== undefined) {
10748
+ localVarQueryParameter['hosts'] = hosts;
10749
+ }
10750
+ if (instances !== null && instances !== undefined) {
10751
+ localVarQueryParameter['instances'] = instances;
10752
+ }
10753
+ if (contentType !== undefined && contentType !== null) {
10754
+ localVarHeaderParameter['Content-Type'] = String(contentType);
10755
+ }
10756
+ options.queryParams = localVarQueryParameter;
10757
+ options.headers = localVarHeaderParameter;
10758
+ return options;
10759
+ },
10469
10760
  /**
10470
10761
  * 查询引用表列表
10471
10762
  *