@alicloud/ddosbgp20180720 3.1.1 → 3.1.2
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/dist/client.d.ts +8 -8
- package/dist/client.js +8 -12
- package/dist/client.js.map +1 -1
- package/dist/models/AttachToPolicyRequest.d.ts +3 -2
- package/dist/models/AttachToPolicyRequest.js.map +1 -1
- package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
- package/dist/models/AttachToPolicyShrinkRequest.d.ts +2 -2
- package/dist/models/DescribeInstanceListRequest.d.ts +8 -6
- package/dist/models/DescribeInstanceListRequest.js.map +1 -1
- package/dist/models/DescribeInstanceListResponseBody.d.ts +13 -6
- package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
- package/dist/models/ListPolicyRequest.d.ts +17 -2
- package/dist/models/ListPolicyRequest.js.map +1 -1
- package/dist/models/ListPolicyResponseBody.d.ts +133 -27
- package/dist/models/ListPolicyResponseBody.js +8 -0
- package/dist/models/ListPolicyResponseBody.js.map +1 -1
- package/dist/models/ModifyPolicyContentRequest.d.ts +112 -26
- package/dist/models/ModifyPolicyContentRequest.js +8 -0
- package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
- package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +4 -0
- package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
- package/dist/models/ModifyPolicyRequest.d.ts +155 -32
- package/dist/models/ModifyPolicyRequest.js +8 -0
- package/dist/models/ModifyPolicyRequest.js.map +1 -1
- package/dist/models/ModifyPolicyShrinkRequest.d.ts +29 -2
- package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +8 -12
- package/src/models/AttachToPolicyRequest.ts +3 -2
- package/src/models/AttachToPolicyResponseBody.ts +1 -1
- package/src/models/AttachToPolicyShrinkRequest.ts +2 -2
- package/src/models/DescribeInstanceListRequest.ts +8 -6
- package/src/models/DescribeInstanceListResponseBody.ts +13 -6
- package/src/models/ListPolicyRequest.ts +17 -2
- package/src/models/ListPolicyResponseBody.ts +141 -27
- package/src/models/ModifyPolicyContentRequest.ts +120 -26
- package/src/models/ModifyPolicyContentShrinkRequest.ts +4 -0
- package/src/models/ModifyPolicyRequest.ts +163 -32
- package/src/models/ModifyPolicyShrinkRequest.ts +29 -2
|
@@ -2,9 +2,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The
|
|
5
|
+
* The rule comment.
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* @example
|
|
8
|
+
* comment
|
|
9
|
+
*/
|
|
10
|
+
comment?: string;
|
|
11
|
+
/**
|
|
12
|
+
* @remarks
|
|
13
|
+
* The end value of the destination port range. Valid values: **0** to **65535**.
|
|
8
14
|
*
|
|
9
15
|
* @example
|
|
10
16
|
* 65535
|
|
@@ -14,8 +20,6 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
14
20
|
* @remarks
|
|
15
21
|
* The start value of the destination port range. Valid values: **0** to **65535**.
|
|
16
22
|
*
|
|
17
|
-
* This parameter is required.
|
|
18
|
-
*
|
|
19
23
|
* @example
|
|
20
24
|
* 0
|
|
21
25
|
*/
|
|
@@ -32,6 +36,11 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
32
36
|
* @remarks
|
|
33
37
|
* The match action. Valid values:
|
|
34
38
|
*
|
|
39
|
+
* - **accept**: Allows traffic that matches the fingerprint.
|
|
40
|
+
* - **drop**: Drops traffic that matches the fingerprint.
|
|
41
|
+
* - **ip_rate**: Rate-limits the source IP address of traffic that matches the fingerprint. Set the rate limit value by using the **RateValue** parameter.
|
|
42
|
+
* - **session_rate**: Rate-limits the source session of traffic that matches the fingerprint. Set the rate limit value by using the **RateValue** parameter.
|
|
43
|
+
*
|
|
35
44
|
* This parameter is required.
|
|
36
45
|
*
|
|
37
46
|
* @example
|
|
@@ -42,8 +51,6 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
42
51
|
* @remarks
|
|
43
52
|
* The maximum packet length. Valid values: **1** to **1500**.
|
|
44
53
|
*
|
|
45
|
-
* This parameter is required.
|
|
46
|
-
*
|
|
47
54
|
* @example
|
|
48
55
|
* 1500
|
|
49
56
|
*/
|
|
@@ -52,12 +59,18 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
52
59
|
* @remarks
|
|
53
60
|
* The minimum packet length. Valid values: **1** to **1500**.
|
|
54
61
|
*
|
|
55
|
-
* This parameter is required.
|
|
56
|
-
*
|
|
57
62
|
* @example
|
|
58
63
|
* 1
|
|
59
64
|
*/
|
|
60
65
|
minPktLen?: number;
|
|
66
|
+
/**
|
|
67
|
+
* @remarks
|
|
68
|
+
* The rule mode.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* 1
|
|
72
|
+
*/
|
|
73
|
+
mode?: number;
|
|
61
74
|
/**
|
|
62
75
|
* @remarks
|
|
63
76
|
* The offset. Valid values: **0** to **1500**.
|
|
@@ -68,7 +81,7 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
68
81
|
offset?: number;
|
|
69
82
|
/**
|
|
70
83
|
* @remarks
|
|
71
|
-
* The detection payload.
|
|
84
|
+
* The detection payload. Expressed in hexadecimal string format.
|
|
72
85
|
*
|
|
73
86
|
* @example
|
|
74
87
|
* abcd
|
|
@@ -78,7 +91,8 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
78
91
|
* @remarks
|
|
79
92
|
* The protocol type. Valid values:
|
|
80
93
|
*
|
|
81
|
-
*
|
|
94
|
+
* - **tcp**: Transmission Control Protocol.
|
|
95
|
+
* - **udp**: User Datagram Protocol.
|
|
82
96
|
*
|
|
83
97
|
* @example
|
|
84
98
|
* udp
|
|
@@ -88,13 +102,24 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
88
102
|
* @remarks
|
|
89
103
|
* The rate limit value. Valid values: **1** to **100000**.
|
|
90
104
|
*
|
|
105
|
+
* > This parameter is required when the match action is source IP rate limiting or source session rate limiting (**MatchAction** is **ip_rate** or **session_rate**).
|
|
106
|
+
*
|
|
91
107
|
* @example
|
|
92
108
|
* 100
|
|
93
109
|
*/
|
|
94
110
|
rateValue?: number;
|
|
95
111
|
/**
|
|
96
112
|
* @remarks
|
|
97
|
-
* The
|
|
113
|
+
* The rule.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* (ip.version == 4)
|
|
117
|
+
*/
|
|
118
|
+
rule?: string;
|
|
119
|
+
/**
|
|
120
|
+
* @remarks
|
|
121
|
+
* The priority number, expressed as an integer.
|
|
122
|
+
* > A smaller number indicates a higher priority.
|
|
98
123
|
*
|
|
99
124
|
* This parameter is required.
|
|
100
125
|
*
|
|
@@ -106,8 +131,6 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
106
131
|
* @remarks
|
|
107
132
|
* The end value of the source port range. Valid values: **0** to **65535**.
|
|
108
133
|
*
|
|
109
|
-
* This parameter is required.
|
|
110
|
-
*
|
|
111
134
|
* @example
|
|
112
135
|
* 65535
|
|
113
136
|
*/
|
|
@@ -116,12 +139,18 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
116
139
|
* @remarks
|
|
117
140
|
* The start value of the source port range. Valid values: **0** to **65535**.
|
|
118
141
|
*
|
|
119
|
-
* This parameter is required.
|
|
120
|
-
*
|
|
121
142
|
* @example
|
|
122
143
|
* 0
|
|
123
144
|
*/
|
|
124
145
|
srcPortStart?: number;
|
|
146
|
+
/**
|
|
147
|
+
* @remarks
|
|
148
|
+
* The type.
|
|
149
|
+
*
|
|
150
|
+
* @example
|
|
151
|
+
* 1
|
|
152
|
+
*/
|
|
153
|
+
type?: number;
|
|
125
154
|
static names(): {
|
|
126
155
|
[key: string]: string;
|
|
127
156
|
};
|
|
@@ -138,6 +167,8 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionListOffset ext
|
|
|
138
167
|
* @remarks
|
|
139
168
|
* The end position. Valid values: **0** to **1499**.
|
|
140
169
|
*
|
|
170
|
+
* > The end position must be greater than or equal to the start position.
|
|
171
|
+
*
|
|
141
172
|
* @example
|
|
142
173
|
* 1499
|
|
143
174
|
*/
|
|
@@ -165,6 +196,7 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
165
196
|
/**
|
|
166
197
|
* @remarks
|
|
167
198
|
* The detection content.
|
|
199
|
+
* > If the rule type is **char**, the value must be an ASCII string. If the rule type is **hex**, the value must be a hexadecimal string. Maximum length: 2048.
|
|
168
200
|
*
|
|
169
201
|
* @example
|
|
170
202
|
* abcd
|
|
@@ -174,6 +206,22 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
174
206
|
* @remarks
|
|
175
207
|
* The matching content.
|
|
176
208
|
*
|
|
209
|
+
* 1. When **Encode** is set to **str**, the following requirements must be met:
|
|
210
|
+
*
|
|
211
|
+
* - The length of **Content** must not exceed 1500.
|
|
212
|
+
*
|
|
213
|
+
* - **End** - **Start** >= the length of **Content**.
|
|
214
|
+
*
|
|
215
|
+
* 2. When **Encode** is set to **hex**, the following requirements must be met:
|
|
216
|
+
*
|
|
217
|
+
* - **Content** must be hexadecimal characters.
|
|
218
|
+
*
|
|
219
|
+
* - The length of **Content** must be an even number.
|
|
220
|
+
*
|
|
221
|
+
* - The length of **Content** must not exceed 3000.
|
|
222
|
+
*
|
|
223
|
+
* - **End** - **Start** + 1 >= the length of **Content** / 2.
|
|
224
|
+
*
|
|
177
225
|
* @example
|
|
178
226
|
* test**
|
|
179
227
|
*/
|
|
@@ -190,6 +238,10 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
190
238
|
* @remarks
|
|
191
239
|
* The character type. Valid values:
|
|
192
240
|
*
|
|
241
|
+
* - **str**: string.
|
|
242
|
+
*
|
|
243
|
+
* - **hex**: hexadecimal.
|
|
244
|
+
*
|
|
193
245
|
* @example
|
|
194
246
|
* str
|
|
195
247
|
*/
|
|
@@ -201,7 +253,20 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
201
253
|
offset?: ModifyPolicyRequestContentL4RuleListConditionListOffset;
|
|
202
254
|
/**
|
|
203
255
|
* @remarks
|
|
204
|
-
* The matching pattern.
|
|
256
|
+
* The matching pattern. Valid values vary depending on the value of the **Encode** field:
|
|
257
|
+
*
|
|
258
|
+
* (1) When **Encode** is set to **str**, valid values:
|
|
259
|
+
* - **contain**: contains.
|
|
260
|
+
*
|
|
261
|
+
* - **not_contain**: does not contain.
|
|
262
|
+
*
|
|
263
|
+
* - **regex**: regular expression.
|
|
264
|
+
*
|
|
265
|
+
* (2) When **Encode** is set to **hex**, valid values:
|
|
266
|
+
*
|
|
267
|
+
* - **contain**: contains.
|
|
268
|
+
*
|
|
269
|
+
* - **not_contain**: does not contain.
|
|
205
270
|
*
|
|
206
271
|
* @example
|
|
207
272
|
* contain
|
|
@@ -232,7 +297,7 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
232
297
|
* The action.
|
|
233
298
|
*
|
|
234
299
|
* @example
|
|
235
|
-
*
|
|
300
|
+
* block
|
|
236
301
|
*/
|
|
237
302
|
action?: string;
|
|
238
303
|
/**
|
|
@@ -252,6 +317,10 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
252
317
|
* @remarks
|
|
253
318
|
* The logical operator. Valid values:
|
|
254
319
|
*
|
|
320
|
+
* - **0**: The action is executed when the condition is met.
|
|
321
|
+
*
|
|
322
|
+
* - **1**: The action is executed when the condition is not met.
|
|
323
|
+
*
|
|
255
324
|
* @example
|
|
256
325
|
* 0
|
|
257
326
|
*/
|
|
@@ -260,6 +329,10 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
260
329
|
* @remarks
|
|
261
330
|
* The rule type. Valid values:
|
|
262
331
|
*
|
|
332
|
+
* - **hex**: hexadecimal match.
|
|
333
|
+
*
|
|
334
|
+
* - **char**: string match.
|
|
335
|
+
*
|
|
263
336
|
* @example
|
|
264
337
|
* char
|
|
265
338
|
*/
|
|
@@ -278,6 +351,8 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
278
351
|
* @remarks
|
|
279
352
|
* The rule priority. Valid values: **1** to **100**.
|
|
280
353
|
*
|
|
354
|
+
* > A smaller value indicates a higher priority.
|
|
355
|
+
*
|
|
281
356
|
* @example
|
|
282
357
|
* 1
|
|
283
358
|
*/
|
|
@@ -326,6 +401,8 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
326
401
|
* @remarks
|
|
327
402
|
* The match action. Valid values:
|
|
328
403
|
*
|
|
404
|
+
* - **drop**: Drops the traffic.
|
|
405
|
+
*
|
|
329
406
|
* This parameter is required.
|
|
330
407
|
*
|
|
331
408
|
* @example
|
|
@@ -336,6 +413,9 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
336
413
|
* @remarks
|
|
337
414
|
* The protocol type. Valid values:
|
|
338
415
|
*
|
|
416
|
+
* - **tcp**: Transmission Control Protocol.
|
|
417
|
+
* - **udp**: User Datagram Protocol.
|
|
418
|
+
*
|
|
339
419
|
* This parameter is required.
|
|
340
420
|
*
|
|
341
421
|
* @example
|
|
@@ -344,7 +424,8 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
344
424
|
protocol?: string;
|
|
345
425
|
/**
|
|
346
426
|
* @remarks
|
|
347
|
-
* The priority number,
|
|
427
|
+
* The priority number, expressed as an integer.
|
|
428
|
+
* > A smaller number indicates a higher priority.
|
|
348
429
|
*
|
|
349
430
|
* This parameter is required.
|
|
350
431
|
*
|
|
@@ -386,7 +467,10 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
386
467
|
export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
387
468
|
/**
|
|
388
469
|
* @remarks
|
|
389
|
-
* Specifies whether
|
|
470
|
+
* Specifies whether SIP protection is enabled. Valid values:
|
|
471
|
+
*
|
|
472
|
+
* - **true**: Enabled.
|
|
473
|
+
* - **false**: Disabled.
|
|
390
474
|
*
|
|
391
475
|
* @example
|
|
392
476
|
* true
|
|
@@ -493,6 +577,14 @@ export declare class ModifyPolicyRequestContentSourceBlockList extends $dara.Mod
|
|
|
493
577
|
* @remarks
|
|
494
578
|
* The source rate limiting type. Valid values:
|
|
495
579
|
*
|
|
580
|
+
* - **3**: source PPS rate limiting.
|
|
581
|
+
*
|
|
582
|
+
* - **4**: source bandwidth throttling.
|
|
583
|
+
*
|
|
584
|
+
* - **5**: source SYN PPS rate limiting.
|
|
585
|
+
*
|
|
586
|
+
* - **6**: source SYN bandwidth throttling.
|
|
587
|
+
*
|
|
496
588
|
* This parameter is required.
|
|
497
589
|
*
|
|
498
590
|
* @example
|
|
@@ -513,7 +605,7 @@ export declare class ModifyPolicyRequestContentSourceBlockList extends $dara.Mod
|
|
|
513
605
|
export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
514
606
|
/**
|
|
515
607
|
* @remarks
|
|
516
|
-
* The source bandwidth throttling. Unit:
|
|
608
|
+
* The source bandwidth throttling value. Unit: bytes per second.
|
|
517
609
|
*
|
|
518
610
|
* @example
|
|
519
611
|
* 2048
|
|
@@ -521,7 +613,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
521
613
|
bps?: number;
|
|
522
614
|
/**
|
|
523
615
|
* @remarks
|
|
524
|
-
* The source PPS rate limit. Unit:
|
|
616
|
+
* The source PPS rate limit. Unit: packets per second.
|
|
525
617
|
*
|
|
526
618
|
* @example
|
|
527
619
|
* 64
|
|
@@ -529,7 +621,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
529
621
|
pps?: number;
|
|
530
622
|
/**
|
|
531
623
|
* @remarks
|
|
532
|
-
* The source SYN bandwidth throttling. Unit:
|
|
624
|
+
* The source SYN bandwidth throttling value. Unit: bytes per second.
|
|
533
625
|
*
|
|
534
626
|
* @example
|
|
535
627
|
* 2048
|
|
@@ -537,7 +629,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
537
629
|
synBps?: number;
|
|
538
630
|
/**
|
|
539
631
|
* @remarks
|
|
540
|
-
* The source SYN PPS rate limit. Unit:
|
|
632
|
+
* The source SYN PPS rate limit. Unit: packets per second.
|
|
541
633
|
*
|
|
542
634
|
* @example
|
|
543
635
|
* 64
|
|
@@ -562,7 +654,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
562
654
|
blackIpList?: string[];
|
|
563
655
|
/**
|
|
564
656
|
* @remarks
|
|
565
|
-
* The
|
|
657
|
+
* The timeout period of the IP blacklist (UNIX timestamp).
|
|
566
658
|
*
|
|
567
659
|
* @example
|
|
568
660
|
* 1716878000
|
|
@@ -586,7 +678,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
586
678
|
enableIntelligence?: boolean;
|
|
587
679
|
/**
|
|
588
680
|
* @remarks
|
|
589
|
-
* Specifies whether to enable port
|
|
681
|
+
* Specifies whether to enable port-specific mitigation.
|
|
590
682
|
*
|
|
591
683
|
* @example
|
|
592
684
|
* true
|
|
@@ -601,13 +693,17 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
601
693
|
* @remarks
|
|
602
694
|
* The protection level of AI-based intelligent protection. Valid values:
|
|
603
695
|
*
|
|
696
|
+
* - **default**: Normal.
|
|
697
|
+
* - **weak**: Loose.
|
|
698
|
+
* - **hard**: Strict.
|
|
699
|
+
*
|
|
604
700
|
* @example
|
|
605
701
|
* default
|
|
606
702
|
*/
|
|
607
703
|
intelligenceLevel?: string;
|
|
608
704
|
/**
|
|
609
705
|
* @remarks
|
|
610
|
-
* The list of port
|
|
706
|
+
* The list of port forwarding rules.
|
|
611
707
|
*/
|
|
612
708
|
l4RuleList?: ModifyPolicyRequestContentL4RuleList[];
|
|
613
709
|
/**
|
|
@@ -617,17 +713,17 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
617
713
|
portRuleList?: ModifyPolicyRequestContentPortRuleList[];
|
|
618
714
|
/**
|
|
619
715
|
* @remarks
|
|
620
|
-
* The list of ports filtered by
|
|
716
|
+
* The list of ports filtered by Reflection Attack Filtering.
|
|
621
717
|
*/
|
|
622
718
|
reflectBlockUdpPortList?: number[];
|
|
623
719
|
/**
|
|
624
720
|
* @remarks
|
|
625
|
-
* The list of countries for location blacklist.
|
|
721
|
+
* The list of countries for the location blacklist.
|
|
626
722
|
*/
|
|
627
723
|
regionBlockCountryList?: number[];
|
|
628
724
|
/**
|
|
629
725
|
* @remarks
|
|
630
|
-
* The list of provinces for location blacklist.
|
|
726
|
+
* The list of provinces for the location blacklist.
|
|
631
727
|
*/
|
|
632
728
|
regionBlockProvinceList?: number[];
|
|
633
729
|
/**
|
|
@@ -652,7 +748,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
652
748
|
whiteIpList?: string[];
|
|
653
749
|
/**
|
|
654
750
|
* @remarks
|
|
655
|
-
* Specifies whether to
|
|
751
|
+
* Specifies whether to enable whitelisting of back-to-origin IP addresses for Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland and outside the Chinese mainland).
|
|
656
752
|
*
|
|
657
753
|
* @example
|
|
658
754
|
* false
|
|
@@ -672,7 +768,30 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
672
768
|
export declare class ModifyPolicyRequest extends $dara.Model {
|
|
673
769
|
/**
|
|
674
770
|
* @remarks
|
|
675
|
-
* The action type.
|
|
771
|
+
* The action type. Valid values:
|
|
772
|
+
*
|
|
773
|
+
* - **10**: Modifies the name (Name is required).
|
|
774
|
+
* - **11**: Modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policies are supported.
|
|
775
|
+
* - **12**: Modifies the switch for whitelisting back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (WhitenGfbrNets is required). Only IP-specific mitigation policies are supported.
|
|
776
|
+
* - **13**: Modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policies are supported.
|
|
777
|
+
* - **20**: Adds blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
|
|
778
|
+
* - **21**: Deletes blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
|
|
779
|
+
* - **22**: Clears the whitelist. Only IP-specific mitigation policies are supported.
|
|
780
|
+
* - **23**: Clears the blacklist. Only IP-specific mitigation policies are supported.
|
|
781
|
+
* - **30**: Modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policies are supported.
|
|
782
|
+
* - **31**: Modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policies are supported.
|
|
783
|
+
* - **32**: Modifies the Source Rate Limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policies are supported.
|
|
784
|
+
* - **33**: Modifies the Reflection Attack Filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policies are supported.
|
|
785
|
+
* - **40**: Creates a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
786
|
+
* - **41**: Modifies a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
787
|
+
* - **42**: Deletes a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
788
|
+
* - **50**: Creates a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
789
|
+
* - **51**: Modifies a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
790
|
+
* - **52**: Deletes a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
791
|
+
* - **60**: Modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policies are supported.
|
|
792
|
+
* - **61**: Creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
793
|
+
* - **62**: Modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
794
|
+
* - **63**: Deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
676
795
|
*
|
|
677
796
|
* This parameter is required.
|
|
678
797
|
*
|
|
@@ -705,7 +824,11 @@ export declare class ModifyPolicyRequest extends $dara.Model {
|
|
|
705
824
|
name?: string;
|
|
706
825
|
/**
|
|
707
826
|
* @remarks
|
|
708
|
-
* The
|
|
827
|
+
* The port-specific mitigation policy version. Valid values:
|
|
828
|
+
*
|
|
829
|
+
* - **Empty**: Modifies the default surf DPI engine policy.
|
|
830
|
+
* - **2**: Modifies the new stream DPI engine policy.
|
|
831
|
+
* > Only port-specific mitigation policies are supported.
|
|
709
832
|
*
|
|
710
833
|
* @example
|
|
711
834
|
* 2
|
|
@@ -39,36 +39,44 @@ const $dara = __importStar(require("@darabonba/typescript"));
|
|
|
39
39
|
class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
40
40
|
static names() {
|
|
41
41
|
return {
|
|
42
|
+
comment: 'Comment',
|
|
42
43
|
dstPortEnd: 'DstPortEnd',
|
|
43
44
|
dstPortStart: 'DstPortStart',
|
|
44
45
|
id: 'Id',
|
|
45
46
|
matchAction: 'MatchAction',
|
|
46
47
|
maxPktLen: 'MaxPktLen',
|
|
47
48
|
minPktLen: 'MinPktLen',
|
|
49
|
+
mode: 'Mode',
|
|
48
50
|
offset: 'Offset',
|
|
49
51
|
payloadBytes: 'PayloadBytes',
|
|
50
52
|
protocol: 'Protocol',
|
|
51
53
|
rateValue: 'RateValue',
|
|
54
|
+
rule: 'Rule',
|
|
52
55
|
seqNo: 'SeqNo',
|
|
53
56
|
srcPortEnd: 'SrcPortEnd',
|
|
54
57
|
srcPortStart: 'SrcPortStart',
|
|
58
|
+
type: 'Type',
|
|
55
59
|
};
|
|
56
60
|
}
|
|
57
61
|
static types() {
|
|
58
62
|
return {
|
|
63
|
+
comment: 'string',
|
|
59
64
|
dstPortEnd: 'number',
|
|
60
65
|
dstPortStart: 'number',
|
|
61
66
|
id: 'string',
|
|
62
67
|
matchAction: 'string',
|
|
63
68
|
maxPktLen: 'number',
|
|
64
69
|
minPktLen: 'number',
|
|
70
|
+
mode: 'number',
|
|
65
71
|
offset: 'number',
|
|
66
72
|
payloadBytes: 'string',
|
|
67
73
|
protocol: 'string',
|
|
68
74
|
rateValue: 'number',
|
|
75
|
+
rule: 'string',
|
|
69
76
|
seqNo: 'number',
|
|
70
77
|
srcPortEnd: 'number',
|
|
71
78
|
srcPortStart: 'number',
|
|
79
|
+
type: 'number',
|
|
72
80
|
};
|
|
73
81
|
}
|
|
74
82
|
validate() {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModifyPolicyRequest.js","sourceRoot":"","sources":["../../src/models/ModifyPolicyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ModifyPolicyRequest.js","sourceRoot":"","sources":["../../src/models/ModifyPolicyRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,6CAA8C,SAAQ,KAAK,CAAC,KAAK;IAwJ5E,MAAM,CAAC,KAAK;QACV,OAAO;YACL,OAAO,EAAE,SAAS;YAClB,UAAU,EAAE,YAAY;YACxB,YAAY,EAAE,cAAc;YAC5B,EAA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EAAE,CAAC;QACvC,CAAC;QACD,IAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,CAAC;YACnC,KAAK,CAAC,KAAK,CAAC,aAAa,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;QAC9C,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhMD,gEAgMC;AAED,MAAa,mBAAoB,SAAQ,KAAK,CAAC,KAAK;IAqElD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,OAAO,EAAE,SAAS;YAClB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,OAAO,EAAE,0BAA0B;YACnC,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,IAAG,IAAI,CAAC,OAAO,IAAI,OAAQ,IAAI,CAAC,OAAe,CAAC,QAAQ,KAAK,UAAU,EAAE,CAAC;YACvE,IAAI,CAAC,OAAe,CAAC,QAAQ,EAAE,CAAC;QACnC,CAAC;QACD,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,kDAmGC"}
|
|
@@ -2,7 +2,30 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The action type.
|
|
5
|
+
* The action type. Valid values:
|
|
6
|
+
*
|
|
7
|
+
* - **10**: Modifies the name (Name is required).
|
|
8
|
+
* - **11**: Modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policies are supported.
|
|
9
|
+
* - **12**: Modifies the switch for whitelisting back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (WhitenGfbrNets is required). Only IP-specific mitigation policies are supported.
|
|
10
|
+
* - **13**: Modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policies are supported.
|
|
11
|
+
* - **20**: Adds blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
|
|
12
|
+
* - **21**: Deletes blacklist and whitelist entries (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policies are supported.
|
|
13
|
+
* - **22**: Clears the whitelist. Only IP-specific mitigation policies are supported.
|
|
14
|
+
* - **23**: Clears the blacklist. Only IP-specific mitigation policies are supported.
|
|
15
|
+
* - **30**: Modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policies are supported.
|
|
16
|
+
* - **31**: Modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policies are supported.
|
|
17
|
+
* - **32**: Modifies the Source Rate Limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policies are supported.
|
|
18
|
+
* - **33**: Modifies the Reflection Attack Filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policies are supported.
|
|
19
|
+
* - **40**: Creates a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
20
|
+
* - **41**: Modifies a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
21
|
+
* - **42**: Deletes a Port Blocking rule (PortRuleList is required). Only IP-specific mitigation policies are supported.
|
|
22
|
+
* - **50**: Creates a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
23
|
+
* - **51**: Modifies a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
24
|
+
* - **52**: Deletes a Byte-Match Filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policies are supported.
|
|
25
|
+
* - **60**: Modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policies are supported.
|
|
26
|
+
* - **61**: Creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
27
|
+
* - **62**: Modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
28
|
+
* - **63**: Deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policies are supported.
|
|
6
29
|
*
|
|
7
30
|
* This parameter is required.
|
|
8
31
|
*
|
|
@@ -35,7 +58,11 @@ export declare class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
|
35
58
|
name?: string;
|
|
36
59
|
/**
|
|
37
60
|
* @remarks
|
|
38
|
-
* The
|
|
61
|
+
* The port-specific mitigation policy version. Valid values:
|
|
62
|
+
*
|
|
63
|
+
* - **Empty**: Modifies the default surf DPI engine policy.
|
|
64
|
+
* - **2**: Modifies the new stream DPI engine policy.
|
|
65
|
+
* > Only port-specific mitigation policies are supported.
|
|
39
66
|
*
|
|
40
67
|
* @example
|
|
41
68
|
* 2
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ModifyPolicyShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ModifyPolicyShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;
|
|
1
|
+
{"version":3,"file":"ModifyPolicyShrinkRequest.js","sourceRoot":"","sources":["../../src/models/ModifyPolicyShrinkRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,6CAA6C;AAC7C,6DAA+C;AAG/C,MAAa,yBAA0B,SAAQ,KAAK,CAAC,KAAK;IAqExD,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,YAAY;YACxB,aAAa,EAAE,SAAS;YACxB,EAAE,EAAE,IAAI;YACR,IAAI,EAAE,MAAM;YACZ,WAAW,EAAE,aAAa;SAC3B,CAAC;IACJ,CAAC;IAED,MAAM,CAAC,KAAK;QACV,OAAO;YACL,UAAU,EAAE,QAAQ;YACpB,aAAa,EAAE,QAAQ;YACvB,EAAE,EAAE,QAAQ;YACZ,IAAI,EAAE,QAAQ;YACd,WAAW,EAAE,QAAQ;SACtB,CAAC;IACJ,CAAC;IAED,QAAQ;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;IACnB,CAAC;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAhGD,8DAgGC"}
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -33,10 +33,6 @@ export default class Client extends OpenApi {
|
|
|
33
33
|
'cn-shenzhen-finance-1': "ddosbgp.aliyuncs.com",
|
|
34
34
|
'cn-shanghai-finance-1': "ddosbgp.aliyuncs.com",
|
|
35
35
|
'cn-north-2-gov-1': "ddosbgp.aliyuncs.com",
|
|
36
|
-
'cn-hongkong': "ddosbgp.cn-hongkong.aliyuncs.com",
|
|
37
|
-
'ap-southeast-1': "ddosbgp.ap-southeast-1.aliyuncs.com",
|
|
38
|
-
'us-west-1': "ddosbgp.us-west-1.aliyuncs.com",
|
|
39
|
-
'us-east-1': "ddosbgp.us-east-1.aliyuncs.com",
|
|
40
36
|
};
|
|
41
37
|
this.checkConfig(config);
|
|
42
38
|
this._endpoint = this.getEndpoint("ddosbgp", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -220,10 +216,10 @@ export default class Client extends OpenApi {
|
|
|
220
216
|
}
|
|
221
217
|
|
|
222
218
|
/**
|
|
223
|
-
* Associates protection objects with
|
|
219
|
+
* Associates protection objects with mitigation policies.
|
|
224
220
|
*
|
|
225
221
|
* @remarks
|
|
226
|
-
*
|
|
222
|
+
* Mitigation policies that are associated with protection objects cannot be deleted.
|
|
227
223
|
*
|
|
228
224
|
* @param tmpReq - AttachToPolicyRequest
|
|
229
225
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -268,10 +264,10 @@ export default class Client extends OpenApi {
|
|
|
268
264
|
}
|
|
269
265
|
|
|
270
266
|
/**
|
|
271
|
-
* Associates protection objects with
|
|
267
|
+
* Associates protection objects with mitigation policies.
|
|
272
268
|
*
|
|
273
269
|
* @remarks
|
|
274
|
-
*
|
|
270
|
+
* Mitigation policies that are associated with protection objects cannot be deleted.
|
|
275
271
|
*
|
|
276
272
|
* @param request - AttachToPolicyRequest
|
|
277
273
|
* @returns AttachToPolicyResponse
|
|
@@ -969,7 +965,7 @@ export default class Client extends OpenApi {
|
|
|
969
965
|
* @remarks
|
|
970
966
|
* This operation is used to query the details of all Anti-DDoS Origin instances owned by the current Alibaba Cloud account by paging, such as instance IDs, validity periods, and statuses.
|
|
971
967
|
* ### QPS limit
|
|
972
|
-
*
|
|
968
|
+
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
|
|
973
969
|
*
|
|
974
970
|
* @param request - DescribeInstanceListRequest
|
|
975
971
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1053,7 +1049,7 @@ export default class Client extends OpenApi {
|
|
|
1053
1049
|
* @remarks
|
|
1054
1050
|
* This operation is used to query the details of all Anti-DDoS Origin instances owned by the current Alibaba Cloud account by paging, such as instance IDs, validity periods, and statuses.
|
|
1055
1051
|
* ### QPS limit
|
|
1056
|
-
*
|
|
1052
|
+
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API call is throttled, which may affect your business. Invoke this operation as needed.
|
|
1057
1053
|
*
|
|
1058
1054
|
* @param request - DescribeInstanceListRequest
|
|
1059
1055
|
* @returns DescribeInstanceListResponse
|
|
@@ -2124,7 +2120,7 @@ export default class Client extends OpenApi {
|
|
|
2124
2120
|
* Modifies the content of a mitigation policy.
|
|
2125
2121
|
*
|
|
2126
2122
|
* @remarks
|
|
2127
|
-
*
|
|
2123
|
+
* Ensure that all parameters are specified when you call this operation. If a parameter is not specified, the corresponding configuration is deleted.
|
|
2128
2124
|
*
|
|
2129
2125
|
* @param tmpReq - ModifyPolicyContentRequest
|
|
2130
2126
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -2176,7 +2172,7 @@ export default class Client extends OpenApi {
|
|
|
2176
2172
|
* Modifies the content of a mitigation policy.
|
|
2177
2173
|
*
|
|
2178
2174
|
* @remarks
|
|
2179
|
-
*
|
|
2175
|
+
* Ensure that all parameters are specified when you call this operation. If a parameter is not specified, the corresponding configuration is deleted.
|
|
2180
2176
|
*
|
|
2181
2177
|
* @param request - ModifyPolicyContentRequest
|
|
2182
2178
|
* @returns ModifyPolicyContentResponse
|