/
antiddos_client.js
1021 lines (944 loc) · 43.3 KB
/
antiddos_client.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
const models = require("./models");
const AbstractClient = require('../../common/abstract_client')
const CreateDefaultAlarmThresholdRequest = models.CreateDefaultAlarmThresholdRequest;
const DescribeListBGPIPInstancesResponse = models.DescribeListBGPIPInstancesResponse;
const DescribeBlackWhiteIpListResponse = models.DescribeBlackWhiteIpListResponse;
const DeleteCCLevelPolicyRequest = models.DeleteCCLevelPolicyRequest;
const ProxyTypeInfo = models.ProxyTypeInfo;
const CreateBoundIPRequest = models.CreateBoundIPRequest;
const CCReqLimitPolicyRecord = models.CCReqLimitPolicyRecord;
const DescribeListSchedulingDomainRequest = models.DescribeListSchedulingDomainRequest;
const CreateWaterPrintConfigRequest = models.CreateWaterPrintConfigRequest;
const DDoSGeoIPBlockConfig = models.DDoSGeoIPBlockConfig;
const CreateBlackWhiteIpListResponse = models.CreateBlackWhiteIpListResponse;
const IPAlarmThresholdRelation = models.IPAlarmThresholdRelation;
const ModifyDDoSGeoIPBlockConfigRequest = models.ModifyDDoSGeoIPBlockConfigRequest;
const DescribeL7RulesBySSLCertIdResponse = models.DescribeL7RulesBySSLCertIdResponse;
const DescribeListDDoSSpeedLimitConfigRequest = models.DescribeListDDoSSpeedLimitConfigRequest;
const InstanceRelation = models.InstanceRelation;
const ModifyNewDomainRulesRequest = models.ModifyNewDomainRulesRequest;
const RegionInfo = models.RegionInfo;
const DescribeListProtocolBlockConfigResponse = models.DescribeListProtocolBlockConfigResponse;
const DescribeListBGPInstancesRequest = models.DescribeListBGPInstancesRequest;
const KeyValue = models.KeyValue;
const ModifyCcBlackWhiteIpListRequest = models.ModifyCcBlackWhiteIpListRequest;
const DeleteDDoSSpeedLimitConfigRequest = models.DeleteDDoSSpeedLimitConfigRequest;
const CreatePacketFilterConfigResponse = models.CreatePacketFilterConfigResponse;
const CreateCCReqLimitPolicyResponse = models.CreateCCReqLimitPolicyResponse;
const DescribeListWaterPrintConfigRequest = models.DescribeListWaterPrintConfigRequest;
const CreateL7RuleCertsRequest = models.CreateL7RuleCertsRequest;
const CreateCCPrecisionPolicyResponse = models.CreateCCPrecisionPolicyResponse;
const DeleteDDoSGeoIPBlockConfigRequest = models.DeleteDDoSGeoIPBlockConfigRequest;
const DescribeCcBlackWhiteIpListResponse = models.DescribeCcBlackWhiteIpListResponse;
const CreateIPAlarmThresholdConfigRequest = models.CreateIPAlarmThresholdConfigRequest;
const CreateCcBlackWhiteIpListResponse = models.CreateCcBlackWhiteIpListResponse;
const DescribeDefaultAlarmThresholdResponse = models.DescribeDefaultAlarmThresholdResponse;
const CreateNewL7RulesResponse = models.CreateNewL7RulesResponse;
const CreateDDoSAIRequest = models.CreateDDoSAIRequest;
const DescribeListProtectThresholdConfigRequest = models.DescribeListProtectThresholdConfigRequest;
const ModifyNewDomainRulesResponse = models.ModifyNewDomainRulesResponse;
const CcBlackWhiteIpPolicy = models.CcBlackWhiteIpPolicy;
const L7RuleHealth = models.L7RuleHealth;
const DescribeCCLevelPolicyRequest = models.DescribeCCLevelPolicyRequest;
const CreateWaterPrintConfigResponse = models.CreateWaterPrintConfigResponse;
const DescribeListBGPIPInstancesRequest = models.DescribeListBGPIPInstancesRequest;
const DescribeNewL7RulesResponse = models.DescribeNewL7RulesResponse;
const StaticPackRelation = models.StaticPackRelation;
const DescribeCCThresholdListResponse = models.DescribeCCThresholdListResponse;
const DescribeL7RulesBySSLCertIdRequest = models.DescribeL7RulesBySSLCertIdRequest;
const DescribeListPacketFilterConfigResponse = models.DescribeListPacketFilterConfigResponse;
const CreateSchedulingDomainRequest = models.CreateSchedulingDomainRequest;
const BoundIpInfo = models.BoundIpInfo;
const DisassociateDDoSEipAddressResponse = models.DisassociateDDoSEipAddressResponse;
const DescribeBgpBizTrendRequest = models.DescribeBgpBizTrendRequest;
const DeleteCCThresholdPolicyResponse = models.DeleteCCThresholdPolicyResponse;
const DescribeBizHttpStatusRequest = models.DescribeBizHttpStatusRequest;
const SourceServer = models.SourceServer;
const ModifyDomainUsrNameResponse = models.ModifyDomainUsrNameResponse;
const ModifyCcBlackWhiteIpListResponse = models.ModifyCcBlackWhiteIpListResponse;
const DisassociateDDoSEipAddressRequest = models.DisassociateDDoSEipAddressRequest;
const SwitchWaterPrintConfigResponse = models.SwitchWaterPrintConfigResponse;
const BlackWhiteIpRelation = models.BlackWhiteIpRelation;
const DeleteWaterPrintKeyResponse = models.DeleteWaterPrintKeyResponse;
const EipAddressPackRelation = models.EipAddressPackRelation;
const DescribeNewL7RulesRequest = models.DescribeNewL7RulesRequest;
const ProtocolBlockRelation = models.ProtocolBlockRelation;
const DescribeListPacketFilterConfigRequest = models.DescribeListPacketFilterConfigRequest;
const BGPIPInstanceUsages = models.BGPIPInstanceUsages;
const ModifyPacketFilterConfigResponse = models.ModifyPacketFilterConfigResponse;
const DescribeListDDoSGeoIPBlockConfigRequest = models.DescribeListDDoSGeoIPBlockConfigRequest;
const DescribeOverviewDDoSEventListResponse = models.DescribeOverviewDDoSEventListResponse;
const CreateCcGeoIPBlockConfigResponse = models.CreateCcGeoIPBlockConfigResponse;
const HttpStatusMap = models.HttpStatusMap;
const Layer7Rule = models.Layer7Rule;
const L4RuleSource = models.L4RuleSource;
const DeleteCcGeoIPBlockConfigRequest = models.DeleteCcGeoIPBlockConfigRequest;
const DescribeCCLevelListResponse = models.DescribeCCLevelListResponse;
const CreateDDoSSpeedLimitConfigRequest = models.CreateDDoSSpeedLimitConfigRequest;
const CreateDDoSGeoIPBlockConfigRequest = models.CreateDDoSGeoIPBlockConfigRequest;
const CreateProtocolBlockConfigRequest = models.CreateProtocolBlockConfigRequest;
const DeleteWaterPrintKeyRequest = models.DeleteWaterPrintKeyRequest;
const AssociateDDoSEipAddressResponse = models.AssociateDDoSEipAddressResponse;
const DDoSSpeedLimitConfigRelation = models.DDoSSpeedLimitConfigRelation;
const DeleteCCLevelPolicyResponse = models.DeleteCCLevelPolicyResponse;
const ModifyPacketFilterConfigRequest = models.ModifyPacketFilterConfigRequest;
const DescribeBlackWhiteIpListRequest = models.DescribeBlackWhiteIpListRequest;
const CreateCcGeoIPBlockConfigRequest = models.CreateCcGeoIPBlockConfigRequest;
const DescribeBizHttpStatusResponse = models.DescribeBizHttpStatusResponse;
const CreateDDoSSpeedLimitConfigResponse = models.CreateDDoSSpeedLimitConfigResponse;
const DescribeNewL7RulesErrHealthResponse = models.DescribeNewL7RulesErrHealthResponse;
const DeletePacketFilterConfigRequest = models.DeletePacketFilterConfigRequest;
const DescribeListDDoSGeoIPBlockConfigResponse = models.DescribeListDDoSGeoIPBlockConfigResponse;
const DescribeBasicDeviceStatusResponse = models.DescribeBasicDeviceStatusResponse;
const DescribeBgpBizTrendResponse = models.DescribeBgpBizTrendResponse;
const DescribePendingRiskInfoResponse = models.DescribePendingRiskInfoResponse;
const ProtocolBlockConfig = models.ProtocolBlockConfig;
const DeleteCCPrecisionPolicyRequest = models.DeleteCCPrecisionPolicyRequest;
const BGPIPInstance = models.BGPIPInstance;
const DeleteWaterPrintConfigResponse = models.DeleteWaterPrintConfigResponse;
const Layer4Rule = models.Layer4Rule;
const DeletePacketFilterConfigResponse = models.DeletePacketFilterConfigResponse;
const CreateProtocolBlockConfigResponse = models.CreateProtocolBlockConfigResponse;
const BGPIPInstanceSpecification = models.BGPIPInstanceSpecification;
const CreateIPAlarmThresholdConfigResponse = models.CreateIPAlarmThresholdConfigResponse;
const DeleteCcGeoIPBlockConfigResponse = models.DeleteCcGeoIPBlockConfigResponse;
const DeleteWaterPrintConfigRequest = models.DeleteWaterPrintConfigRequest;
const DescribeCCThresholdListRequest = models.DescribeCCThresholdListRequest;
const DescribeListBlackWhiteIpListResponse = models.DescribeListBlackWhiteIpListResponse;
const DDoSAIRelation = models.DDoSAIRelation;
const DescribeListDDoSSpeedLimitConfigResponse = models.DescribeListDDoSSpeedLimitConfigResponse;
const CreateDDoSGeoIPBlockConfigResponse = models.CreateDDoSGeoIPBlockConfigResponse;
const CCPrecisionPolicy = models.CCPrecisionPolicy;
const DescribeOverviewDDoSEventListRequest = models.DescribeOverviewDDoSEventListRequest;
const ListenerCcThreholdConfig = models.ListenerCcThreholdConfig;
const EipAddressRelation = models.EipAddressRelation;
const DescribeBasicDeviceStatusRequest = models.DescribeBasicDeviceStatusRequest;
const PackInfo = models.PackInfo;
const IPLineInfo = models.IPLineInfo;
const DescribeCcBlackWhiteIpListRequest = models.DescribeCcBlackWhiteIpListRequest;
const DescribeListListenerResponse = models.DescribeListListenerResponse;
const DescribePendingRiskInfoRequest = models.DescribePendingRiskInfoRequest;
const IpSegment = models.IpSegment;
const CreateL7RuleCertsResponse = models.CreateL7RuleCertsResponse;
const CreateCCPrecisionPolicyRequest = models.CreateCCPrecisionPolicyRequest;
const DDoSSpeedLimitConfig = models.DDoSSpeedLimitConfig;
const AnycastOutPackRelation = models.AnycastOutPackRelation;
const ProtectThresholdRelation = models.ProtectThresholdRelation;
const DescribeListProtectThresholdConfigResponse = models.DescribeListProtectThresholdConfigResponse;
const CertIdInsL7Rules = models.CertIdInsL7Rules;
const CreateDefaultAlarmThresholdResponse = models.CreateDefaultAlarmThresholdResponse;
const DescribeListSchedulingDomainResponse = models.DescribeListSchedulingDomainResponse;
const DescribeListIPAlarmConfigResponse = models.DescribeListIPAlarmConfigResponse;
const CcGeoIpPolicyNew = models.CcGeoIpPolicyNew;
const SuccessCode = models.SuccessCode;
const DescribeCCPrecisionPlyListRequest = models.DescribeCCPrecisionPlyListRequest;
const ProtocolPort = models.ProtocolPort;
const DescribeCCLevelListRequest = models.DescribeCCLevelListRequest;
const DeleteCCPrecisionPolicyResponse = models.DeleteCCPrecisionPolicyResponse;
const DescribeListDDoSAIRequest = models.DescribeListDDoSAIRequest;
const DescribeListIPAlarmConfigRequest = models.DescribeListIPAlarmConfigRequest;
const PortSegment = models.PortSegment;
const CreateNewL7RulesRequest = models.CreateNewL7RulesRequest;
const PacketFilterConfig = models.PacketFilterConfig;
const DefaultAlarmThreshold = models.DefaultAlarmThreshold;
const ForwardListener = models.ForwardListener;
const BGPInstanceSpecification = models.BGPInstanceSpecification;
const ModifyDomainUsrNameRequest = models.ModifyDomainUsrNameRequest;
const CCLevelPolicy = models.CCLevelPolicy;
const CreateWaterPrintKeyRequest = models.CreateWaterPrintKeyRequest;
const WaterPrintRelation = models.WaterPrintRelation;
const InsL7Rules = models.InsL7Rules;
const DescribeListDDoSAIResponse = models.DescribeListDDoSAIResponse;
const DescribeNewL7RulesErrHealthRequest = models.DescribeNewL7RulesErrHealthRequest;
const ModifyCCPrecisionPolicyResponse = models.ModifyCCPrecisionPolicyResponse;
const CcGeoIPBlockConfig = models.CcGeoIPBlockConfig;
const ModifyDDoSSpeedLimitConfigRequest = models.ModifyDDoSSpeedLimitConfigRequest;
const AssociateDDoSEipAddressRequest = models.AssociateDDoSEipAddressRequest;
const AssociateDDoSEipLoadBalancerResponse = models.AssociateDDoSEipLoadBalancerResponse;
const CreateBlackWhiteIpListRequest = models.CreateBlackWhiteIpListRequest;
const DescribeBizTrendResponse = models.DescribeBizTrendResponse;
const NewL7RuleEntry = models.NewL7RuleEntry;
const DeleteCcBlackWhiteIpListResponse = models.DeleteCcBlackWhiteIpListResponse;
const CreateBoundIPResponse = models.CreateBoundIPResponse;
const SpeedValue = models.SpeedValue;
const SwitchWaterPrintConfigRequest = models.SwitchWaterPrintConfigRequest;
const AssociateDDoSEipLoadBalancerRequest = models.AssociateDDoSEipLoadBalancerRequest;
const ModifyCCPrecisionPolicyRequest = models.ModifyCCPrecisionPolicyRequest;
const CCThresholdPolicy = models.CCThresholdPolicy;
const WaterPrintConfig = models.WaterPrintConfig;
const DescribeCCTrendResponse = models.DescribeCCTrendResponse;
const CreateSchedulingDomainResponse = models.CreateSchedulingDomainResponse;
const EipProductInfo = models.EipProductInfo;
const DeleteCcBlackWhiteIpListRequest = models.DeleteCcBlackWhiteIpListRequest;
const DescribeCcGeoIPBlockConfigListResponse = models.DescribeCcGeoIPBlockConfigListResponse;
const CreateDDoSAIResponse = models.CreateDDoSAIResponse;
const DDoSGeoIPBlockConfigRelation = models.DDoSGeoIPBlockConfigRelation;
const DescribeListProtocolBlockConfigRequest = models.DescribeListProtocolBlockConfigRequest;
const DescribeListBGPInstancesResponse = models.DescribeListBGPInstancesResponse;
const TagInfo = models.TagInfo;
const DescribeDDoSTrendRequest = models.DescribeDDoSTrendRequest;
const ModifyDDoSGeoIPBlockConfigResponse = models.ModifyDDoSGeoIPBlockConfigResponse;
const CreateCcBlackWhiteIpListRequest = models.CreateCcBlackWhiteIpListRequest;
const BGPInstance = models.BGPInstance;
const CCPrecisionPlyRecord = models.CCPrecisionPlyRecord;
const DescribeCCPrecisionPlyListResponse = models.DescribeCCPrecisionPlyListResponse;
const DescribeBizTrendRequest = models.DescribeBizTrendRequest;
const OverviewDDoSEvent = models.OverviewDDoSEvent;
const DescribeCCLevelPolicyResponse = models.DescribeCCLevelPolicyResponse;
const DescribeListWaterPrintConfigResponse = models.DescribeListWaterPrintConfigResponse;
const TagFilter = models.TagFilter;
const BGPInstanceUsages = models.BGPInstanceUsages;
const DeleteDDoSSpeedLimitConfigResponse = models.DeleteDDoSSpeedLimitConfigResponse;
const DeleteCCThresholdPolicyRequest = models.DeleteCCThresholdPolicyRequest;
const DescribeListListenerRequest = models.DescribeListListenerRequest;
const L7RuleEntry = models.L7RuleEntry;
const CreateWaterPrintKeyResponse = models.CreateWaterPrintKeyResponse;
const DeleteDDoSGeoIPBlockConfigResponse = models.DeleteDDoSGeoIPBlockConfigResponse;
const DescribeDDoSTrendResponse = models.DescribeDDoSTrendResponse;
const DescribeListBlackWhiteIpListRequest = models.DescribeListBlackWhiteIpListRequest;
const CreateCCReqLimitPolicyRequest = models.CreateCCReqLimitPolicyRequest;
const ModifyDDoSSpeedLimitConfigResponse = models.ModifyDDoSSpeedLimitConfigResponse;
const SchedulingDomainInfo = models.SchedulingDomainInfo;
const DescribeDefaultAlarmThresholdRequest = models.DescribeDefaultAlarmThresholdRequest;
const WaterPrintKey = models.WaterPrintKey;
const DescribeCcGeoIPBlockConfigListRequest = models.DescribeCcGeoIPBlockConfigListRequest;
const PacketFilterRelation = models.PacketFilterRelation;
const RuleInstanceRelation = models.RuleInstanceRelation;
const CreatePacketFilterConfigRequest = models.CreatePacketFilterConfigRequest;
const DescribeCCTrendRequest = models.DescribeCCTrendRequest;
/**
* antiddos client
* @class
*/
class AntiddosClient extends AbstractClient {
constructor(credential, region, profile) {
super("antiddos.tencentcloudapi.com", "2020-03-09", credential, region, profile);
}
/**
* This API is used to bind an EIP to an Anti-DDoS Advanced instance or a specified private IP of an ENI.
* @param {AssociateDDoSEipAddressRequest} req
* @param {function(string, AssociateDDoSEipAddressResponse):void} cb
* @public
*/
AssociateDDoSEipAddress(req, cb) {
let resp = new AssociateDDoSEipAddressResponse();
this.request("AssociateDDoSEipAddress", req, resp, cb);
}
/**
* This API is used to getting the exception results of the health check on layer-7 forwarding rules.
* @param {DescribeNewL7RulesErrHealthRequest} req
* @param {function(string, DescribeNewL7RulesErrHealthResponse):void} cb
* @public
*/
DescribeNewL7RulesErrHealth(req, cb) {
let resp = new DescribeNewL7RulesErrHealthResponse();
this.request("DescribeNewL7RulesErrHealth", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS watermark configurations.
* @param {DescribeListWaterPrintConfigRequest} req
* @param {function(string, DescribeListWaterPrintConfigResponse):void} cb
* @public
*/
DescribeListWaterPrintConfig(req, cb) {
let resp = new DescribeListWaterPrintConfigResponse();
this.request("DescribeListWaterPrintConfig", req, resp, cb);
}
/**
* This API is used to obtain layer-7 forwarding rules.
* @param {DescribeNewL7RulesRequest} req
* @param {function(string, DescribeNewL7RulesResponse):void} cb
* @public
*/
DescribeNewL7Rules(req, cb) {
let resp = new DescribeNewL7RulesResponse();
this.request("DescribeNewL7Rules", req, resp, cb);
}
/**
* This API is used to create a layer 4 access control list to prevent CC attacks.
* @param {CreateCcBlackWhiteIpListRequest} req
* @param {function(string, CreateCcBlackWhiteIpListResponse):void} cb
* @public
*/
CreateCcBlackWhiteIpList(req, cb) {
let resp = new CreateCcBlackWhiteIpListResponse();
this.request("CreateCcBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to modify Anti-DDoS feature filtering rules.
* @param {ModifyPacketFilterConfigRequest} req
* @param {function(string, ModifyPacketFilterConfigResponse):void} cb
* @public
*/
ModifyPacketFilterConfig(req, cb) {
let resp = new ModifyPacketFilterConfigResponse();
this.request("ModifyPacketFilterConfig", req, resp, cb);
}
/**
* This API is used to delete Anti-DDoS access rate limit configurations.
* @param {DeleteDDoSSpeedLimitConfigRequest} req
* @param {function(string, DeleteDDoSSpeedLimitConfigResponse):void} cb
* @public
*/
DeleteDDoSSpeedLimitConfig(req, cb) {
let resp = new DeleteDDoSSpeedLimitConfigResponse();
this.request("DeleteDDoSSpeedLimitConfig", req, resp, cb);
}
/**
* This API is used to query the information of pending risks at the account level.
* @param {DescribePendingRiskInfoRequest} req
* @param {function(string, DescribePendingRiskInfoResponse):void} cb
* @public
*/
DescribePendingRiskInfo(req, cb) {
let resp = new DescribePendingRiskInfoResponse();
this.request("DescribePendingRiskInfo", req, resp, cb);
}
/**
* This API is used to get the traffic flow data collected in the specified period.
* @param {DescribeBizTrendRequest} req
* @param {function(string, DescribeBizTrendResponse):void} cb
* @public
*/
DescribeBizTrend(req, cb) {
let resp = new DescribeBizTrendResponse();
this.request("DescribeBizTrend", req, resp, cb);
}
/**
* This API is used to delete Anti-DDoS region blocking configurations.
* @param {DeleteDDoSGeoIPBlockConfigRequest} req
* @param {function(string, DeleteDDoSGeoIPBlockConfigResponse):void} cb
* @public
*/
DeleteDDoSGeoIPBlockConfig(req, cb) {
let resp = new DeleteDDoSGeoIPBlockConfigResponse();
this.request("DeleteDDoSGeoIPBlockConfig", req, resp, cb);
}
/**
* This API is used to modify intelligent scheduling domain names.
* @param {ModifyDomainUsrNameRequest} req
* @param {function(string, ModifyDomainUsrNameResponse):void} cb
* @public
*/
ModifyDomainUsrName(req, cb) {
let resp = new ModifyDomainUsrNameResponse();
this.request("ModifyDomainUsrName", req, resp, cb);
}
/**
* This API is used to obtain the list of CC precise protection policies.
* @param {DescribeCCPrecisionPlyListRequest} req
* @param {function(string, DescribeCCPrecisionPlyListResponse):void} cb
* @public
*/
DescribeCCPrecisionPlyList(req, cb) {
let resp = new DescribeCCPrecisionPlyListResponse();
this.request("DescribeCCPrecisionPlyList", req, resp, cb);
}
/**
* This API is used to obtain the list of DDoS attacks.
* @param {DescribeOverviewDDoSEventListRequest} req
* @param {function(string, DescribeOverviewDDoSEventListResponse):void} cb
* @public
*/
DescribeOverviewDDoSEventList(req, cb) {
let resp = new DescribeOverviewDDoSEventListResponse();
this.request("DescribeOverviewDDoSEventList", req, resp, cb);
}
/**
* This API is used to add Anti-DDoS feature filtering rules.
* @param {CreatePacketFilterConfigRequest} req
* @param {function(string, CreatePacketFilterConfigResponse):void} cb
* @public
*/
CreatePacketFilterConfig(req, cb) {
let resp = new CreatePacketFilterConfigResponse();
this.request("CreatePacketFilterConfig", req, resp, cb);
}
/**
* This API is used to delete a CC precise protection policy.
* @param {DeleteCCPrecisionPolicyRequest} req
* @param {function(string, DeleteCCPrecisionPolicyResponse):void} cb
* @public
*/
DeleteCCPrecisionPolicy(req, cb) {
let resp = new DeleteCCPrecisionPolicyResponse();
this.request("DeleteCCPrecisionPolicy", req, resp, cb);
}
/**
* This API is used to get a list of IP alarm threshold configurations.
* @param {DescribeListIPAlarmConfigRequest} req
* @param {function(string, DescribeListIPAlarmConfigResponse):void} cb
* @public
*/
DescribeListIPAlarmConfig(req, cb) {
let resp = new DescribeListIPAlarmConfigResponse();
this.request("DescribeListIPAlarmConfig", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS Advanced instances.
* @param {DescribeListBGPIPInstancesRequest} req
* @param {function(string, DescribeListBGPIPInstancesResponse):void} cb
* @public
*/
DescribeListBGPIPInstances(req, cb) {
let resp = new DescribeListBGPIPInstancesResponse();
this.request("DescribeListBGPIPInstances", req, resp, cb);
}
/**
* This API is used to get the default alarm threshold of an IP.
* @param {DescribeDefaultAlarmThresholdRequest} req
* @param {function(string, DescribeDefaultAlarmThresholdResponse):void} cb
* @public
*/
DescribeDefaultAlarmThreshold(req, cb) {
let resp = new DescribeDefaultAlarmThresholdResponse();
this.request("DescribeDefaultAlarmThreshold", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS IP blocklists/allowlists.
* @param {DescribeListBlackWhiteIpListRequest} req
* @param {function(string, DescribeListBlackWhiteIpListResponse):void} cb
* @public
*/
DescribeListBlackWhiteIpList(req, cb) {
let resp = new DescribeListBlackWhiteIpListResponse();
this.request("DescribeListBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to delete a CC cleansing threshold policy.
* @param {DeleteCCThresholdPolicyRequest} req
* @param {function(string, DeleteCCThresholdPolicyResponse):void} cb
* @public
*/
DeleteCCThresholdPolicy(req, cb) {
let resp = new DeleteCCThresholdPolicyResponse();
this.request("DeleteCCThresholdPolicy", req, resp, cb);
}
/**
* This API is used to modify a layer-4 access control list.
* @param {ModifyCcBlackWhiteIpListRequest} req
* @param {function(string, ModifyCcBlackWhiteIpListResponse):void} cb
* @public
*/
ModifyCcBlackWhiteIpList(req, cb) {
let resp = new ModifyCcBlackWhiteIpListResponse();
this.request("ModifyCcBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to obtain the layer-4 access control list.
* @param {DescribeCcBlackWhiteIpListRequest} req
* @param {function(string, DescribeCcBlackWhiteIpListResponse):void} cb
* @public
*/
DescribeCcBlackWhiteIpList(req, cb) {
let resp = new DescribeCcBlackWhiteIpListResponse();
this.request("DescribeCcBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to unbind an Anti-DDoS EIP.
* @param {DisassociateDDoSEipAddressRequest} req
* @param {function(string, DisassociateDDoSEipAddressResponse):void} cb
* @public
*/
DisassociateDDoSEipAddress(req, cb) {
let resp = new DisassociateDDoSEipAddressResponse();
this.request("DisassociateDDoSEipAddress", req, resp, cb);
}
/**
* This API is used the query a level-defining policy of CC attacks
* @param {DescribeCCLevelPolicyRequest} req
* @param {function(string, DescribeCCLevelPolicyResponse):void} cb
* @public
*/
DescribeCCLevelPolicy(req, cb) {
let resp = new DescribeCCLevelPolicyResponse();
this.request("DescribeCCLevelPolicy", req, resp, cb);
}
/**
* This API is used to modify layer-7 forwarding rules.
* @param {ModifyNewDomainRulesRequest} req
* @param {function(string, ModifyNewDomainRulesResponse):void} cb
* @public
*/
ModifyNewDomainRules(req, cb) {
let resp = new ModifyNewDomainRulesResponse();
this.request("ModifyNewDomainRules", req, resp, cb);
}
/**
* This API is used to bind an IP to an Anti-DDoS Pro instance Both single IP instances and multi-IP instances are available. Note that you should wait until the current binding or unbinding completes before using this async API for new operations.
* @param {CreateBoundIPRequest} req
* @param {function(string, CreateBoundIPResponse):void} cb
* @public
*/
CreateBoundIP(req, cb) {
let resp = new CreateBoundIPResponse();
this.request("CreateBoundIP", req, resp, cb);
}
/**
* This API is used to get a list of intelligent scheduling domain names.
* @param {DescribeListSchedulingDomainRequest} req
* @param {function(string, DescribeListSchedulingDomainResponse):void} cb
* @public
*/
DescribeListSchedulingDomain(req, cb) {
let resp = new DescribeListSchedulingDomainResponse();
this.request("DescribeListSchedulingDomain", req, resp, cb);
}
/**
* This API is used to modify Anti-DDoS access rate limit configurations.
* @param {ModifyDDoSSpeedLimitConfigRequest} req
* @param {function(string, ModifyDDoSSpeedLimitConfigResponse):void} cb
* @public
*/
ModifyDDoSSpeedLimitConfig(req, cb) {
let resp = new ModifyDDoSSpeedLimitConfigResponse();
this.request("ModifyDDoSSpeedLimitConfig", req, resp, cb);
}
/**
* This API is used to delete Anti-DDoS watermark keys.
* @param {DeleteWaterPrintKeyRequest} req
* @param {function(string, DeleteWaterPrintKeyResponse):void} cb
* @public
*/
DeleteWaterPrintKey(req, cb) {
let resp = new DeleteWaterPrintKeyResponse();
this.request("DeleteWaterPrintKey", req, resp, cb);
}
/**
* This API is used to set the default alarm threshold of an IP.
* @param {CreateDefaultAlarmThresholdRequest} req
* @param {function(string, CreateDefaultAlarmThresholdResponse):void} cb
* @public
*/
CreateDefaultAlarmThreshold(req, cb) {
let resp = new CreateDefaultAlarmThresholdResponse();
this.request("CreateDefaultAlarmThreshold", req, resp, cb);
}
/**
* This API is used to add Anti-DDoS watermark configurations.
* @param {CreateWaterPrintConfigRequest} req
* @param {function(string, CreateWaterPrintConfigResponse):void} cb
* @public
*/
CreateWaterPrintConfig(req, cb) {
let resp = new CreateWaterPrintConfigResponse();
this.request("CreateWaterPrintConfig", req, resp, cb);
}
/**
* This API is used to get an Anti-DDoS IP blocklist/allowlist.
* @param {DescribeBlackWhiteIpListRequest} req
* @param {function(string, DescribeBlackWhiteIpListResponse):void} cb
* @public
*/
DescribeBlackWhiteIpList(req, cb) {
let resp = new DescribeBlackWhiteIpListResponse();
this.request("DescribeBlackWhiteIpList", req, resp, cb);
}
/**
* Gets the list of CC protection levels
* @param {DescribeCCLevelListRequest} req
* @param {function(string, DescribeCCLevelListResponse):void} cb
* @public
*/
DescribeCCLevelList(req, cb) {
let resp = new DescribeCCLevelListResponse();
this.request("DescribeCCLevelList", req, resp, cb);
}
/**
* This API is used to obtain Anti-DDoS Pro traffic data.
* @param {DescribeBgpBizTrendRequest} req
* @param {function(string, DescribeBgpBizTrendResponse):void} cb
* @public
*/
DescribeBgpBizTrend(req, cb) {
let resp = new DescribeBgpBizTrendResponse();
this.request("DescribeBgpBizTrend", req, resp, cb);
}
/**
* This API is used to get DDoS attack traffic bandwidth and attack packet rate.
* @param {DescribeDDoSTrendRequest} req
* @param {function(string, DescribeDDoSTrendResponse):void} cb
* @public
*/
DescribeDDoSTrend(req, cb) {
let resp = new DescribeDDoSTrendResponse();
this.request("DescribeDDoSTrend", req, resp, cb);
}
/**
* This API is used to query the list of CC cleansing thresholds.
* @param {DescribeCCThresholdListRequest} req
* @param {function(string, DescribeCCThresholdListResponse):void} cb
* @public
*/
DescribeCCThresholdList(req, cb) {
let resp = new DescribeCCThresholdListResponse();
this.request("DescribeCCThresholdList", req, resp, cb);
}
/**
* This API is used to modify a CC precise protection policy.
* @param {ModifyCCPrecisionPolicyRequest} req
* @param {function(string, ModifyCCPrecisionPolicyResponse):void} cb
* @public
*/
ModifyCCPrecisionPolicy(req, cb) {
let resp = new ModifyCCPrecisionPolicyResponse();
this.request("ModifyCCPrecisionPolicy", req, resp, cb);
}
/**
* This API is used to set the default alarm threshold of an IP.
* @param {CreateIPAlarmThresholdConfigRequest} req
* @param {function(string, CreateIPAlarmThresholdConfigResponse):void} cb
* @public
*/
CreateIPAlarmThresholdConfig(req, cb) {
let resp = new CreateIPAlarmThresholdConfigResponse();
this.request("CreateIPAlarmThresholdConfig", req, resp, cb);
}
/**
* This API is used to delete a level-defining policy of CC attacks.
* @param {DeleteCCLevelPolicyRequest} req
* @param {function(string, DeleteCCLevelPolicyResponse):void} cb
* @public
*/
DeleteCCLevelPolicy(req, cb) {
let resp = new DeleteCCLevelPolicyResponse();
this.request("DeleteCCLevelPolicy", req, resp, cb);
}
/**
* This API is used to query layer-7 rules matched with certificate IDs.
* @param {DescribeL7RulesBySSLCertIdRequest} req
* @param {function(string, DescribeL7RulesBySSLCertIdResponse):void} cb
* @public
*/
DescribeL7RulesBySSLCertId(req, cb) {
let resp = new DescribeL7RulesBySSLCertIdResponse();
this.request("DescribeL7RulesBySSLCertId", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS feature filtering rules.
* @param {DescribeListPacketFilterConfigRequest} req
* @param {function(string, DescribeListPacketFilterConfigResponse):void} cb
* @public
*/
DescribeListPacketFilterConfig(req, cb) {
let resp = new DescribeListPacketFilterConfigResponse();
this.request("DescribeListPacketFilterConfig", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS access rate limit configurations.
* @param {DescribeListDDoSSpeedLimitConfigRequest} req
* @param {function(string, DescribeListDDoSSpeedLimitConfigResponse):void} cb
* @public
*/
DescribeListDDoSSpeedLimitConfig(req, cb) {
let resp = new DescribeListDDoSSpeedLimitConfigResponse();
this.request("DescribeListDDoSSpeedLimitConfig", req, resp, cb);
}
/**
* This API is used to delete a layer-4 access control list.
* @param {DeleteCcBlackWhiteIpListRequest} req
* @param {function(string, DeleteCcBlackWhiteIpListResponse):void} cb
* @public
*/
DeleteCcBlackWhiteIpList(req, cb) {
let resp = new DeleteCcBlackWhiteIpListResponse();
this.request("DeleteCcBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to get a list of protection threshold configurations for AI protection switch, protection level, and CC threshold switch.
* @param {DescribeListProtectThresholdConfigRequest} req
* @param {function(string, DescribeListProtectThresholdConfigResponse):void} cb
* @public
*/
DescribeListProtectThresholdConfig(req, cb) {
let resp = new DescribeListProtectThresholdConfigResponse();
this.request("DescribeListProtectThresholdConfig", req, resp, cb);
}
/**
* This API is used to add Anti-DDoS access rate limit configurations.
* @param {CreateDDoSSpeedLimitConfigRequest} req
* @param {function(string, CreateDDoSSpeedLimitConfigResponse):void} cb
* @public
*/
CreateDDoSSpeedLimitConfig(req, cb) {
let resp = new CreateDDoSSpeedLimitConfigResponse();
this.request("CreateDDoSSpeedLimitConfig", req, resp, cb);
}
/**
* This API is used to querying the status of Anti-DDoS IP.
* @param {DescribeBasicDeviceStatusRequest} req
* @param {function(string, DescribeBasicDeviceStatusResponse):void} cb
* @public
*/
DescribeBasicDeviceStatus(req, cb) {
let resp = new DescribeBasicDeviceStatusResponse();
this.request("DescribeBasicDeviceStatus", req, resp, cb);
}
/**
* This API is used to get the statistics on the status codes of business traffic.
* @param {DescribeBizHttpStatusRequest} req
* @param {function(string, DescribeBizHttpStatusResponse):void} cb
* @public
*/
DescribeBizHttpStatus(req, cb) {
let resp = new DescribeBizHttpStatusResponse();
this.request("DescribeBizHttpStatus", req, resp, cb);
}
/**
* This API is used to get the list of Anti-DDoS Pro instances.
* @param {DescribeListBGPInstancesRequest} req
* @param {function(string, DescribeListBGPInstancesResponse):void} cb
* @public
*/
DescribeListBGPInstances(req, cb) {
let resp = new DescribeListBGPInstancesResponse();
this.request("DescribeListBGPInstances", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS AI protection switches.
* @param {DescribeListDDoSAIRequest} req
* @param {function(string, DescribeListDDoSAIResponse):void} cb
* @public
*/
DescribeListDDoSAI(req, cb) {
let resp = new DescribeListDDoSAIResponse();
this.request("DescribeListDDoSAI", req, resp, cb);
}
/**
* This API is used to bind an Anti-DDoS EIP to the specified private IP of a CLB instance.
* @param {AssociateDDoSEipLoadBalancerRequest} req
* @param {function(string, AssociateDDoSEipLoadBalancerResponse):void} cb
* @public
*/
AssociateDDoSEipLoadBalancer(req, cb) {
let resp = new AssociateDDoSEipLoadBalancerResponse();
this.request("AssociateDDoSEipLoadBalancer", req, resp, cb);
}
/**
* This API is used to add an Anti-DDoS IP blocklist/allowlist.
* @param {CreateBlackWhiteIpListRequest} req
* @param {function(string, CreateBlackWhiteIpListResponse):void} cb
* @public
*/
CreateBlackWhiteIpList(req, cb) {
let resp = new CreateBlackWhiteIpListResponse();
this.request("CreateBlackWhiteIpList", req, resp, cb);
}
/**
* This API is used to add layer-7 forwarding rules.
* @param {CreateNewL7RulesRequest} req
* @param {function(string, CreateNewL7RulesResponse):void} cb
* @public
*/
CreateNewL7Rules(req, cb) {
let resp = new CreateNewL7RulesResponse();
this.request("CreateNewL7Rules", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS region blocking configurations.
* @param {DescribeListDDoSGeoIPBlockConfigRequest} req
* @param {function(string, DescribeListDDoSGeoIPBlockConfigResponse):void} cb
* @public
*/
DescribeListDDoSGeoIPBlockConfig(req, cb) {
let resp = new DescribeListDDoSGeoIPBlockConfigResponse();
this.request("DescribeListDDoSGeoIPBlockConfig", req, resp, cb);
}
/**
* This API is used to create a CC precise protection policy.
* @param {CreateCCPrecisionPolicyRequest} req
* @param {function(string, CreateCCPrecisionPolicyResponse):void} cb
* @public
*/
CreateCCPrecisionPolicy(req, cb) {
let resp = new CreateCCPrecisionPolicyResponse();
this.request("CreateCCPrecisionPolicy", req, resp, cb);
}
/**
* This API is used to add an Anti-DDoS region blocking configuration.
* @param {CreateDDoSGeoIPBlockConfigRequest} req
* @param {function(string, CreateDDoSGeoIPBlockConfigResponse):void} cb
* @public
*/
CreateDDoSGeoIPBlockConfig(req, cb) {
let resp = new CreateDDoSGeoIPBlockConfigResponse();
this.request("CreateDDoSGeoIPBlockConfig", req, resp, cb);
}
/**
* This API is used to delete Anti-DDoS watermark configurations.
* @param {DeleteWaterPrintConfigRequest} req
* @param {function(string, DeleteWaterPrintConfigResponse):void} cb
* @public
*/
DeleteWaterPrintConfig(req, cb) {
let resp = new DeleteWaterPrintConfigResponse();
this.request("DeleteWaterPrintConfig", req, resp, cb);
}
/**
* This API is used to obtain a list of regional blocking configurations.
* @param {DescribeCcGeoIPBlockConfigListRequest} req
* @param {function(string, DescribeCcGeoIPBlockConfigListResponse):void} cb
* @public
*/
DescribeCcGeoIPBlockConfigList(req, cb) {
let resp = new DescribeCcGeoIPBlockConfigListResponse();
this.request("DescribeCcGeoIPBlockConfigList", req, resp, cb);
}
/**
* This API is used to create a CC frequency limit policy.
* @param {CreateCCReqLimitPolicyRequest} req
* @param {function(string, CreateCCReqLimitPolicyResponse):void} cb
* @public
*/
CreateCCReqLimitPolicy(req, cb) {
let resp = new CreateCCReqLimitPolicyResponse();
this.request("CreateCCReqLimitPolicy", req, resp, cb);
}
/**
* This API is used to set Anti-DDoS AI protection switches.
* @param {CreateDDoSAIRequest} req
* @param {function(string, CreateDDoSAIResponse):void} cb
* @public
*/
CreateDDoSAI(req, cb) {
let resp = new CreateDDoSAIResponse();
this.request("CreateDDoSAI", req, resp, cb);
}
/**
* This API is used to delete Anti-DDoS feature filtering rules.
* @param {DeletePacketFilterConfigRequest} req
* @param {function(string, DeletePacketFilterConfigResponse):void} cb
* @public
*/
DeletePacketFilterConfig(req, cb) {
let resp = new DeletePacketFilterConfigResponse();
this.request("DeletePacketFilterConfig", req, resp, cb);
}
/**
* This API is used to enable or disable Anti-DDoS watermark configurations.
* @param {SwitchWaterPrintConfigRequest} req
* @param {function(string, SwitchWaterPrintConfigResponse):void} cb
* @public
*/
SwitchWaterPrintConfig(req, cb) {
let resp = new SwitchWaterPrintConfigResponse();
this.request("SwitchWaterPrintConfig", req, resp, cb);
}
/**
* This API is used to get a list of Anti-DDoS protocol blocking configurations.
* @param {DescribeListProtocolBlockConfigRequest} req
* @param {function(string, DescribeListProtocolBlockConfigResponse):void} cb
* @public
*/
DescribeListProtocolBlockConfig(req, cb) {
let resp = new DescribeListProtocolBlockConfigResponse();
this.request("DescribeListProtocolBlockConfig", req, resp, cb);
}
/**
* This API is used to create a domain name for IP scheduling and switching.
* @param {CreateSchedulingDomainRequest} req
* @param {function(string, CreateSchedulingDomainResponse):void} cb
* @public
*/
CreateSchedulingDomain(req, cb) {
let resp = new CreateSchedulingDomainResponse();
this.request("CreateSchedulingDomain", req, resp, cb);
}
/**
* This API is used to get CC attack data, including total QPS peaks, attack QPS, total number of requests and number of attack requests.
* @param {DescribeCCTrendRequest} req
* @param {function(string, DescribeCCTrendResponse):void} cb
* @public
*/
DescribeCCTrend(req, cb) {
let resp = new DescribeCCTrendResponse();
this.request("DescribeCCTrend", req, resp, cb);
}
/**
* This API is used to add Anti-DDoS watermark keys.
* @param {CreateWaterPrintKeyRequest} req
* @param {function(string, CreateWaterPrintKeyResponse):void} cb
* @public
*/
CreateWaterPrintKey(req, cb) {
let resp = new CreateWaterPrintKeyResponse();
this.request("CreateWaterPrintKey", req, resp, cb);
}
/**
* This API is used to set Anti-DDoS protocol blocking configurations.
* @param {CreateProtocolBlockConfigRequest} req
* @param {function(string, CreateProtocolBlockConfigResponse):void} cb
* @public
*/
CreateProtocolBlockConfig(req, cb) {
let resp = new CreateProtocolBlockConfigResponse();
this.request("CreateProtocolBlockConfig", req, resp, cb);
}
/**
* This API is used to delete a regional blocking configuration.
* @param {DeleteCcGeoIPBlockConfigRequest} req
* @param {function(string, DeleteCcGeoIPBlockConfigResponse):void} cb
* @public
*/
DeleteCcGeoIPBlockConfig(req, cb) {
let resp = new DeleteCcGeoIPBlockConfigResponse();
this.request("DeleteCcGeoIPBlockConfig", req, resp, cb);
}
/**
* This API is used to configure certificates with layer-7 forwarding rules in a batch for SSL testing.
* @param {CreateL7RuleCertsRequest} req
* @param {function(string, CreateL7RuleCertsResponse):void} cb
* @public
*/
CreateL7RuleCerts(req, cb) {
let resp = new CreateL7RuleCertsResponse();
this.request("CreateL7RuleCerts", req, resp, cb);
}
/**
* This API is used to create a regional blocking configuration.
* @param {CreateCcGeoIPBlockConfigRequest} req
* @param {function(string, CreateCcGeoIPBlockConfigResponse):void} cb
* @public
*/
CreateCcGeoIPBlockConfig(req, cb) {
let resp = new CreateCcGeoIPBlockConfigResponse();
this.request("CreateCcGeoIPBlockConfig", req, resp, cb);
}
/**
* This API is used to modify Anti-DDoS region blocking configurations.
* @param {ModifyDDoSGeoIPBlockConfigRequest} req
* @param {function(string, ModifyDDoSGeoIPBlockConfigResponse):void} cb