@huaweicloud/huaweicloud-sdk-aad 3.1.175 → 3.1.177

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 (159) hide show
  1. package/package.json +2 -2
  2. package/v1/AadClient.d.ts +9 -5
  3. package/v1/AadClient.d.ts.map +1 -1
  4. package/v1/AadClient.js +49 -10
  5. package/v1/AadClient.js.map +1 -1
  6. package/v1/model/CreateDomainRequest.d.ts +7 -0
  7. package/v1/model/CreateDomainRequest.d.ts.map +1 -0
  8. package/v1/model/{CreateAadDomainRequest.js → CreateDomainRequest.js} +4 -4
  9. package/v1/model/CreateDomainRequest.js.map +1 -0
  10. package/v1/model/CreateDomainResponse.d.ts +9 -0
  11. package/v1/model/CreateDomainResponse.d.ts.map +1 -0
  12. package/v1/model/{CreateAadDomainResponse.js → CreateDomainResponse.js} +4 -4
  13. package/v1/model/CreateDomainResponse.js.map +1 -0
  14. package/v1/model/ListDomainRequest.d.ts +4 -0
  15. package/v1/model/ListDomainRequest.d.ts.map +1 -1
  16. package/v1/model/ListDomainRequest.js +8 -0
  17. package/v1/model/ListDomainRequest.js.map +1 -1
  18. package/v1/model/ListInstanceIpRuleRequest.d.ts +4 -0
  19. package/v1/model/ListInstanceIpRuleRequest.d.ts.map +1 -1
  20. package/v1/model/ListInstanceIpRuleRequest.js +8 -0
  21. package/v1/model/ListInstanceIpRuleRequest.js.map +1 -1
  22. package/v1/public-api.d.ts +2 -2
  23. package/v1/public-api.d.ts.map +1 -1
  24. package/v1/public-api.js +2 -2
  25. package/v1/public-api.js.map +1 -1
  26. package/v2/AadClient.d.ts +275 -0
  27. package/v2/AadClient.d.ts.map +1 -1
  28. package/v2/AadClient.js +578 -0
  29. package/v2/AadClient.js.map +1 -1
  30. package/v2/model/CipherInfo.d.ts +16 -0
  31. package/v2/model/CipherInfo.d.ts.map +1 -0
  32. package/v2/model/CipherInfo.js +41 -0
  33. package/v2/model/CipherInfo.js.map +1 -0
  34. package/v2/model/InstanceConfig.d.ts +10 -0
  35. package/v2/model/InstanceConfig.d.ts.map +1 -0
  36. package/v2/model/InstanceConfig.js +23 -0
  37. package/v2/model/InstanceConfig.js.map +1 -0
  38. package/v2/model/ListBlackHoleEventRecordItem.d.ts +34 -0
  39. package/v2/model/ListBlackHoleEventRecordItem.d.ts.map +1 -0
  40. package/v2/model/ListBlackHoleEventRecordItem.js +90 -0
  41. package/v2/model/ListBlackHoleEventRecordItem.js.map +1 -0
  42. package/v2/model/ListDDoSBlackHoleEventRequest.d.ts +14 -0
  43. package/v2/model/ListDDoSBlackHoleEventRequest.d.ts.map +1 -0
  44. package/v2/model/ListDDoSBlackHoleEventRequest.js +35 -0
  45. package/v2/model/ListDDoSBlackHoleEventRequest.js.map +1 -0
  46. package/v2/model/ListDDoSBlackHoleEventResponse.d.ts +8 -0
  47. package/v2/model/ListDDoSBlackHoleEventResponse.d.ts.map +1 -0
  48. package/v2/model/ListDDoSBlackHoleEventResponse.js +15 -0
  49. package/v2/model/ListDDoSBlackHoleEventResponse.js.map +1 -0
  50. package/v2/model/ListDDoSConnectionNumberRequest.d.ts +4 -0
  51. package/v2/model/ListDDoSConnectionNumberRequest.d.ts.map +1 -1
  52. package/v2/model/ListDDoSConnectionNumberRequest.js +8 -0
  53. package/v2/model/ListDDoSConnectionNumberRequest.js.map +1 -1
  54. package/v2/model/ListGlobalConfigRequest.d.ts +4 -0
  55. package/v2/model/ListGlobalConfigRequest.d.ts.map +1 -0
  56. package/v2/model/ListGlobalConfigRequest.js +9 -0
  57. package/v2/model/ListGlobalConfigRequest.js.map +1 -0
  58. package/v2/model/ListGlobalConfigResponse.d.ts +12 -0
  59. package/v2/model/ListGlobalConfigResponse.d.ts.map +1 -0
  60. package/v2/model/ListGlobalConfigResponse.js +25 -0
  61. package/v2/model/ListGlobalConfigResponse.js.map +1 -0
  62. package/v2/model/ListInstanceDomainsRequest.d.ts +4 -0
  63. package/v2/model/ListInstanceDomainsRequest.d.ts.map +1 -1
  64. package/v2/model/ListInstanceDomainsRequest.js +8 -0
  65. package/v2/model/ListInstanceDomainsRequest.js.map +1 -1
  66. package/v2/model/ListSourceIpRequest.d.ts +4 -0
  67. package/v2/model/ListSourceIpRequest.d.ts.map +1 -0
  68. package/v2/model/ListSourceIpRequest.js +9 -0
  69. package/v2/model/ListSourceIpRequest.js.map +1 -0
  70. package/v2/model/ListSourceIpResponse.d.ts +8 -0
  71. package/v2/model/ListSourceIpResponse.d.ts.map +1 -0
  72. package/v2/model/ListSourceIpResponse.js +15 -0
  73. package/v2/model/ListSourceIpResponse.js.map +1 -0
  74. package/v2/model/ListWafQpsRequest.d.ts +4 -0
  75. package/v2/model/ListWafQpsRequest.d.ts.map +1 -1
  76. package/v2/model/ListWafQpsRequest.js +8 -0
  77. package/v2/model/ListWafQpsRequest.js.map +1 -1
  78. package/v2/model/ProductSpecData.d.ts +60 -0
  79. package/v2/model/ProductSpecData.d.ts.map +1 -0
  80. package/v2/model/ProductSpecData.js +149 -0
  81. package/v2/model/ProductSpecData.js.map +1 -0
  82. package/v2/model/ShowAlarmConfigRequest.d.ts +4 -0
  83. package/v2/model/ShowAlarmConfigRequest.d.ts.map +1 -0
  84. package/v2/model/ShowAlarmConfigRequest.js +9 -0
  85. package/v2/model/ShowAlarmConfigRequest.js.map +1 -0
  86. package/v2/model/ShowAlarmConfigResponse.d.ts +17 -0
  87. package/v2/model/ShowAlarmConfigResponse.d.ts.map +1 -0
  88. package/v2/model/ShowAlarmConfigResponse.js +39 -0
  89. package/v2/model/ShowAlarmConfigResponse.js.map +1 -0
  90. package/v2/model/ShowDDoSPeakRequest.d.ts +18 -0
  91. package/v2/model/ShowDDoSPeakRequest.d.ts.map +1 -0
  92. package/v2/model/ShowDDoSPeakRequest.js +47 -0
  93. package/v2/model/ShowDDoSPeakRequest.js.map +1 -0
  94. package/v2/model/ShowDDoSPeakResponse.d.ts +31 -0
  95. package/v2/model/ShowDDoSPeakResponse.d.ts.map +1 -0
  96. package/v2/model/ShowDDoSPeakResponse.js +75 -0
  97. package/v2/model/ShowDDoSPeakResponse.js.map +1 -0
  98. package/v2/model/ShowDomainDetailRequest.d.ts +8 -0
  99. package/v2/model/ShowDomainDetailRequest.d.ts.map +1 -0
  100. package/v2/model/ShowDomainDetailRequest.js +20 -0
  101. package/v2/model/ShowDomainDetailRequest.js.map +1 -0
  102. package/v2/model/ShowDomainDetailResponse.d.ts +23 -0
  103. package/v2/model/ShowDomainDetailResponse.d.ts.map +1 -0
  104. package/v2/model/ShowDomainDetailResponse.js +55 -0
  105. package/v2/model/ShowDomainDetailResponse.js.map +1 -0
  106. package/v2/model/ShowDomainNameConfigRequest.d.ts +18 -0
  107. package/v2/model/ShowDomainNameConfigRequest.d.ts.map +1 -0
  108. package/v2/model/ShowDomainNameConfigRequest.js +34 -0
  109. package/v2/model/ShowDomainNameConfigRequest.js.map +1 -0
  110. package/v2/model/ShowDomainNameConfigResponse.d.ts +49 -0
  111. package/v2/model/ShowDomainNameConfigResponse.d.ts.map +1 -0
  112. package/v2/model/ShowDomainNameConfigResponse.js +119 -0
  113. package/v2/model/ShowDomainNameConfigResponse.js.map +1 -0
  114. package/v2/model/ShowInstanceByInstanceIdRequest.d.ts +8 -0
  115. package/v2/model/ShowInstanceByInstanceIdRequest.d.ts.map +1 -0
  116. package/v2/model/ShowInstanceByInstanceIdRequest.js +20 -0
  117. package/v2/model/ShowInstanceByInstanceIdRequest.js.map +1 -0
  118. package/v2/model/ShowInstanceByInstanceIdResponse.d.ts +41 -0
  119. package/v2/model/ShowInstanceByInstanceIdResponse.d.ts.map +1 -0
  120. package/v2/model/ShowInstanceByInstanceIdResponse.js +95 -0
  121. package/v2/model/ShowInstanceByInstanceIdResponse.js.map +1 -0
  122. package/v2/model/SourceIp.d.ts +12 -0
  123. package/v2/model/SourceIp.d.ts.map +1 -0
  124. package/v2/model/SourceIp.js +27 -0
  125. package/v2/model/SourceIp.js.map +1 -0
  126. package/v2/model/UpdateDomainConfigRequest.d.ts +11 -0
  127. package/v2/model/UpdateDomainConfigRequest.d.ts.map +1 -0
  128. package/v2/model/UpdateDomainConfigRequest.js +24 -0
  129. package/v2/model/UpdateDomainConfigRequest.js.map +1 -0
  130. package/v2/model/UpdateDomainConfigRequestBody.d.ts +36 -0
  131. package/v2/model/UpdateDomainConfigRequestBody.d.ts.map +1 -0
  132. package/v2/model/UpdateDomainConfigRequestBody.js +80 -0
  133. package/v2/model/UpdateDomainConfigRequestBody.js.map +1 -0
  134. package/v2/model/UpdateDomainConfigResponse.d.ts +7 -0
  135. package/v2/model/UpdateDomainConfigResponse.d.ts.map +1 -0
  136. package/v2/model/UpdateDomainConfigResponse.js +15 -0
  137. package/v2/model/UpdateDomainConfigResponse.js.map +1 -0
  138. package/v2/model/UpdateForwardRuleRequest.d.ts +17 -0
  139. package/v2/model/UpdateForwardRuleRequest.d.ts.map +1 -0
  140. package/v2/model/UpdateForwardRuleRequest.js +40 -0
  141. package/v2/model/UpdateForwardRuleRequest.js.map +1 -0
  142. package/v2/model/UpdateForwardRuleRequestBody.d.ts +8 -0
  143. package/v2/model/UpdateForwardRuleRequestBody.d.ts.map +1 -0
  144. package/v2/model/UpdateForwardRuleRequestBody.js +20 -0
  145. package/v2/model/UpdateForwardRuleRequestBody.js.map +1 -0
  146. package/v2/model/UpdateForwardRuleResponse.d.ts +7 -0
  147. package/v2/model/UpdateForwardRuleResponse.d.ts.map +1 -0
  148. package/v2/model/UpdateForwardRuleResponse.js +15 -0
  149. package/v2/model/UpdateForwardRuleResponse.js.map +1 -0
  150. package/v2/public-api.d.ts +27 -0
  151. package/v2/public-api.d.ts.map +1 -1
  152. package/v2/public-api.js +27 -0
  153. package/v2/public-api.js.map +1 -1
  154. package/v1/model/CreateAadDomainRequest.d.ts +0 -7
  155. package/v1/model/CreateAadDomainRequest.d.ts.map +0 -1
  156. package/v1/model/CreateAadDomainRequest.js.map +0 -1
  157. package/v1/model/CreateAadDomainResponse.d.ts +0 -9
  158. package/v1/model/CreateAadDomainResponse.d.ts.map +0 -1
  159. package/v1/model/CreateAadDomainResponse.js.map +0 -1
package/v2/AadClient.js CHANGED
@@ -7,6 +7,7 @@ const CreateDomainRequest_1 = require("./model/CreateDomainRequest");
7
7
  const DeleteDomainRequest_1 = require("./model/DeleteDomainRequest");
8
8
  const DeleteWafWhiteIpRuleRequest_1 = require("./model/DeleteWafWhiteIpRuleRequest");
9
9
  const ListDDoSAttackEventRequest_1 = require("./model/ListDDoSAttackEventRequest");
10
+ const ListDDoSBlackHoleEventRequest_1 = require("./model/ListDDoSBlackHoleEventRequest");
10
11
  const ListDDoSConnectionNumberRequest_1 = require("./model/ListDDoSConnectionNumberRequest");
11
12
  const ListDDoSFlowRequest_1 = require("./model/ListDDoSFlowRequest");
12
13
  const ListFrequencyControlRuleRequest_1 = require("./model/ListFrequencyControlRuleRequest");
@@ -18,10 +19,16 @@ const ListWafGeoIpRuleRequest_1 = require("./model/ListWafGeoIpRuleRequest");
18
19
  const ListWafQpsRequest_1 = require("./model/ListWafQpsRequest");
19
20
  const ListWafWhiteIpRuleRequest_1 = require("./model/ListWafWhiteIpRuleRequest");
20
21
  const ListWhiteBlackIpRuleRequest_1 = require("./model/ListWhiteBlackIpRuleRequest");
22
+ const ShowDDoSPeakRequest_1 = require("./model/ShowDDoSPeakRequest");
21
23
  const ShowDomainCertificateRequest_1 = require("./model/ShowDomainCertificateRequest");
24
+ const ShowDomainDetailRequest_1 = require("./model/ShowDomainDetailRequest");
25
+ const ShowDomainNameConfigRequest_1 = require("./model/ShowDomainNameConfigRequest");
22
26
  const ShowFlowBlockRequest_1 = require("./model/ShowFlowBlockRequest");
27
+ const ShowInstanceByInstanceIdRequest_1 = require("./model/ShowInstanceByInstanceIdRequest");
23
28
  const ShowWafPolicyRequest_1 = require("./model/ShowWafPolicyRequest");
24
29
  const ShowWafQpsRequest_1 = require("./model/ShowWafQpsRequest");
30
+ const UpdateDomainConfigRequest_1 = require("./model/UpdateDomainConfigRequest");
31
+ const UpdateForwardRuleRequest_1 = require("./model/UpdateForwardRuleRequest");
25
32
  const UpgradeInstanceSpecRequest_1 = require("./model/UpgradeInstanceSpecRequest");
26
33
  class AadClient {
27
34
  static newBuilder() {
@@ -115,6 +122,24 @@ class AadClient {
115
122
  options['responseHeaders'] = [''];
116
123
  return this.hcClient.sendRequest(options);
117
124
  }
125
+ /**
126
+ * 黑洞事件列表
127
+ *
128
+ * Please refer to HUAWEI cloud API Explorer for details.
129
+ *
130
+ * @summary 黑洞事件列表
131
+ * @param {string} startTime 开始时间(毫秒时间戳)
132
+ * @param {string} endTime 结束时间(毫秒时间戳)
133
+ * @param {string} [ip] 高防IP
134
+ * @param {*} [options] Override http request option.
135
+ * @throws {RequiredError}
136
+ */
137
+ listDDoSBlackHoleEvent(listDDoSBlackHoleEventRequest) {
138
+ const options = (0, exports.ParamCreater)().listDDoSBlackHoleEvent(listDDoSBlackHoleEventRequest);
139
+ // @ts-ignore
140
+ options['responseHeaders'] = [''];
141
+ return this.hcClient.sendRequest(options);
142
+ }
118
143
  /**
119
144
  * 查询新建连接数和并发连接数
120
145
  *
@@ -125,6 +150,8 @@ class AadClient {
125
150
  * @param {string} endTime 结束时间(毫秒时间戳)
126
151
  * @param {string} instanceId 实例id
127
152
  * @param {string} ip 高防ip
153
+ * @param {number} [limit] 限制条数
154
+ * @param {number} [offset] 偏移量
128
155
  * @param {*} [options] Override http request option.
129
156
  * @throws {RequiredError}
130
157
  */
@@ -170,6 +197,21 @@ class AadClient {
170
197
  options['responseHeaders'] = [''];
171
198
  return this.hcClient.sendRequest(options);
172
199
  }
200
+ /**
201
+ * 查询控制台WAF全局配置
202
+ *
203
+ * Please refer to HUAWEI cloud API Explorer for details.
204
+ *
205
+ * @summary 查询控制台WAF全局配置
206
+ * @param {*} [options] Override http request option.
207
+ * @throws {RequiredError}
208
+ */
209
+ listGlobalConfig(listGlobalConfigRequest) {
210
+ const options = (0, exports.ParamCreater)().listGlobalConfig();
211
+ // @ts-ignore
212
+ options['responseHeaders'] = [''];
213
+ return this.hcClient.sendRequest(options);
214
+ }
173
215
  /**
174
216
  * 查询实例关联的域名信息
175
217
  *
@@ -177,6 +219,8 @@ class AadClient {
177
219
  *
178
220
  * @summary 查询实例关联的域名信息
179
221
  * @param {string} instanceId 实例id
222
+ * @param {number} [limit] 限制条数
223
+ * @param {number} [offset] 偏移量
180
224
  * @param {*} [options] Override http request option.
181
225
  * @throws {RequiredError}
182
226
  */
@@ -186,6 +230,21 @@ class AadClient {
186
230
  options['responseHeaders'] = [''];
187
231
  return this.hcClient.sendRequest(options);
188
232
  }
233
+ /**
234
+ * 查询回源ip列表
235
+ *
236
+ * Please refer to HUAWEI cloud API Explorer for details.
237
+ *
238
+ * @summary 查询回源ip列表
239
+ * @param {*} [options] Override http request option.
240
+ * @throws {RequiredError}
241
+ */
242
+ listSourceIp(listSourceIpRequest) {
243
+ const options = (0, exports.ParamCreater)().listSourceIp();
244
+ // @ts-ignore
245
+ options['responseHeaders'] = [''];
246
+ return this.hcClient.sendRequest(options);
247
+ }
189
248
  /**
190
249
  * 查询攻击事件列表
191
250
  *
@@ -276,6 +335,8 @@ class AadClient {
276
335
  * @param {string} [endTime] 结束时间(毫秒时间戳)
277
336
  * @param {string} [recent] 枚举值:yesterday,today,3days,1week,1month 与开始结束时间不同时为空
278
337
  * @param {number} [overseasType] 实例类型,0-大陆,1-海外
338
+ * @param {number} [limit] 限制条数
339
+ * @param {number} [offset] 偏移量
279
340
  * @param {*} [options] Override http request option.
280
341
  * @throws {RequiredError}
281
342
  */
@@ -319,6 +380,40 @@ class AadClient {
319
380
  options['responseHeaders'] = [''];
320
381
  return this.hcClient.sendRequest(options);
321
382
  }
383
+ /**
384
+ * 查询告警设置
385
+ *
386
+ * Please refer to HUAWEI cloud API Explorer for details.
387
+ *
388
+ * @summary 查询告警设置
389
+ * @param {*} [options] Override http request option.
390
+ * @throws {RequiredError}
391
+ */
392
+ showAlarmConfig(showAlarmConfigRequest) {
393
+ const options = (0, exports.ParamCreater)().showAlarmConfig();
394
+ // @ts-ignore
395
+ options['responseHeaders'] = [''];
396
+ return this.hcClient.sendRequest(options);
397
+ }
398
+ /**
399
+ * 查询高防入流量峰值、攻击流量峰值、DDoS攻击次数
400
+ *
401
+ * Please refer to HUAWEI cloud API Explorer for details.
402
+ *
403
+ * @summary 查询高防入流量峰值、攻击流量峰值、DDoS攻击次数
404
+ * @param {string} startTime 开始时间(毫秒时间戳)
405
+ * @param {string} endTime 结束时间(毫秒时间戳)
406
+ * @param {string} instanceId 实例id
407
+ * @param {string} ip 高防IP
408
+ * @param {*} [options] Override http request option.
409
+ * @throws {RequiredError}
410
+ */
411
+ showDDoSPeak(showDDoSPeakRequest) {
412
+ const options = (0, exports.ParamCreater)().showDDoSPeak(showDDoSPeakRequest);
413
+ // @ts-ignore
414
+ options['responseHeaders'] = [''];
415
+ return this.hcClient.sendRequest(options);
416
+ }
322
417
  /**
323
418
  * 查询域名关联的证书信息
324
419
  *
@@ -335,6 +430,39 @@ class AadClient {
335
430
  options['responseHeaders'] = [''];
336
431
  return this.hcClient.sendRequest(options);
337
432
  }
433
+ /**
434
+ * 查询域名详情
435
+ *
436
+ * Please refer to HUAWEI cloud API Explorer for details.
437
+ *
438
+ * @summary 查询域名详情
439
+ * @param {string} domainId 域名ID
440
+ * @param {*} [options] Override http request option.
441
+ * @throws {RequiredError}
442
+ */
443
+ showDomainDetail(showDomainDetailRequest) {
444
+ const options = (0, exports.ParamCreater)().showDomainDetail(showDomainDetailRequest);
445
+ // @ts-ignore
446
+ options['responseHeaders'] = [''];
447
+ return this.hcClient.sendRequest(options);
448
+ }
449
+ /**
450
+ * 查看域名配置
451
+ *
452
+ * Please refer to HUAWEI cloud API Explorer for details.
453
+ *
454
+ * @summary 查看域名配置
455
+ * @param {string} domainId 域名id
456
+ * @param {'DOMAIN' | 'WAF'} type 请求类型 domain、waf
457
+ * @param {*} [options] Override http request option.
458
+ * @throws {RequiredError}
459
+ */
460
+ showDomainNameConfig(showDomainNameConfigRequest) {
461
+ const options = (0, exports.ParamCreater)().showDomainNameConfig(showDomainNameConfigRequest);
462
+ // @ts-ignore
463
+ options['responseHeaders'] = [''];
464
+ return this.hcClient.sendRequest(options);
465
+ }
338
466
  /**
339
467
  * 查询流量封禁信息
340
468
  *
@@ -351,6 +479,22 @@ class AadClient {
351
479
  options['responseHeaders'] = [''];
352
480
  return this.hcClient.sendRequest(options);
353
481
  }
482
+ /**
483
+ * 查询实例详情
484
+ *
485
+ * Please refer to HUAWEI cloud API Explorer for details.
486
+ *
487
+ * @summary 查询实例详情
488
+ * @param {string} instanceId 实例id
489
+ * @param {*} [options] Override http request option.
490
+ * @throws {RequiredError}
491
+ */
492
+ showInstanceByInstanceId(showInstanceByInstanceIdRequest) {
493
+ const options = (0, exports.ParamCreater)().showInstanceByInstanceId(showInstanceByInstanceIdRequest);
494
+ // @ts-ignore
495
+ options['responseHeaders'] = [''];
496
+ return this.hcClient.sendRequest(options);
497
+ }
354
498
  /**
355
499
  * 查询WEB防护策略配置
356
500
  *
@@ -388,6 +532,42 @@ class AadClient {
388
532
  options['responseHeaders'] = [''];
389
533
  return this.hcClient.sendRequest(options);
390
534
  }
535
+ /**
536
+ * 修改域名配置
537
+ *
538
+ * Please refer to HUAWEI cloud API Explorer for details.
539
+ *
540
+ * @summary 修改域名配置
541
+ * @param {string} domainId 域名id
542
+ * @param {UpdateDomainConfigRequestBody} updateDomainConfigRequestBody 防护域名信息
543
+ * @param {*} [options] Override http request option.
544
+ * @throws {RequiredError}
545
+ */
546
+ updateDomainConfig(updateDomainConfigRequest) {
547
+ const options = (0, exports.ParamCreater)().updateDomainConfig(updateDomainConfigRequest);
548
+ // @ts-ignore
549
+ options['responseHeaders'] = [''];
550
+ return this.hcClient.sendRequest(options);
551
+ }
552
+ /**
553
+ * 修改转发规则中的源站IP
554
+ *
555
+ * Please refer to HUAWEI cloud API Explorer for details.
556
+ *
557
+ * @summary 修改转发规则中的源站IP
558
+ * @param {string} instanceId 实例id
559
+ * @param {string} ruleId 规则id
560
+ * @param {string} ip 高防ip
561
+ * @param {UpdateForwardRuleRequestBody} updateForwardRuleRequestBody 修改转发规则信息
562
+ * @param {*} [options] Override http request option.
563
+ * @throws {RequiredError}
564
+ */
565
+ updateForwardRule(updateForwardRuleRequest) {
566
+ const options = (0, exports.ParamCreater)().updateForwardRule(updateForwardRuleRequest);
567
+ // @ts-ignore
568
+ options['responseHeaders'] = [''];
569
+ return this.hcClient.sendRequest(options);
570
+ }
391
571
  /**
392
572
  * 修改实例规格
393
573
  *
@@ -577,6 +757,56 @@ const ParamCreater = function () {
577
757
  options.headers = localVarHeaderParameter;
578
758
  return options;
579
759
  },
760
+ /**
761
+ * 黑洞事件列表
762
+ *
763
+ * Please refer to HUAWEI cloud API Explorer for details.
764
+ */
765
+ listDDoSBlackHoleEvent(listDDoSBlackHoleEventRequest) {
766
+ const options = {
767
+ method: "GET",
768
+ url: "/v2/aad/instances/ddos-info/attack/blackhole-event",
769
+ contentType: "application/json",
770
+ queryParams: {},
771
+ pathParams: {},
772
+ headers: {}
773
+ };
774
+ const localVarHeaderParameter = {};
775
+ const localVarQueryParameter = {};
776
+ let startTime;
777
+ let endTime;
778
+ let ip;
779
+ if (listDDoSBlackHoleEventRequest !== null && listDDoSBlackHoleEventRequest !== undefined) {
780
+ if (listDDoSBlackHoleEventRequest instanceof ListDDoSBlackHoleEventRequest_1.ListDDoSBlackHoleEventRequest) {
781
+ startTime = listDDoSBlackHoleEventRequest.startTime;
782
+ endTime = listDDoSBlackHoleEventRequest.endTime;
783
+ ip = listDDoSBlackHoleEventRequest.ip;
784
+ }
785
+ else {
786
+ startTime = listDDoSBlackHoleEventRequest['start_time'];
787
+ endTime = listDDoSBlackHoleEventRequest['end_time'];
788
+ ip = listDDoSBlackHoleEventRequest['ip'];
789
+ }
790
+ }
791
+ if (startTime === null || startTime === undefined) {
792
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling listDDoSBlackHoleEvent.');
793
+ }
794
+ if (startTime !== null && startTime !== undefined) {
795
+ localVarQueryParameter['start_time'] = startTime;
796
+ }
797
+ if (endTime === null || endTime === undefined) {
798
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling listDDoSBlackHoleEvent.');
799
+ }
800
+ if (endTime !== null && endTime !== undefined) {
801
+ localVarQueryParameter['end_time'] = endTime;
802
+ }
803
+ if (ip !== null && ip !== undefined) {
804
+ localVarQueryParameter['ip'] = ip;
805
+ }
806
+ options.queryParams = localVarQueryParameter;
807
+ options.headers = localVarHeaderParameter;
808
+ return options;
809
+ },
580
810
  /**
581
811
  * 查询新建连接数和并发连接数
582
812
  *
@@ -597,18 +827,24 @@ const ParamCreater = function () {
597
827
  let endTime;
598
828
  let instanceId;
599
829
  let ip;
830
+ let limit;
831
+ let offset;
600
832
  if (listDDoSConnectionNumberRequest !== null && listDDoSConnectionNumberRequest !== undefined) {
601
833
  if (listDDoSConnectionNumberRequest instanceof ListDDoSConnectionNumberRequest_1.ListDDoSConnectionNumberRequest) {
602
834
  startTime = listDDoSConnectionNumberRequest.startTime;
603
835
  endTime = listDDoSConnectionNumberRequest.endTime;
604
836
  instanceId = listDDoSConnectionNumberRequest.instanceId;
605
837
  ip = listDDoSConnectionNumberRequest.ip;
838
+ limit = listDDoSConnectionNumberRequest.limit;
839
+ offset = listDDoSConnectionNumberRequest.offset;
606
840
  }
607
841
  else {
608
842
  startTime = listDDoSConnectionNumberRequest['start_time'];
609
843
  endTime = listDDoSConnectionNumberRequest['end_time'];
610
844
  instanceId = listDDoSConnectionNumberRequest['instance_id'];
611
845
  ip = listDDoSConnectionNumberRequest['ip'];
846
+ limit = listDDoSConnectionNumberRequest['limit'];
847
+ offset = listDDoSConnectionNumberRequest['offset'];
612
848
  }
613
849
  }
614
850
  if (startTime === null || startTime === undefined) {
@@ -632,6 +868,12 @@ const ParamCreater = function () {
632
868
  if (ip !== null && ip !== undefined) {
633
869
  localVarQueryParameter['ip'] = ip;
634
870
  }
871
+ if (limit !== null && limit !== undefined) {
872
+ localVarQueryParameter['limit'] = limit;
873
+ }
874
+ if (offset !== null && offset !== undefined) {
875
+ localVarQueryParameter['offset'] = offset;
876
+ }
635
877
  options.queryParams = localVarQueryParameter;
636
878
  options.pathParams = { 'instance_id': instanceId, };
637
879
  options.headers = localVarHeaderParameter;
@@ -741,6 +983,24 @@ const ParamCreater = function () {
741
983
  options.headers = localVarHeaderParameter;
742
984
  return options;
743
985
  },
986
+ /**
987
+ * 查询控制台WAF全局配置
988
+ *
989
+ * Please refer to HUAWEI cloud API Explorer for details.
990
+ */
991
+ listGlobalConfig() {
992
+ const options = {
993
+ method: "GET",
994
+ url: "/v2/aad/domains/global-config",
995
+ contentType: "application/json",
996
+ queryParams: {},
997
+ pathParams: {},
998
+ headers: {}
999
+ };
1000
+ const localVarHeaderParameter = {};
1001
+ options.headers = localVarHeaderParameter;
1002
+ return options;
1003
+ },
744
1004
  /**
745
1005
  * 查询实例关联的域名信息
746
1006
  *
@@ -756,22 +1016,54 @@ const ParamCreater = function () {
756
1016
  headers: {}
757
1017
  };
758
1018
  const localVarHeaderParameter = {};
1019
+ const localVarQueryParameter = {};
759
1020
  let instanceId;
1021
+ let limit;
1022
+ let offset;
760
1023
  if (listInstanceDomainsRequest !== null && listInstanceDomainsRequest !== undefined) {
761
1024
  if (listInstanceDomainsRequest instanceof ListInstanceDomainsRequest_1.ListInstanceDomainsRequest) {
762
1025
  instanceId = listInstanceDomainsRequest.instanceId;
1026
+ limit = listInstanceDomainsRequest.limit;
1027
+ offset = listInstanceDomainsRequest.offset;
763
1028
  }
764
1029
  else {
765
1030
  instanceId = listInstanceDomainsRequest['instance_id'];
1031
+ limit = listInstanceDomainsRequest['limit'];
1032
+ offset = listInstanceDomainsRequest['offset'];
766
1033
  }
767
1034
  }
768
1035
  if (instanceId === null || instanceId === undefined) {
769
1036
  throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling listInstanceDomains.');
770
1037
  }
1038
+ if (limit !== null && limit !== undefined) {
1039
+ localVarQueryParameter['limit'] = limit;
1040
+ }
1041
+ if (offset !== null && offset !== undefined) {
1042
+ localVarQueryParameter['offset'] = offset;
1043
+ }
1044
+ options.queryParams = localVarQueryParameter;
771
1045
  options.pathParams = { 'instance_id': instanceId, };
772
1046
  options.headers = localVarHeaderParameter;
773
1047
  return options;
774
1048
  },
1049
+ /**
1050
+ * 查询回源ip列表
1051
+ *
1052
+ * Please refer to HUAWEI cloud API Explorer for details.
1053
+ */
1054
+ listSourceIp() {
1055
+ const options = {
1056
+ method: "GET",
1057
+ url: "/v2/aad/source-ip",
1058
+ contentType: "application/json",
1059
+ queryParams: {},
1060
+ pathParams: {},
1061
+ headers: {}
1062
+ };
1063
+ const localVarHeaderParameter = {};
1064
+ options.headers = localVarHeaderParameter;
1065
+ return options;
1066
+ },
775
1067
  /**
776
1068
  * 查询攻击事件列表
777
1069
  *
@@ -1021,6 +1313,8 @@ const ParamCreater = function () {
1021
1313
  let endTime;
1022
1314
  let recent;
1023
1315
  let overseasType;
1316
+ let limit;
1317
+ let offset;
1024
1318
  if (listWafQpsRequest !== null && listWafQpsRequest !== undefined) {
1025
1319
  if (listWafQpsRequest instanceof ListWafQpsRequest_1.ListWafQpsRequest) {
1026
1320
  valueType = listWafQpsRequest.valueType;
@@ -1029,6 +1323,8 @@ const ParamCreater = function () {
1029
1323
  endTime = listWafQpsRequest.endTime;
1030
1324
  recent = listWafQpsRequest.recent;
1031
1325
  overseasType = listWafQpsRequest.overseasType;
1326
+ limit = listWafQpsRequest.limit;
1327
+ offset = listWafQpsRequest.offset;
1032
1328
  }
1033
1329
  else {
1034
1330
  valueType = listWafQpsRequest['value_type'];
@@ -1037,6 +1333,8 @@ const ParamCreater = function () {
1037
1333
  endTime = listWafQpsRequest['end_time'];
1038
1334
  recent = listWafQpsRequest['recent'];
1039
1335
  overseasType = listWafQpsRequest['overseas_type'];
1336
+ limit = listWafQpsRequest['limit'];
1337
+ offset = listWafQpsRequest['offset'];
1040
1338
  }
1041
1339
  }
1042
1340
  if (valueType === null || valueType === undefined) {
@@ -1060,6 +1358,12 @@ const ParamCreater = function () {
1060
1358
  if (overseasType !== null && overseasType !== undefined) {
1061
1359
  localVarQueryParameter['overseas_type'] = overseasType;
1062
1360
  }
1361
+ if (limit !== null && limit !== undefined) {
1362
+ localVarQueryParameter['limit'] = limit;
1363
+ }
1364
+ if (offset !== null && offset !== undefined) {
1365
+ localVarQueryParameter['offset'] = offset;
1366
+ }
1063
1367
  options.queryParams = localVarQueryParameter;
1064
1368
  options.headers = localVarHeaderParameter;
1065
1369
  return options;
@@ -1152,6 +1456,84 @@ const ParamCreater = function () {
1152
1456
  options.headers = localVarHeaderParameter;
1153
1457
  return options;
1154
1458
  },
1459
+ /**
1460
+ * 查询告警设置
1461
+ *
1462
+ * Please refer to HUAWEI cloud API Explorer for details.
1463
+ */
1464
+ showAlarmConfig() {
1465
+ const options = {
1466
+ method: "GET",
1467
+ url: "/v2/aad/alarm",
1468
+ contentType: "application/json",
1469
+ queryParams: {},
1470
+ pathParams: {},
1471
+ headers: {}
1472
+ };
1473
+ const localVarHeaderParameter = {};
1474
+ options.headers = localVarHeaderParameter;
1475
+ return options;
1476
+ },
1477
+ /**
1478
+ * 查询高防入流量峰值、攻击流量峰值、DDoS攻击次数
1479
+ *
1480
+ * Please refer to HUAWEI cloud API Explorer for details.
1481
+ */
1482
+ showDDoSPeak(showDDoSPeakRequest) {
1483
+ const options = {
1484
+ method: "GET",
1485
+ url: "/v2/aad/instances/{instance_id}/ddos-info/flow/peak",
1486
+ contentType: "application/json",
1487
+ queryParams: {},
1488
+ pathParams: {},
1489
+ headers: {}
1490
+ };
1491
+ const localVarHeaderParameter = {};
1492
+ const localVarQueryParameter = {};
1493
+ let startTime;
1494
+ let endTime;
1495
+ let instanceId;
1496
+ let ip;
1497
+ if (showDDoSPeakRequest !== null && showDDoSPeakRequest !== undefined) {
1498
+ if (showDDoSPeakRequest instanceof ShowDDoSPeakRequest_1.ShowDDoSPeakRequest) {
1499
+ startTime = showDDoSPeakRequest.startTime;
1500
+ endTime = showDDoSPeakRequest.endTime;
1501
+ instanceId = showDDoSPeakRequest.instanceId;
1502
+ ip = showDDoSPeakRequest.ip;
1503
+ }
1504
+ else {
1505
+ startTime = showDDoSPeakRequest['start_time'];
1506
+ endTime = showDDoSPeakRequest['end_time'];
1507
+ instanceId = showDDoSPeakRequest['instance_id'];
1508
+ ip = showDDoSPeakRequest['ip'];
1509
+ }
1510
+ }
1511
+ if (startTime === null || startTime === undefined) {
1512
+ throw new RequiredError('startTime', 'Required parameter startTime was null or undefined when calling showDDoSPeak.');
1513
+ }
1514
+ if (startTime !== null && startTime !== undefined) {
1515
+ localVarQueryParameter['start_time'] = startTime;
1516
+ }
1517
+ if (endTime === null || endTime === undefined) {
1518
+ throw new RequiredError('endTime', 'Required parameter endTime was null or undefined when calling showDDoSPeak.');
1519
+ }
1520
+ if (endTime !== null && endTime !== undefined) {
1521
+ localVarQueryParameter['end_time'] = endTime;
1522
+ }
1523
+ if (instanceId === null || instanceId === undefined) {
1524
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showDDoSPeak.');
1525
+ }
1526
+ if (ip === null || ip === undefined) {
1527
+ throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling showDDoSPeak.');
1528
+ }
1529
+ if (ip !== null && ip !== undefined) {
1530
+ localVarQueryParameter['ip'] = ip;
1531
+ }
1532
+ options.queryParams = localVarQueryParameter;
1533
+ options.pathParams = { 'instance_id': instanceId, };
1534
+ options.headers = localVarHeaderParameter;
1535
+ return options;
1536
+ },
1155
1537
  /**
1156
1538
  * 查询域名关联的证书信息
1157
1539
  *
@@ -1183,6 +1565,79 @@ const ParamCreater = function () {
1183
1565
  options.headers = localVarHeaderParameter;
1184
1566
  return options;
1185
1567
  },
1568
+ /**
1569
+ * 查询域名详情
1570
+ *
1571
+ * Please refer to HUAWEI cloud API Explorer for details.
1572
+ */
1573
+ showDomainDetail(showDomainDetailRequest) {
1574
+ const options = {
1575
+ method: "GET",
1576
+ url: "/v2/aad/domains/{domain_id}/detail",
1577
+ contentType: "application/json",
1578
+ queryParams: {},
1579
+ pathParams: {},
1580
+ headers: {}
1581
+ };
1582
+ const localVarHeaderParameter = {};
1583
+ let domainId;
1584
+ if (showDomainDetailRequest !== null && showDomainDetailRequest !== undefined) {
1585
+ if (showDomainDetailRequest instanceof ShowDomainDetailRequest_1.ShowDomainDetailRequest) {
1586
+ domainId = showDomainDetailRequest.domainId;
1587
+ }
1588
+ else {
1589
+ domainId = showDomainDetailRequest['domain_id'];
1590
+ }
1591
+ }
1592
+ if (domainId === null || domainId === undefined) {
1593
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showDomainDetail.');
1594
+ }
1595
+ options.pathParams = { 'domain_id': domainId, };
1596
+ options.headers = localVarHeaderParameter;
1597
+ return options;
1598
+ },
1599
+ /**
1600
+ * 查看域名配置
1601
+ *
1602
+ * Please refer to HUAWEI cloud API Explorer for details.
1603
+ */
1604
+ showDomainNameConfig(showDomainNameConfigRequest) {
1605
+ const options = {
1606
+ method: "GET",
1607
+ url: "/v2/aad/domains/{domain_id}/config",
1608
+ contentType: "application/json",
1609
+ queryParams: {},
1610
+ pathParams: {},
1611
+ headers: {}
1612
+ };
1613
+ const localVarHeaderParameter = {};
1614
+ const localVarQueryParameter = {};
1615
+ let domainId;
1616
+ let type;
1617
+ if (showDomainNameConfigRequest !== null && showDomainNameConfigRequest !== undefined) {
1618
+ if (showDomainNameConfigRequest instanceof ShowDomainNameConfigRequest_1.ShowDomainNameConfigRequest) {
1619
+ domainId = showDomainNameConfigRequest.domainId;
1620
+ type = showDomainNameConfigRequest.type;
1621
+ }
1622
+ else {
1623
+ domainId = showDomainNameConfigRequest['domain_id'];
1624
+ type = showDomainNameConfigRequest['type'];
1625
+ }
1626
+ }
1627
+ if (domainId === null || domainId === undefined) {
1628
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling showDomainNameConfig.');
1629
+ }
1630
+ if (type === null || type === undefined) {
1631
+ throw new RequiredError('type', 'Required parameter type was null or undefined when calling showDomainNameConfig.');
1632
+ }
1633
+ if (type !== null && type !== undefined) {
1634
+ localVarQueryParameter['type'] = type;
1635
+ }
1636
+ options.queryParams = localVarQueryParameter;
1637
+ options.pathParams = { 'domain_id': domainId, };
1638
+ options.headers = localVarHeaderParameter;
1639
+ return options;
1640
+ },
1186
1641
  /**
1187
1642
  * 查询流量封禁信息
1188
1643
  *
@@ -1218,6 +1673,37 @@ const ParamCreater = function () {
1218
1673
  options.headers = localVarHeaderParameter;
1219
1674
  return options;
1220
1675
  },
1676
+ /**
1677
+ * 查询实例详情
1678
+ *
1679
+ * Please refer to HUAWEI cloud API Explorer for details.
1680
+ */
1681
+ showInstanceByInstanceId(showInstanceByInstanceIdRequest) {
1682
+ const options = {
1683
+ method: "GET",
1684
+ url: "/v2/aad/instances/{instance_id}",
1685
+ contentType: "application/json",
1686
+ queryParams: {},
1687
+ pathParams: {},
1688
+ headers: {}
1689
+ };
1690
+ const localVarHeaderParameter = {};
1691
+ let instanceId;
1692
+ if (showInstanceByInstanceIdRequest !== null && showInstanceByInstanceIdRequest !== undefined) {
1693
+ if (showInstanceByInstanceIdRequest instanceof ShowInstanceByInstanceIdRequest_1.ShowInstanceByInstanceIdRequest) {
1694
+ instanceId = showInstanceByInstanceIdRequest.instanceId;
1695
+ }
1696
+ else {
1697
+ instanceId = showInstanceByInstanceIdRequest['instance_id'];
1698
+ }
1699
+ }
1700
+ if (instanceId === null || instanceId === undefined) {
1701
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling showInstanceByInstanceId.');
1702
+ }
1703
+ options.pathParams = { 'instance_id': instanceId, };
1704
+ options.headers = localVarHeaderParameter;
1705
+ return options;
1706
+ },
1221
1707
  /**
1222
1708
  * 查询WEB防护策略配置
1223
1709
  *
@@ -1318,6 +1804,98 @@ const ParamCreater = function () {
1318
1804
  options.headers = localVarHeaderParameter;
1319
1805
  return options;
1320
1806
  },
1807
+ /**
1808
+ * 修改域名配置
1809
+ *
1810
+ * Please refer to HUAWEI cloud API Explorer for details.
1811
+ */
1812
+ updateDomainConfig(updateDomainConfigRequest) {
1813
+ const options = {
1814
+ method: "PUT",
1815
+ url: "/v2/aad/domains/{domain_id}/config",
1816
+ contentType: "application/json",
1817
+ queryParams: {},
1818
+ pathParams: {},
1819
+ headers: {},
1820
+ data: {}
1821
+ };
1822
+ const localVarHeaderParameter = {};
1823
+ let body;
1824
+ let domainId;
1825
+ if (updateDomainConfigRequest !== null && updateDomainConfigRequest !== undefined) {
1826
+ if (updateDomainConfigRequest instanceof UpdateDomainConfigRequest_1.UpdateDomainConfigRequest) {
1827
+ domainId = updateDomainConfigRequest.domainId;
1828
+ body = updateDomainConfigRequest.body;
1829
+ }
1830
+ else {
1831
+ domainId = updateDomainConfigRequest['domain_id'];
1832
+ body = updateDomainConfigRequest['body'];
1833
+ }
1834
+ }
1835
+ if (domainId === null || domainId === undefined) {
1836
+ throw new RequiredError('domainId', 'Required parameter domainId was null or undefined when calling updateDomainConfig.');
1837
+ }
1838
+ if (body === null || body === undefined) {
1839
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1840
+ }
1841
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1842
+ options.data = body !== undefined ? body : {};
1843
+ options.pathParams = { 'domain_id': domainId, };
1844
+ options.headers = localVarHeaderParameter;
1845
+ return options;
1846
+ },
1847
+ /**
1848
+ * 修改转发规则中的源站IP
1849
+ *
1850
+ * Please refer to HUAWEI cloud API Explorer for details.
1851
+ */
1852
+ updateForwardRule(updateForwardRuleRequest) {
1853
+ const options = {
1854
+ method: "PUT",
1855
+ url: "/v2/aad/forward-rules/{instance_id}/{ip}/{rule_id}",
1856
+ contentType: "application/json",
1857
+ queryParams: {},
1858
+ pathParams: {},
1859
+ headers: {},
1860
+ data: {}
1861
+ };
1862
+ const localVarHeaderParameter = {};
1863
+ let body;
1864
+ let instanceId;
1865
+ let ruleId;
1866
+ let ip;
1867
+ if (updateForwardRuleRequest !== null && updateForwardRuleRequest !== undefined) {
1868
+ if (updateForwardRuleRequest instanceof UpdateForwardRuleRequest_1.UpdateForwardRuleRequest) {
1869
+ instanceId = updateForwardRuleRequest.instanceId;
1870
+ ruleId = updateForwardRuleRequest.ruleId;
1871
+ ip = updateForwardRuleRequest.ip;
1872
+ body = updateForwardRuleRequest.body;
1873
+ }
1874
+ else {
1875
+ instanceId = updateForwardRuleRequest['instance_id'];
1876
+ ruleId = updateForwardRuleRequest['rule_id'];
1877
+ ip = updateForwardRuleRequest['ip'];
1878
+ body = updateForwardRuleRequest['body'];
1879
+ }
1880
+ }
1881
+ if (instanceId === null || instanceId === undefined) {
1882
+ throw new RequiredError('instanceId', 'Required parameter instanceId was null or undefined when calling updateForwardRule.');
1883
+ }
1884
+ if (ruleId === null || ruleId === undefined) {
1885
+ throw new RequiredError('ruleId', 'Required parameter ruleId was null or undefined when calling updateForwardRule.');
1886
+ }
1887
+ if (ip === null || ip === undefined) {
1888
+ throw new RequiredError('ip', 'Required parameter ip was null or undefined when calling updateForwardRule.');
1889
+ }
1890
+ if (body === null || body === undefined) {
1891
+ throw new RequiredError('body', 'Required parameter body was null or undefined when calling body.');
1892
+ }
1893
+ localVarHeaderParameter['Content-Type'] = 'application/json';
1894
+ options.data = body !== undefined ? body : {};
1895
+ options.pathParams = { 'instance_id': instanceId, 'rule_id': ruleId, 'ip': ip, };
1896
+ options.headers = localVarHeaderParameter;
1897
+ return options;
1898
+ },
1321
1899
  /**
1322
1900
  * 修改实例规格
1323
1901
  *