@huaweicloud/huaweicloud-sdk-waf 3.1.174 → 3.1.175
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.
- package/package.json +2 -2
- package/v1/WafClient.d.ts +258 -22
- package/v1/WafClient.d.ts.map +1 -1
- package/v1/WafClient.js +565 -22
- package/v1/WafClient.js.map +1 -1
- package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts +8 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.d.ts.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.js +17 -0
- package/v1/model/AntileakageMapResponseBodyLeakagemap.js.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLocale.d.ts +18 -0
- package/v1/model/AntileakageMapResponseBodyLocale.d.ts.map +1 -0
- package/v1/model/AntileakageMapResponseBodyLocale.js +39 -0
- package/v1/model/AntileakageMapResponseBodyLocale.js.map +1 -0
- package/v1/model/CheckAgencyRequest.d.ts +8 -0
- package/v1/model/CheckAgencyRequest.d.ts.map +1 -0
- package/v1/model/CheckAgencyRequest.js +20 -0
- package/v1/model/CheckAgencyRequest.js.map +1 -0
- package/v1/model/CheckAgencyResponse.d.ts +21 -0
- package/v1/model/CheckAgencyResponse.d.ts.map +1 -0
- package/v1/model/CheckAgencyResponse.js +47 -0
- package/v1/model/CheckAgencyResponse.js.map +1 -0
- package/v1/model/ConfirmIpReputationRuleRequest.d.ts +16 -0
- package/v1/model/ConfirmIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/ConfirmIpReputationRuleRequest.js +42 -0
- package/v1/model/ConfirmIpReputationRuleRequest.js.map +1 -0
- package/v1/model/ConfirmIpReputationRuleResponse.d.ts +24 -0
- package/v1/model/ConfirmIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/ConfirmIpReputationRuleResponse.js +47 -0
- package/v1/model/ConfirmIpReputationRuleResponse.js.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts +10 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.js +25 -0
- package/v1/model/ConfirmPolicyAntileakageMapRequest.js.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts +11 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.js +19 -0
- package/v1/model/ConfirmPolicyAntileakageMapResponse.js.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts +12 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.js +30 -0
- package/v1/model/ConfirmPolicyIpReputationMapRequest.js.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts +13 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.d.ts.map +1 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.js +25 -0
- package/v1/model/ConfirmPolicyIpReputationMapResponse.js.map +1 -0
- package/v1/model/ConfirmProtectionTypesRequest.d.ts +12 -0
- package/v1/model/ConfirmProtectionTypesRequest.d.ts.map +1 -0
- package/v1/model/ConfirmProtectionTypesRequest.js +28 -0
- package/v1/model/ConfirmProtectionTypesRequest.js.map +1 -0
- package/v1/model/ConfirmProtectionTypesResponse.d.ts +9 -0
- package/v1/model/ConfirmProtectionTypesResponse.d.ts.map +1 -0
- package/v1/model/ConfirmProtectionTypesResponse.js +19 -0
- package/v1/model/ConfirmProtectionTypesResponse.js.map +1 -0
- package/v1/model/CreateIpReputationRuleRequest.d.ts +19 -0
- package/v1/model/CreateIpReputationRuleRequest.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleRequest.js +45 -0
- package/v1/model/CreateIpReputationRuleRequest.js.map +1 -0
- package/v1/model/CreateIpReputationRuleRequestBody.d.ts +19 -0
- package/v1/model/CreateIpReputationRuleRequestBody.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleRequestBody.js +41 -0
- package/v1/model/CreateIpReputationRuleRequestBody.js.map +1 -0
- package/v1/model/CreateIpReputationRuleResponse.d.ts +26 -0
- package/v1/model/CreateIpReputationRuleResponse.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleResponse.js +51 -0
- package/v1/model/CreateIpReputationRuleResponse.js.map +1 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts +6 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.d.ts.map +1 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.js +13 -0
- package/v1/model/CreateIpReputationRuleResponseBodyAction.js.map +1 -0
- package/v1/model/CreatePremiumHostRequestBody.d.ts +1 -1
- package/v1/model/CreatePremiumHostRequestBody.d.ts.map +1 -1
- package/v1/model/CreatePremiumHostRequestBody.js +1 -2
- package/v1/model/CreatePremiumHostRequestBody.js.map +1 -1
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts +6 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.d.ts.map +1 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.js +13 -0
- package/v1/model/IpReputationMapResponseBodyIpReputationMap.js.map +1 -0
- package/v1/model/IpReputationMapResponseBodyLocale.d.ts +40 -0
- package/v1/model/IpReputationMapResponseBodyLocale.d.ts.map +1 -0
- package/v1/model/IpReputationMapResponseBodyLocale.js +99 -0
- package/v1/model/IpReputationMapResponseBodyLocale.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts +17 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js +42 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseItems.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts +12 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js +31 -0
- package/v1/model/ListSecurityReportHistoryPeriodResponseStatPeriod.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts +16 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.js +39 -0
- package/v1/model/ListSecurityReportHistoryPeriodsRequest.js.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts +10 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.d.ts.map +1 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.js +19 -0
- package/v1/model/ListSecurityReportHistoryPeriodsResponse.js.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts +52 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.d.ts.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js +129 -0
- package/v1/model/SecurityReportSubscriptionResponseReportContentSubscription.js.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts +12 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.d.ts.map +1 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js +29 -0
- package/v1/model/SecurityReportSubscriptionResponseStatPeriod.js.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts +12 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.d.ts.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.js +31 -0
- package/v1/model/ShowSecurityReportSubscriptionRequest.js.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts +47 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.d.ts.map +1 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.js +111 -0
- package/v1/model/ShowSecurityReportSubscriptionResponse.js.map +1 -0
- package/v1/model/ShowWebProtectionRuleRequest.d.ts +12 -0
- package/v1/model/ShowWebProtectionRuleRequest.d.ts.map +1 -0
- package/v1/model/ShowWebProtectionRuleRequest.js +30 -0
- package/v1/model/ShowWebProtectionRuleRequest.js.map +1 -0
- package/v1/model/ShowWebProtectionRuleResponse.d.ts +38 -0
- package/v1/model/ShowWebProtectionRuleResponse.d.ts.map +1 -0
- package/v1/model/ShowWebProtectionRuleResponse.js +79 -0
- package/v1/model/ShowWebProtectionRuleResponse.js.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts +6 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.d.ts.map +1 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.js +13 -0
- package/v1/model/UpdateIpReputationRuleRequestBodyAction.js.map +1 -0
- package/v1/public-api.d.ts +29 -0
- package/v1/public-api.d.ts.map +1 -1
- package/v1/public-api.js +29 -0
- package/v1/public-api.js.map +1 -1
package/v1/WafClient.js
CHANGED
|
@@ -5,8 +5,13 @@ const ClientBuilder_1 = require("@huaweicloud/huaweicloud-sdk-core/ClientBuilder
|
|
|
5
5
|
const ApplyCertificateToHostRequest_1 = require("./model/ApplyCertificateToHostRequest");
|
|
6
6
|
const BatchDeletePoliciesRequest_1 = require("./model/BatchDeletePoliciesRequest");
|
|
7
7
|
const ChangePrepaidCloudWafRequest_1 = require("./model/ChangePrepaidCloudWafRequest");
|
|
8
|
+
const CheckAgencyRequest_1 = require("./model/CheckAgencyRequest");
|
|
8
9
|
const ConfirmApplicationTypesRequest_1 = require("./model/ConfirmApplicationTypesRequest");
|
|
9
10
|
const ConfirmAsyncJobRequest_1 = require("./model/ConfirmAsyncJobRequest");
|
|
11
|
+
const ConfirmIpReputationRuleRequest_1 = require("./model/ConfirmIpReputationRuleRequest");
|
|
12
|
+
const ConfirmPolicyAntileakageMapRequest_1 = require("./model/ConfirmPolicyAntileakageMapRequest");
|
|
13
|
+
const ConfirmPolicyIpReputationMapRequest_1 = require("./model/ConfirmPolicyIpReputationMapRequest");
|
|
14
|
+
const ConfirmProtectionTypesRequest_1 = require("./model/ConfirmProtectionTypesRequest");
|
|
10
15
|
const ConfirmThreatMapRequest_1 = require("./model/ConfirmThreatMapRequest");
|
|
11
16
|
const ConfirmTmsResourceInstancesRequest_1 = require("./model/ConfirmTmsResourceInstancesRequest");
|
|
12
17
|
const ConfirmUserBundleRequest_1 = require("./model/ConfirmUserBundleRequest");
|
|
@@ -22,6 +27,7 @@ const CreateHostRequest_1 = require("./model/CreateHostRequest");
|
|
|
22
27
|
const CreateIgnoreRuleRequest_1 = require("./model/CreateIgnoreRuleRequest");
|
|
23
28
|
const CreateInstanceRequest_1 = require("./model/CreateInstanceRequest");
|
|
24
29
|
const CreateIpGroupRequest_1 = require("./model/CreateIpGroupRequest");
|
|
30
|
+
const CreateIpReputationRuleRequest_1 = require("./model/CreateIpReputationRuleRequest");
|
|
25
31
|
const CreatePolicyRequest_1 = require("./model/CreatePolicyRequest");
|
|
26
32
|
const CreatePremiumHostRequest_1 = require("./model/CreatePremiumHostRequest");
|
|
27
33
|
const CreatePrepaidCloudWafRequest_1 = require("./model/CreatePrepaidCloudWafRequest");
|
|
@@ -84,6 +90,7 @@ const ListPunishmentRulesRequest_1 = require("./model/ListPunishmentRulesRequest
|
|
|
84
90
|
const ListQpsTimelineRequest_1 = require("./model/ListQpsTimelineRequest");
|
|
85
91
|
const ListRequestTimelineRequest_1 = require("./model/ListRequestTimelineRequest");
|
|
86
92
|
const ListResponseCodeTimelineRequest_1 = require("./model/ListResponseCodeTimelineRequest");
|
|
93
|
+
const ListSecurityReportHistoryPeriodsRequest_1 = require("./model/ListSecurityReportHistoryPeriodsRequest");
|
|
87
94
|
const ListSecurityReportSendingRecordsRequest_1 = require("./model/ListSecurityReportSendingRecordsRequest");
|
|
88
95
|
const ListSecurityReportSubscriptionsRequest_1 = require("./model/ListSecurityReportSubscriptionsRequest");
|
|
89
96
|
const ListStatisticsRequest_1 = require("./model/ListStatisticsRequest");
|
|
@@ -119,9 +126,11 @@ const ShowPremiumHostRequest_1 = require("./model/ShowPremiumHostRequest");
|
|
|
119
126
|
const ShowPrivacyRuleRequest_1 = require("./model/ShowPrivacyRuleRequest");
|
|
120
127
|
const ShowPunishmentRuleRequest_1 = require("./model/ShowPunishmentRuleRequest");
|
|
121
128
|
const ShowSecurityReportContentRequest_1 = require("./model/ShowSecurityReportContentRequest");
|
|
129
|
+
const ShowSecurityReportSubscriptionRequest_1 = require("./model/ShowSecurityReportSubscriptionRequest");
|
|
122
130
|
const ShowSourceIpRequest_1 = require("./model/ShowSourceIpRequest");
|
|
123
131
|
const ShowSubscriptionInfoRequest_1 = require("./model/ShowSubscriptionInfoRequest");
|
|
124
132
|
const ShowValueListRequest_1 = require("./model/ShowValueListRequest");
|
|
133
|
+
const ShowWebProtectionRuleRequest_1 = require("./model/ShowWebProtectionRuleRequest");
|
|
125
134
|
const ShowWhiteBlackIpRuleRequest_1 = require("./model/ShowWhiteBlackIpRuleRequest");
|
|
126
135
|
const UpdateAccessProgressRequest_1 = require("./model/UpdateAccessProgressRequest");
|
|
127
136
|
const UpdateAlertNoticeConfigRequest_1 = require("./model/UpdateAlertNoticeConfigRequest");
|
|
@@ -219,6 +228,22 @@ class WafClient {
|
|
|
219
228
|
options['responseHeaders'] = [''];
|
|
220
229
|
return this.hcClient.sendRequest(options);
|
|
221
230
|
}
|
|
231
|
+
/**
|
|
232
|
+
* 查询独享引擎的代理
|
|
233
|
+
*
|
|
234
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
235
|
+
*
|
|
236
|
+
* @summary 查询独享引擎代理
|
|
237
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
238
|
+
* @param {*} [options] Override http request option.
|
|
239
|
+
* @throws {RequiredError}
|
|
240
|
+
*/
|
|
241
|
+
checkAgency(checkAgencyRequest) {
|
|
242
|
+
const options = (0, exports.ParamCreater)().checkAgency(checkAgencyRequest);
|
|
243
|
+
// @ts-ignore
|
|
244
|
+
options['responseHeaders'] = [''];
|
|
245
|
+
return this.hcClient.sendRequest(options);
|
|
246
|
+
}
|
|
222
247
|
/**
|
|
223
248
|
* 按application规则类型获取内置规则类型
|
|
224
249
|
*
|
|
@@ -255,6 +280,77 @@ class WafClient {
|
|
|
255
280
|
options['responseHeaders'] = [''];
|
|
256
281
|
return this.hcClient.sendRequest(options);
|
|
257
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* 根据Id查询机房IP情报防护规则
|
|
285
|
+
*
|
|
286
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
287
|
+
*
|
|
288
|
+
* @summary 根据Id查询机房IP情报防护规则
|
|
289
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
290
|
+
* @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id,响应体的id字段 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
291
|
+
* @param {string} ruleId **参数解释:** 威胁情报规则ip,从接口 “查询威胁情报规则列表”(ListIpReputationRules)获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
292
|
+
* @param {*} [options] Override http request option.
|
|
293
|
+
* @throws {RequiredError}
|
|
294
|
+
*/
|
|
295
|
+
confirmIpReputationRule(confirmIpReputationRuleRequest) {
|
|
296
|
+
const options = (0, exports.ParamCreater)().confirmIpReputationRule(confirmIpReputationRuleRequest);
|
|
297
|
+
// @ts-ignore
|
|
298
|
+
options['responseHeaders'] = [''];
|
|
299
|
+
return this.hcClient.sendRequest(options);
|
|
300
|
+
}
|
|
301
|
+
/**
|
|
302
|
+
* 查询敏感信息选项的详细信息
|
|
303
|
+
*
|
|
304
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
305
|
+
*
|
|
306
|
+
* @summary 查询敏感信息选项的详细信息
|
|
307
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
308
|
+
* @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
|
|
309
|
+
* @param {*} [options] Override http request option.
|
|
310
|
+
* @throws {RequiredError}
|
|
311
|
+
*/
|
|
312
|
+
confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
|
|
313
|
+
const options = (0, exports.ParamCreater)().confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest);
|
|
314
|
+
// @ts-ignore
|
|
315
|
+
options['responseHeaders'] = [''];
|
|
316
|
+
return this.hcClient.sendRequest(options);
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* 查询威胁情报控制防护选项的详细信息
|
|
320
|
+
*
|
|
321
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
322
|
+
*
|
|
323
|
+
* @summary 查询威胁情报控制防护选项的详细信息
|
|
324
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
325
|
+
* @param {string} lang **参数解释:** 语言的类型 - cn代表中文 - en代表英文 **约束限制:** 不涉及 **取值范围:** - cn - en **默认取值:** - cn
|
|
326
|
+
* @param {string} type **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
327
|
+
* @param {*} [options] Override http request option.
|
|
328
|
+
* @throws {RequiredError}
|
|
329
|
+
*/
|
|
330
|
+
confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
|
|
331
|
+
const options = (0, exports.ParamCreater)().confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest);
|
|
332
|
+
// @ts-ignore
|
|
333
|
+
options['responseHeaders'] = [''];
|
|
334
|
+
return this.hcClient.sendRequest(options);
|
|
335
|
+
}
|
|
336
|
+
/**
|
|
337
|
+
* 按防护规则类型获取内置规则类型
|
|
338
|
+
*
|
|
339
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
340
|
+
*
|
|
341
|
+
* @summary 按防护规则类型获取内置规则类型
|
|
342
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
343
|
+
* @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
|
|
344
|
+
* @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
|
|
345
|
+
* @param {*} [options] Override http request option.
|
|
346
|
+
* @throws {RequiredError}
|
|
347
|
+
*/
|
|
348
|
+
confirmProtectionTypes(confirmProtectionTypesRequest) {
|
|
349
|
+
const options = (0, exports.ParamCreater)().confirmProtectionTypes(confirmProtectionTypesRequest);
|
|
350
|
+
// @ts-ignore
|
|
351
|
+
options['responseHeaders'] = [''];
|
|
352
|
+
return this.hcClient.sendRequest(options);
|
|
353
|
+
}
|
|
258
354
|
/**
|
|
259
355
|
* 查询告警可选事件类型
|
|
260
356
|
*
|
|
@@ -352,7 +448,7 @@ class WafClient {
|
|
|
352
448
|
* @summary 创建防敏感信息泄露规则
|
|
353
449
|
* @param {string} contentType 内容类型
|
|
354
450
|
* @param {string} policyId 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id
|
|
355
|
-
* @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody
|
|
451
|
+
* @param {CreateAntileakageRuleRequestBody} createAntileakageRuleRequestBody 创建防泄露规则请求参数
|
|
356
452
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
357
453
|
* @param {*} [options] Override http request option.
|
|
358
454
|
* @throws {RequiredError}
|
|
@@ -530,6 +626,25 @@ class WafClient {
|
|
|
530
626
|
options['responseHeaders'] = [''];
|
|
531
627
|
return this.hcClient.sendRequest(options);
|
|
532
628
|
}
|
|
629
|
+
/**
|
|
630
|
+
* 创建IP情报规则
|
|
631
|
+
*
|
|
632
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
633
|
+
*
|
|
634
|
+
* @summary 创建机房IP情报规则
|
|
635
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
636
|
+
* @param {string} policyId **参数解释:** 防护策略id,您可以通过调用查询防护策略列表(ListPolicy)获取策略id **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
637
|
+
* @param {CreateIpReputationRuleRequestBody} createIpReputationRuleRequestBody **参数解释:** 创建地理访问控制请求体 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
638
|
+
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
639
|
+
* @param {*} [options] Override http request option.
|
|
640
|
+
* @throws {RequiredError}
|
|
641
|
+
*/
|
|
642
|
+
createIpReputationRule(createIpReputationRuleRequest) {
|
|
643
|
+
const options = (0, exports.ParamCreater)().createIpReputationRule(createIpReputationRuleRequest);
|
|
644
|
+
// @ts-ignore
|
|
645
|
+
options['responseHeaders'] = [''];
|
|
646
|
+
return this.hcClient.sendRequest(options);
|
|
647
|
+
}
|
|
533
648
|
/**
|
|
534
649
|
* 创建防护策略,系统会在生成策略时配置一些默认的配置项,如果需要修改策略的默认配置项需要通过调用更新防护策略接口实现
|
|
535
650
|
*
|
|
@@ -549,11 +664,11 @@ class WafClient {
|
|
|
549
664
|
return this.hcClient.sendRequest(options);
|
|
550
665
|
}
|
|
551
666
|
/**
|
|
552
|
-
*
|
|
667
|
+
* 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
553
668
|
*
|
|
554
669
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
555
670
|
*
|
|
556
|
-
* @summary
|
|
671
|
+
* @summary 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
557
672
|
* @param {string} contentType 内容类型
|
|
558
673
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
559
674
|
* @param {CreatePremiumHostRequestBody} [createPremiumHostRequestBody] 创建独享模式域名的请求体
|
|
@@ -1036,11 +1151,11 @@ class WafClient {
|
|
|
1036
1151
|
return this.hcClient.sendRequest(options);
|
|
1037
1152
|
}
|
|
1038
1153
|
/**
|
|
1039
|
-
*
|
|
1154
|
+
* 查询所有策略防敏感信息泄露规则
|
|
1040
1155
|
*
|
|
1041
1156
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1042
1157
|
*
|
|
1043
|
-
* @summary
|
|
1158
|
+
* @summary 查询所有策略防敏感信息泄露规则
|
|
1044
1159
|
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
1045
1160
|
* @param {string} [policyids] **参数解释:** 域名id。 **约束限制:** 不涉及 **取值范围:** 只能由英文字母、数字组成,且长度为32个字符。 **默认取值:** 不涉及
|
|
1046
1161
|
* @param {string} [enterpriseProjectId] **参数解释:** 您可以通过调用企业项目管理服务(EPS)的查询企业项目列表接口(ListEnterpriseProject)查询企业项目ID。若需要查询当前用户所有企业项目绑定的资源信息,请传参all_granted_eps。 **约束限制:** 不涉及 **取值范围:** - 0:代表default企业项目 - all_granted_eps:代表所有企业项目 - 其它企业项目ID:长度为36个字符 **默认取值:** 0
|
|
@@ -1276,7 +1391,7 @@ class WafClient {
|
|
|
1276
1391
|
* @param {'yesterday' | 'today' | '3days' | '1week' | '1month'} [recent] 查询日志的时间范围(不能和from、to同时使用,同时使用以recent为准),且recent参数与from、to必须使用其中一个。当同时使用recent参数与from、to时,以recent参数为准
|
|
1277
1392
|
* @param {number} [from] 起始时间(13位时间戳),需要和to同时使用,不能和recent参数同时使用
|
|
1278
1393
|
* @param {number} [to] 结束时间(13位时间戳),需要和from同时使用,不能和recent参数同时使用
|
|
1279
|
-
* @param {Array<string>} [attacks]
|
|
1394
|
+
* @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:除上述攻击类型外的其他漏洞攻击 **默认取值:** 不涉及
|
|
1280
1395
|
* @param {Array<string>} [hosts] 域名id,从获取防护网站列表(ListHost)接口获取域名id
|
|
1281
1396
|
* @param {Array<string>} [sips] 源ip,Web访问者的IP地址(攻击者IP地址)
|
|
1282
1397
|
* @param {number} [page] 分页查询时,返回第几页数据。默认值为1,表示返回第1页数据。
|
|
@@ -1754,6 +1869,25 @@ class WafClient {
|
|
|
1754
1869
|
options['responseHeaders'] = [''];
|
|
1755
1870
|
return this.hcClient.sendRequest(options);
|
|
1756
1871
|
}
|
|
1872
|
+
/**
|
|
1873
|
+
* 查询安全报告历史统计周期列表
|
|
1874
|
+
*
|
|
1875
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
1876
|
+
*
|
|
1877
|
+
* @summary 查询安全报告历史统计周期列表
|
|
1878
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
1879
|
+
* @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
1880
|
+
* @param {number} [limit] **参数解释:** 分页查询的单页返回数量,控制每次请求返回的记录条数。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 10
|
|
1881
|
+
* @param {number} [offset] **参数解释:** 分页查询的起始位置,表示从第几条记录开始返回(从0开始计数)。 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 0
|
|
1882
|
+
* @param {*} [options] Override http request option.
|
|
1883
|
+
* @throws {RequiredError}
|
|
1884
|
+
*/
|
|
1885
|
+
listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
|
|
1886
|
+
const options = (0, exports.ParamCreater)().listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest);
|
|
1887
|
+
// @ts-ignore
|
|
1888
|
+
options['responseHeaders'] = [''];
|
|
1889
|
+
return this.hcClient.sendRequest(options);
|
|
1890
|
+
}
|
|
1757
1891
|
/**
|
|
1758
1892
|
* 查询安全报告发送记录
|
|
1759
1893
|
*
|
|
@@ -2433,6 +2567,23 @@ class WafClient {
|
|
|
2433
2567
|
options['responseHeaders'] = [''];
|
|
2434
2568
|
return this.hcClient.sendRequest(options);
|
|
2435
2569
|
}
|
|
2570
|
+
/**
|
|
2571
|
+
* 查询安全报告订阅
|
|
2572
|
+
*
|
|
2573
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2574
|
+
*
|
|
2575
|
+
* @summary 查询安全报告订阅
|
|
2576
|
+
* @param {string} subscriptionId **参数解释:** 需要查询的订阅id,从“查询安全报告订阅列表”中获取 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
2577
|
+
* @param {string} contentType **参数解释:** 内容类型 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** application/json;charset=utf8
|
|
2578
|
+
* @param {*} [options] Override http request option.
|
|
2579
|
+
* @throws {RequiredError}
|
|
2580
|
+
*/
|
|
2581
|
+
showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
|
|
2582
|
+
const options = (0, exports.ParamCreater)().showSecurityReportSubscription(showSecurityReportSubscriptionRequest);
|
|
2583
|
+
// @ts-ignore
|
|
2584
|
+
options['responseHeaders'] = [''];
|
|
2585
|
+
return this.hcClient.sendRequest(options);
|
|
2586
|
+
}
|
|
2436
2587
|
/**
|
|
2437
2588
|
* 查询WAF回源Ip信息
|
|
2438
2589
|
*
|
|
@@ -2773,14 +2924,7 @@ class WafClient {
|
|
|
2773
2924
|
return this.hcClient.sendRequest(options);
|
|
2774
2925
|
}
|
|
2775
2926
|
/**
|
|
2776
|
-
* **参数解释:**
|
|
2777
2927
|
* 更新云模式域名路由信息
|
|
2778
|
-
* **约束限制:**
|
|
2779
|
-
* 不涉及
|
|
2780
|
-
* **取值范围:**
|
|
2781
|
-
* 不涉及
|
|
2782
|
-
* **默认取值:**
|
|
2783
|
-
* 不涉及
|
|
2784
2928
|
*
|
|
2785
2929
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
2786
2930
|
*
|
|
@@ -3029,6 +3173,23 @@ class WafClient {
|
|
|
3029
3173
|
options['responseHeaders'] = [''];
|
|
3030
3174
|
return this.hcClient.sendRequest(options);
|
|
3031
3175
|
}
|
|
3176
|
+
/**
|
|
3177
|
+
* 根据Id查询Web防护规则
|
|
3178
|
+
*
|
|
3179
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3180
|
+
*
|
|
3181
|
+
* @summary 根据Id查询Web防护规则
|
|
3182
|
+
* @param {string} ruleId **参数解释:** 防护规则ID **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** 不涉及
|
|
3183
|
+
* @param {string} [xLanguage] **参数解释:** 语言 **约束限制:** 不涉及 **取值范围:** 不涉及 **默认取值:** zh-cn
|
|
3184
|
+
* @param {*} [options] Override http request option.
|
|
3185
|
+
* @throws {RequiredError}
|
|
3186
|
+
*/
|
|
3187
|
+
showWebProtectionRule(showWebProtectionRuleRequest) {
|
|
3188
|
+
const options = (0, exports.ParamCreater)().showWebProtectionRule(showWebProtectionRuleRequest);
|
|
3189
|
+
// @ts-ignore
|
|
3190
|
+
options['responseHeaders'] = [''];
|
|
3191
|
+
return this.hcClient.sendRequest(options);
|
|
3192
|
+
}
|
|
3032
3193
|
}
|
|
3033
3194
|
exports.WafClient = WafClient;
|
|
3034
3195
|
const ParamCreater = function () {
|
|
@@ -3181,6 +3342,36 @@ const ParamCreater = function () {
|
|
|
3181
3342
|
options.headers = localVarHeaderParameter;
|
|
3182
3343
|
return options;
|
|
3183
3344
|
},
|
|
3345
|
+
/**
|
|
3346
|
+
* 查询独享引擎的代理
|
|
3347
|
+
*
|
|
3348
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3349
|
+
*/
|
|
3350
|
+
checkAgency(checkAgencyRequest) {
|
|
3351
|
+
const options = {
|
|
3352
|
+
method: "GET",
|
|
3353
|
+
url: "/v1/{project_id}/premium-waf/agency",
|
|
3354
|
+
contentType: "application/json",
|
|
3355
|
+
queryParams: {},
|
|
3356
|
+
pathParams: {},
|
|
3357
|
+
headers: {}
|
|
3358
|
+
};
|
|
3359
|
+
const localVarHeaderParameter = {};
|
|
3360
|
+
let contentType;
|
|
3361
|
+
if (checkAgencyRequest !== null && checkAgencyRequest !== undefined) {
|
|
3362
|
+
if (checkAgencyRequest instanceof CheckAgencyRequest_1.CheckAgencyRequest) {
|
|
3363
|
+
contentType = checkAgencyRequest.contentType;
|
|
3364
|
+
}
|
|
3365
|
+
else {
|
|
3366
|
+
contentType = checkAgencyRequest['Content-Type'];
|
|
3367
|
+
}
|
|
3368
|
+
}
|
|
3369
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3370
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3371
|
+
}
|
|
3372
|
+
options.headers = localVarHeaderParameter;
|
|
3373
|
+
return options;
|
|
3374
|
+
},
|
|
3184
3375
|
/**
|
|
3185
3376
|
* 按application规则类型获取内置规则类型
|
|
3186
3377
|
*
|
|
@@ -3270,6 +3461,184 @@ const ParamCreater = function () {
|
|
|
3270
3461
|
options.headers = localVarHeaderParameter;
|
|
3271
3462
|
return options;
|
|
3272
3463
|
},
|
|
3464
|
+
/**
|
|
3465
|
+
* 根据Id查询机房IP情报防护规则
|
|
3466
|
+
*
|
|
3467
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3468
|
+
*/
|
|
3469
|
+
confirmIpReputationRule(confirmIpReputationRuleRequest) {
|
|
3470
|
+
const options = {
|
|
3471
|
+
method: "GET",
|
|
3472
|
+
url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation/{rule_id}",
|
|
3473
|
+
contentType: "application/json",
|
|
3474
|
+
queryParams: {},
|
|
3475
|
+
pathParams: {},
|
|
3476
|
+
headers: {}
|
|
3477
|
+
};
|
|
3478
|
+
const localVarHeaderParameter = {};
|
|
3479
|
+
let contentType;
|
|
3480
|
+
let policyId;
|
|
3481
|
+
let ruleId;
|
|
3482
|
+
if (confirmIpReputationRuleRequest !== null && confirmIpReputationRuleRequest !== undefined) {
|
|
3483
|
+
if (confirmIpReputationRuleRequest instanceof ConfirmIpReputationRuleRequest_1.ConfirmIpReputationRuleRequest) {
|
|
3484
|
+
contentType = confirmIpReputationRuleRequest.contentType;
|
|
3485
|
+
policyId = confirmIpReputationRuleRequest.policyId;
|
|
3486
|
+
ruleId = confirmIpReputationRuleRequest.ruleId;
|
|
3487
|
+
}
|
|
3488
|
+
else {
|
|
3489
|
+
contentType = confirmIpReputationRuleRequest['Content-Type'];
|
|
3490
|
+
policyId = confirmIpReputationRuleRequest['policy_id'];
|
|
3491
|
+
ruleId = confirmIpReputationRuleRequest['rule_id'];
|
|
3492
|
+
}
|
|
3493
|
+
}
|
|
3494
|
+
if (policyId === null || policyId === undefined) {
|
|
3495
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling confirmIpReputationRule.');
|
|
3496
|
+
}
|
|
3497
|
+
if (ruleId === null || ruleId === undefined) {
|
|
3498
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling confirmIpReputationRule.');
|
|
3499
|
+
}
|
|
3500
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3501
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3502
|
+
}
|
|
3503
|
+
options.pathParams = { 'policy_id': policyId, 'rule_id': ruleId, };
|
|
3504
|
+
options.headers = localVarHeaderParameter;
|
|
3505
|
+
return options;
|
|
3506
|
+
},
|
|
3507
|
+
/**
|
|
3508
|
+
* 查询敏感信息选项的详细信息
|
|
3509
|
+
*
|
|
3510
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3511
|
+
*/
|
|
3512
|
+
confirmPolicyAntileakageMap(confirmPolicyAntileakageMapRequest) {
|
|
3513
|
+
const options = {
|
|
3514
|
+
method: "GET",
|
|
3515
|
+
url: "/v1/{project_id}/waf/tag/antileakage/map",
|
|
3516
|
+
contentType: "application/json",
|
|
3517
|
+
queryParams: {},
|
|
3518
|
+
pathParams: {},
|
|
3519
|
+
headers: {}
|
|
3520
|
+
};
|
|
3521
|
+
const localVarHeaderParameter = {};
|
|
3522
|
+
const localVarQueryParameter = {};
|
|
3523
|
+
let contentType;
|
|
3524
|
+
let lang;
|
|
3525
|
+
if (confirmPolicyAntileakageMapRequest !== null && confirmPolicyAntileakageMapRequest !== undefined) {
|
|
3526
|
+
if (confirmPolicyAntileakageMapRequest instanceof ConfirmPolicyAntileakageMapRequest_1.ConfirmPolicyAntileakageMapRequest) {
|
|
3527
|
+
contentType = confirmPolicyAntileakageMapRequest.contentType;
|
|
3528
|
+
lang = confirmPolicyAntileakageMapRequest.lang;
|
|
3529
|
+
}
|
|
3530
|
+
else {
|
|
3531
|
+
contentType = confirmPolicyAntileakageMapRequest['Content-Type'];
|
|
3532
|
+
lang = confirmPolicyAntileakageMapRequest['lang'];
|
|
3533
|
+
}
|
|
3534
|
+
}
|
|
3535
|
+
if (lang === null || lang === undefined) {
|
|
3536
|
+
throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyAntileakageMap.');
|
|
3537
|
+
}
|
|
3538
|
+
if (lang !== null && lang !== undefined) {
|
|
3539
|
+
localVarQueryParameter['lang'] = lang;
|
|
3540
|
+
}
|
|
3541
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3542
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3543
|
+
}
|
|
3544
|
+
options.queryParams = localVarQueryParameter;
|
|
3545
|
+
options.headers = localVarHeaderParameter;
|
|
3546
|
+
return options;
|
|
3547
|
+
},
|
|
3548
|
+
/**
|
|
3549
|
+
* 查询威胁情报控制防护选项的详细信息
|
|
3550
|
+
*
|
|
3551
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3552
|
+
*/
|
|
3553
|
+
confirmPolicyIpReputationMap(confirmPolicyIpReputationMapRequest) {
|
|
3554
|
+
const options = {
|
|
3555
|
+
method: "GET",
|
|
3556
|
+
url: "/v1/{project_id}/waf/tag/ip-reputation/map",
|
|
3557
|
+
contentType: "application/json",
|
|
3558
|
+
queryParams: {},
|
|
3559
|
+
pathParams: {},
|
|
3560
|
+
headers: {}
|
|
3561
|
+
};
|
|
3562
|
+
const localVarHeaderParameter = {};
|
|
3563
|
+
const localVarQueryParameter = {};
|
|
3564
|
+
let contentType;
|
|
3565
|
+
let lang;
|
|
3566
|
+
let type;
|
|
3567
|
+
if (confirmPolicyIpReputationMapRequest !== null && confirmPolicyIpReputationMapRequest !== undefined) {
|
|
3568
|
+
if (confirmPolicyIpReputationMapRequest instanceof ConfirmPolicyIpReputationMapRequest_1.ConfirmPolicyIpReputationMapRequest) {
|
|
3569
|
+
contentType = confirmPolicyIpReputationMapRequest.contentType;
|
|
3570
|
+
lang = confirmPolicyIpReputationMapRequest.lang;
|
|
3571
|
+
type = confirmPolicyIpReputationMapRequest.type;
|
|
3572
|
+
}
|
|
3573
|
+
else {
|
|
3574
|
+
contentType = confirmPolicyIpReputationMapRequest['Content-Type'];
|
|
3575
|
+
lang = confirmPolicyIpReputationMapRequest['lang'];
|
|
3576
|
+
type = confirmPolicyIpReputationMapRequest['type'];
|
|
3577
|
+
}
|
|
3578
|
+
}
|
|
3579
|
+
if (lang === null || lang === undefined) {
|
|
3580
|
+
throw new RequiredError('lang', 'Required parameter lang was null or undefined when calling confirmPolicyIpReputationMap.');
|
|
3581
|
+
}
|
|
3582
|
+
if (lang !== null && lang !== undefined) {
|
|
3583
|
+
localVarQueryParameter['lang'] = lang;
|
|
3584
|
+
}
|
|
3585
|
+
if (type === null || type === undefined) {
|
|
3586
|
+
throw new RequiredError('type', 'Required parameter type was null or undefined when calling confirmPolicyIpReputationMap.');
|
|
3587
|
+
}
|
|
3588
|
+
if (type !== null && type !== undefined) {
|
|
3589
|
+
localVarQueryParameter['type'] = type;
|
|
3590
|
+
}
|
|
3591
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3592
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3593
|
+
}
|
|
3594
|
+
options.queryParams = localVarQueryParameter;
|
|
3595
|
+
options.headers = localVarHeaderParameter;
|
|
3596
|
+
return options;
|
|
3597
|
+
},
|
|
3598
|
+
/**
|
|
3599
|
+
* 按防护规则类型获取内置规则类型
|
|
3600
|
+
*
|
|
3601
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
3602
|
+
*/
|
|
3603
|
+
confirmProtectionTypes(confirmProtectionTypesRequest) {
|
|
3604
|
+
const options = {
|
|
3605
|
+
method: "GET",
|
|
3606
|
+
url: "/v1/{project_id}/waf/rules/protection-types",
|
|
3607
|
+
contentType: "application/json",
|
|
3608
|
+
queryParams: {},
|
|
3609
|
+
pathParams: {},
|
|
3610
|
+
headers: {}
|
|
3611
|
+
};
|
|
3612
|
+
const localVarHeaderParameter = {};
|
|
3613
|
+
const localVarQueryParameter = {};
|
|
3614
|
+
let contentType;
|
|
3615
|
+
let offset;
|
|
3616
|
+
let limit;
|
|
3617
|
+
if (confirmProtectionTypesRequest !== null && confirmProtectionTypesRequest !== undefined) {
|
|
3618
|
+
if (confirmProtectionTypesRequest instanceof ConfirmProtectionTypesRequest_1.ConfirmProtectionTypesRequest) {
|
|
3619
|
+
contentType = confirmProtectionTypesRequest.contentType;
|
|
3620
|
+
offset = confirmProtectionTypesRequest.offset;
|
|
3621
|
+
limit = confirmProtectionTypesRequest.limit;
|
|
3622
|
+
}
|
|
3623
|
+
else {
|
|
3624
|
+
contentType = confirmProtectionTypesRequest['Content-Type'];
|
|
3625
|
+
offset = confirmProtectionTypesRequest['offset'];
|
|
3626
|
+
limit = confirmProtectionTypesRequest['limit'];
|
|
3627
|
+
}
|
|
3628
|
+
}
|
|
3629
|
+
if (offset !== null && offset !== undefined) {
|
|
3630
|
+
localVarQueryParameter['offset'] = offset;
|
|
3631
|
+
}
|
|
3632
|
+
if (limit !== null && limit !== undefined) {
|
|
3633
|
+
localVarQueryParameter['limit'] = limit;
|
|
3634
|
+
}
|
|
3635
|
+
if (contentType !== undefined && contentType !== null) {
|
|
3636
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
3637
|
+
}
|
|
3638
|
+
options.queryParams = localVarQueryParameter;
|
|
3639
|
+
options.headers = localVarHeaderParameter;
|
|
3640
|
+
return options;
|
|
3641
|
+
},
|
|
3273
3642
|
/**
|
|
3274
3643
|
* 查询告警可选事件类型
|
|
3275
3644
|
*
|
|
@@ -4000,6 +4369,60 @@ const ParamCreater = function () {
|
|
|
4000
4369
|
options.headers = localVarHeaderParameter;
|
|
4001
4370
|
return options;
|
|
4002
4371
|
},
|
|
4372
|
+
/**
|
|
4373
|
+
* 创建IP情报规则
|
|
4374
|
+
*
|
|
4375
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4376
|
+
*/
|
|
4377
|
+
createIpReputationRule(createIpReputationRuleRequest) {
|
|
4378
|
+
const options = {
|
|
4379
|
+
method: "POST",
|
|
4380
|
+
url: "/v1/{project_id}/waf/policy/{policy_id}/ip-reputation",
|
|
4381
|
+
contentType: "application/json",
|
|
4382
|
+
queryParams: {},
|
|
4383
|
+
pathParams: {},
|
|
4384
|
+
headers: {},
|
|
4385
|
+
data: {}
|
|
4386
|
+
};
|
|
4387
|
+
const localVarHeaderParameter = {};
|
|
4388
|
+
const localVarQueryParameter = {};
|
|
4389
|
+
let body;
|
|
4390
|
+
let contentType;
|
|
4391
|
+
let policyId;
|
|
4392
|
+
let enterpriseProjectId;
|
|
4393
|
+
if (createIpReputationRuleRequest !== null && createIpReputationRuleRequest !== undefined) {
|
|
4394
|
+
if (createIpReputationRuleRequest instanceof CreateIpReputationRuleRequest_1.CreateIpReputationRuleRequest) {
|
|
4395
|
+
contentType = createIpReputationRuleRequest.contentType;
|
|
4396
|
+
policyId = createIpReputationRuleRequest.policyId;
|
|
4397
|
+
body = createIpReputationRuleRequest.body;
|
|
4398
|
+
enterpriseProjectId = createIpReputationRuleRequest.enterpriseProjectId;
|
|
4399
|
+
}
|
|
4400
|
+
else {
|
|
4401
|
+
contentType = createIpReputationRuleRequest['Content-Type'];
|
|
4402
|
+
policyId = createIpReputationRuleRequest['policy_id'];
|
|
4403
|
+
body = createIpReputationRuleRequest['body'];
|
|
4404
|
+
enterpriseProjectId = createIpReputationRuleRequest['enterprise_project_id'];
|
|
4405
|
+
}
|
|
4406
|
+
}
|
|
4407
|
+
if (policyId === null || policyId === undefined) {
|
|
4408
|
+
throw new RequiredError('policyId', 'Required parameter policyId was null or undefined when calling createIpReputationRule.');
|
|
4409
|
+
}
|
|
4410
|
+
if (body === null || body === undefined) {
|
|
4411
|
+
throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
|
|
4412
|
+
}
|
|
4413
|
+
if (enterpriseProjectId !== null && enterpriseProjectId !== undefined) {
|
|
4414
|
+
localVarQueryParameter['enterprise_project_id'] = enterpriseProjectId;
|
|
4415
|
+
}
|
|
4416
|
+
if (contentType !== undefined && contentType !== null) {
|
|
4417
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
4418
|
+
}
|
|
4419
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4420
|
+
options.data = body !== undefined ? body : {};
|
|
4421
|
+
options.queryParams = localVarQueryParameter;
|
|
4422
|
+
options.pathParams = { 'policy_id': policyId, };
|
|
4423
|
+
options.headers = localVarHeaderParameter;
|
|
4424
|
+
return options;
|
|
4425
|
+
},
|
|
4003
4426
|
/**
|
|
4004
4427
|
* 创建防护策略,系统会在生成策略时配置一些默认的配置项,如果需要修改策略的默认配置项需要通过调用更新防护策略接口实现
|
|
4005
4428
|
*
|
|
@@ -4048,7 +4471,7 @@ const ParamCreater = function () {
|
|
|
4048
4471
|
return options;
|
|
4049
4472
|
},
|
|
4050
4473
|
/**
|
|
4051
|
-
*
|
|
4474
|
+
* 创建独享模式域名或者创建云模式ELB接入模式域名
|
|
4052
4475
|
*
|
|
4053
4476
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
4054
4477
|
*/
|
|
@@ -5348,7 +5771,7 @@ const ParamCreater = function () {
|
|
|
5348
5771
|
return options;
|
|
5349
5772
|
},
|
|
5350
5773
|
/**
|
|
5351
|
-
*
|
|
5774
|
+
* 查询所有策略防敏感信息泄露规则
|
|
5352
5775
|
*
|
|
5353
5776
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
5354
5777
|
*/
|
|
@@ -7499,6 +7922,59 @@ const ParamCreater = function () {
|
|
|
7499
7922
|
options.headers = localVarHeaderParameter;
|
|
7500
7923
|
return options;
|
|
7501
7924
|
},
|
|
7925
|
+
/**
|
|
7926
|
+
* 查询安全报告历史统计周期列表
|
|
7927
|
+
*
|
|
7928
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
7929
|
+
*/
|
|
7930
|
+
listSecurityReportHistoryPeriods(listSecurityReportHistoryPeriodsRequest) {
|
|
7931
|
+
const options = {
|
|
7932
|
+
method: "GET",
|
|
7933
|
+
url: "/v1/{project_id}/waf/security-report/history-periods",
|
|
7934
|
+
contentType: "application/json",
|
|
7935
|
+
queryParams: {},
|
|
7936
|
+
pathParams: {},
|
|
7937
|
+
headers: {}
|
|
7938
|
+
};
|
|
7939
|
+
const localVarHeaderParameter = {};
|
|
7940
|
+
const localVarQueryParameter = {};
|
|
7941
|
+
let contentType;
|
|
7942
|
+
let subscriptionId;
|
|
7943
|
+
let limit;
|
|
7944
|
+
let offset;
|
|
7945
|
+
if (listSecurityReportHistoryPeriodsRequest !== null && listSecurityReportHistoryPeriodsRequest !== undefined) {
|
|
7946
|
+
if (listSecurityReportHistoryPeriodsRequest instanceof ListSecurityReportHistoryPeriodsRequest_1.ListSecurityReportHistoryPeriodsRequest) {
|
|
7947
|
+
contentType = listSecurityReportHistoryPeriodsRequest.contentType;
|
|
7948
|
+
subscriptionId = listSecurityReportHistoryPeriodsRequest.subscriptionId;
|
|
7949
|
+
limit = listSecurityReportHistoryPeriodsRequest.limit;
|
|
7950
|
+
offset = listSecurityReportHistoryPeriodsRequest.offset;
|
|
7951
|
+
}
|
|
7952
|
+
else {
|
|
7953
|
+
contentType = listSecurityReportHistoryPeriodsRequest['Content-Type'];
|
|
7954
|
+
subscriptionId = listSecurityReportHistoryPeriodsRequest['subscription_id'];
|
|
7955
|
+
limit = listSecurityReportHistoryPeriodsRequest['limit'];
|
|
7956
|
+
offset = listSecurityReportHistoryPeriodsRequest['offset'];
|
|
7957
|
+
}
|
|
7958
|
+
}
|
|
7959
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
7960
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling listSecurityReportHistoryPeriods.');
|
|
7961
|
+
}
|
|
7962
|
+
if (subscriptionId !== null && subscriptionId !== undefined) {
|
|
7963
|
+
localVarQueryParameter['subscription_id'] = subscriptionId;
|
|
7964
|
+
}
|
|
7965
|
+
if (limit !== null && limit !== undefined) {
|
|
7966
|
+
localVarQueryParameter['limit'] = limit;
|
|
7967
|
+
}
|
|
7968
|
+
if (offset !== null && offset !== undefined) {
|
|
7969
|
+
localVarQueryParameter['offset'] = offset;
|
|
7970
|
+
}
|
|
7971
|
+
if (contentType !== undefined && contentType !== null) {
|
|
7972
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
7973
|
+
}
|
|
7974
|
+
options.queryParams = localVarQueryParameter;
|
|
7975
|
+
options.headers = localVarHeaderParameter;
|
|
7976
|
+
return options;
|
|
7977
|
+
},
|
|
7502
7978
|
/**
|
|
7503
7979
|
* 查询安全报告发送记录
|
|
7504
7980
|
*
|
|
@@ -9392,6 +9868,43 @@ const ParamCreater = function () {
|
|
|
9392
9868
|
options.headers = localVarHeaderParameter;
|
|
9393
9869
|
return options;
|
|
9394
9870
|
},
|
|
9871
|
+
/**
|
|
9872
|
+
* 查询安全报告订阅
|
|
9873
|
+
*
|
|
9874
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
9875
|
+
*/
|
|
9876
|
+
showSecurityReportSubscription(showSecurityReportSubscriptionRequest) {
|
|
9877
|
+
const options = {
|
|
9878
|
+
method: "GET",
|
|
9879
|
+
url: "/v1/{project_id}/waf/security-report/subscriptions/{subscription_id}",
|
|
9880
|
+
contentType: "application/json",
|
|
9881
|
+
queryParams: {},
|
|
9882
|
+
pathParams: {},
|
|
9883
|
+
headers: {}
|
|
9884
|
+
};
|
|
9885
|
+
const localVarHeaderParameter = {};
|
|
9886
|
+
let subscriptionId;
|
|
9887
|
+
let contentType;
|
|
9888
|
+
if (showSecurityReportSubscriptionRequest !== null && showSecurityReportSubscriptionRequest !== undefined) {
|
|
9889
|
+
if (showSecurityReportSubscriptionRequest instanceof ShowSecurityReportSubscriptionRequest_1.ShowSecurityReportSubscriptionRequest) {
|
|
9890
|
+
subscriptionId = showSecurityReportSubscriptionRequest.subscriptionId;
|
|
9891
|
+
contentType = showSecurityReportSubscriptionRequest.contentType;
|
|
9892
|
+
}
|
|
9893
|
+
else {
|
|
9894
|
+
subscriptionId = showSecurityReportSubscriptionRequest['subscription_id'];
|
|
9895
|
+
contentType = showSecurityReportSubscriptionRequest['Content-Type'];
|
|
9896
|
+
}
|
|
9897
|
+
}
|
|
9898
|
+
if (subscriptionId === null || subscriptionId === undefined) {
|
|
9899
|
+
throw new RequiredError('subscriptionId', 'Required parameter subscriptionId was null or undefined when calling showSecurityReportSubscription.');
|
|
9900
|
+
}
|
|
9901
|
+
if (contentType !== undefined && contentType !== null) {
|
|
9902
|
+
localVarHeaderParameter['Content-Type'] = String(contentType);
|
|
9903
|
+
}
|
|
9904
|
+
options.pathParams = { 'subscription_id': subscriptionId, };
|
|
9905
|
+
options.headers = localVarHeaderParameter;
|
|
9906
|
+
return options;
|
|
9907
|
+
},
|
|
9395
9908
|
/**
|
|
9396
9909
|
* 查询WAF回源Ip信息
|
|
9397
9910
|
*
|
|
@@ -10308,14 +10821,7 @@ const ParamCreater = function () {
|
|
|
10308
10821
|
return options;
|
|
10309
10822
|
},
|
|
10310
10823
|
/**
|
|
10311
|
-
* **参数解释:**
|
|
10312
10824
|
* 更新云模式域名路由信息
|
|
10313
|
-
* **约束限制:**
|
|
10314
|
-
* 不涉及
|
|
10315
|
-
* **取值范围:**
|
|
10316
|
-
* 不涉及
|
|
10317
|
-
* **默认取值:**
|
|
10318
|
-
* 不涉及
|
|
10319
10825
|
*
|
|
10320
10826
|
* Please refer to HUAWEI cloud API Explorer for details.
|
|
10321
10827
|
*/
|
|
@@ -11018,6 +11524,43 @@ const ParamCreater = function () {
|
|
|
11018
11524
|
options.headers = localVarHeaderParameter;
|
|
11019
11525
|
return options;
|
|
11020
11526
|
},
|
|
11527
|
+
/**
|
|
11528
|
+
* 根据Id查询Web防护规则
|
|
11529
|
+
*
|
|
11530
|
+
* Please refer to HUAWEI cloud API Explorer for details.
|
|
11531
|
+
*/
|
|
11532
|
+
showWebProtectionRule(showWebProtectionRuleRequest) {
|
|
11533
|
+
const options = {
|
|
11534
|
+
method: "GET",
|
|
11535
|
+
url: "/v1/{project_id}/waf/web-protection-rules/{rule_id}",
|
|
11536
|
+
contentType: "application/json",
|
|
11537
|
+
queryParams: {},
|
|
11538
|
+
pathParams: {},
|
|
11539
|
+
headers: {}
|
|
11540
|
+
};
|
|
11541
|
+
const localVarHeaderParameter = {};
|
|
11542
|
+
let ruleId;
|
|
11543
|
+
let xLanguage;
|
|
11544
|
+
if (showWebProtectionRuleRequest !== null && showWebProtectionRuleRequest !== undefined) {
|
|
11545
|
+
if (showWebProtectionRuleRequest instanceof ShowWebProtectionRuleRequest_1.ShowWebProtectionRuleRequest) {
|
|
11546
|
+
ruleId = showWebProtectionRuleRequest.ruleId;
|
|
11547
|
+
xLanguage = showWebProtectionRuleRequest.xLanguage;
|
|
11548
|
+
}
|
|
11549
|
+
else {
|
|
11550
|
+
ruleId = showWebProtectionRuleRequest['rule_id'];
|
|
11551
|
+
xLanguage = showWebProtectionRuleRequest['X-Language'];
|
|
11552
|
+
}
|
|
11553
|
+
}
|
|
11554
|
+
if (ruleId === null || ruleId === undefined) {
|
|
11555
|
+
throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling showWebProtectionRule.');
|
|
11556
|
+
}
|
|
11557
|
+
if (xLanguage !== undefined && xLanguage !== null) {
|
|
11558
|
+
localVarHeaderParameter['X-Language'] = String(xLanguage);
|
|
11559
|
+
}
|
|
11560
|
+
options.pathParams = { 'rule_id': ruleId, };
|
|
11561
|
+
options.headers = localVarHeaderParameter;
|
|
11562
|
+
return options;
|
|
11563
|
+
},
|
|
11021
11564
|
};
|
|
11022
11565
|
};
|
|
11023
11566
|
exports.ParamCreater = ParamCreater;
|