@alicloud/ddosbgp20180720 3.1.1 → 3.1.3
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 +56 -22
- 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/DescribeNetworkLayerInterceptsRequest.d.ts +9 -1
- package/dist/models/DescribeNetworkLayerInterceptsRequest.js +2 -0
- package/dist/models/DescribeNetworkLayerInterceptsRequest.js.map +1 -1
- package/dist/models/DescribeNetworkLayerInterceptsResponseBody.d.ts +3 -3
- package/dist/models/ListPolicyAttachmentRequest.d.ts +3 -3
- package/dist/models/ListPolicyAttachmentResponseBody.d.ts +14 -3
- package/dist/models/ListPolicyAttachmentResponseBody.js +2 -0
- package/dist/models/ListPolicyAttachmentResponseBody.js.map +1 -1
- package/dist/models/ListPolicyAttachmentShrinkRequest.d.ts +3 -3
- package/dist/models/ListPolicyRequest.d.ts +17 -2
- package/dist/models/ListPolicyRequest.js.map +1 -1
- package/dist/models/ListPolicyResponseBody.d.ts +128 -22
- package/dist/models/ListPolicyResponseBody.js +8 -0
- package/dist/models/ListPolicyResponseBody.js.map +1 -1
- package/dist/models/ModifyPolicyContentRequest.d.ts +119 -33
- package/dist/models/ModifyPolicyContentRequest.js +8 -0
- package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
- package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +4 -0
- package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
- package/dist/models/ModifyPolicyRequest.d.ts +157 -34
- package/dist/models/ModifyPolicyRequest.js +8 -0
- package/dist/models/ModifyPolicyRequest.js.map +1 -1
- package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyShrinkRequest.d.ts +28 -1
- package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +57 -22
- 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/DescribeNetworkLayerInterceptsRequest.ts +11 -1
- package/src/models/DescribeNetworkLayerInterceptsResponseBody.ts +3 -3
- package/src/models/ListPolicyAttachmentRequest.ts +3 -3
- package/src/models/ListPolicyAttachmentResponseBody.ts +16 -3
- package/src/models/ListPolicyAttachmentShrinkRequest.ts +3 -3
- package/src/models/ListPolicyRequest.ts +17 -2
- package/src/models/ListPolicyResponseBody.ts +136 -22
- package/src/models/ModifyPolicyContentRequest.ts +127 -33
- package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
- package/src/models/ModifyPolicyContentShrinkRequest.ts +4 -0
- package/src/models/ModifyPolicyRequest.ts +165 -34
- package/src/models/ModifyPolicyResponseBody.ts +1 -1
- package/src/models/ModifyPolicyShrinkRequest.ts +28 -1
|
@@ -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. The rate limit value is specified by the **RateValue** parameter.
|
|
42
|
+
* - **session_rate**: Rate-limits the source session of traffic that matches the fingerprint. The rate limit value is specified by 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. The value is 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, expressed as an integer.
|
|
122
|
+
* > A smaller value 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 value must meet the following requirements:
|
|
210
|
+
*
|
|
211
|
+
* - The length of **Content** does not exceed 1500.
|
|
212
|
+
*
|
|
213
|
+
* - **End** - **Start** >= the length of **Content**.
|
|
214
|
+
*
|
|
215
|
+
* 2. When **Encode** is set to **hex**, the value must meet the following requirements:
|
|
216
|
+
*
|
|
217
|
+
* - **Content** must be hexadecimal characters.
|
|
218
|
+
*
|
|
219
|
+
* - The length of **Content** must be an even number.
|
|
220
|
+
*
|
|
221
|
+
* - The length of **Content** does 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 depend on the **Encode** field:
|
|
257
|
+
*
|
|
258
|
+
* (1) When **Encode** is set to **str**:
|
|
259
|
+
* - **contain**: Contains.
|
|
260
|
+
*
|
|
261
|
+
* - **not_contain**: Does not contain.
|
|
262
|
+
*
|
|
263
|
+
* - **regex**: Regular expression.
|
|
264
|
+
*
|
|
265
|
+
* (2) When **Encode** is set to **hex**:
|
|
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
|
/**
|
|
@@ -242,7 +307,7 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
242
307
|
conditionList?: ModifyPolicyRequestContentL4RuleListConditionList[];
|
|
243
308
|
/**
|
|
244
309
|
* @remarks
|
|
245
|
-
* The minimum number of bytes in a session flow
|
|
310
|
+
* The minimum number of bytes in a session flow to trigger rule matching. Valid values: **0** to **2048**.
|
|
246
311
|
*
|
|
247
312
|
* @example
|
|
248
313
|
* 0
|
|
@@ -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**: Executes the action when the rule is hit.
|
|
321
|
+
*
|
|
322
|
+
* - **1**: Executes the action when the rule is not hit.
|
|
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 matching.
|
|
333
|
+
*
|
|
334
|
+
* - **char**: String matching.
|
|
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**: Drop.
|
|
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
|
|
427
|
+
* The priority, expressed as an integer.
|
|
428
|
+
* > A smaller value indicates a higher priority.
|
|
348
429
|
*
|
|
349
430
|
* This parameter is required.
|
|
350
431
|
*
|
|
@@ -388,6 +469,9 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
388
469
|
* @remarks
|
|
389
470
|
* Specifies whether to enable SIP protection. Valid values:
|
|
390
471
|
*
|
|
472
|
+
* - **true**: Enabled.
|
|
473
|
+
* - **false**: Disabled.
|
|
474
|
+
*
|
|
391
475
|
* @example
|
|
392
476
|
* true
|
|
393
477
|
*/
|
|
@@ -425,7 +509,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
425
509
|
sipPort?: string;
|
|
426
510
|
/**
|
|
427
511
|
* @remarks
|
|
428
|
-
* The SIP source rate limit value
|
|
512
|
+
* The SIP source rate limit value (PPS).
|
|
429
513
|
*
|
|
430
514
|
* @example
|
|
431
515
|
* 1000
|
|
@@ -433,7 +517,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
433
517
|
sipRate?: number;
|
|
434
518
|
/**
|
|
435
519
|
* @remarks
|
|
436
|
-
* The SIP activation threshold
|
|
520
|
+
* The SIP activation threshold (Mbit/s).
|
|
437
521
|
*
|
|
438
522
|
* @example
|
|
439
523
|
* 100
|
|
@@ -441,7 +525,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
441
525
|
sipStartMbps?: number;
|
|
442
526
|
/**
|
|
443
527
|
* @remarks
|
|
444
|
-
* The SIP activation threshold
|
|
528
|
+
* The SIP activation threshold (PPS).
|
|
445
529
|
*
|
|
446
530
|
* @example
|
|
447
531
|
* 500
|
|
@@ -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
|
|
608
|
+
* The source bandwidth throttling rate limit, in 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
|
|
616
|
+
* The source PPS rate limit, in 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
|
|
624
|
+
* The source SYN bandwidth throttling rate limit, in 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
|
|
632
|
+
* The source SYN PPS rate limit, in 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
|
|
@@ -594,13 +686,17 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
594
686
|
enableL4Defense?: boolean;
|
|
595
687
|
/**
|
|
596
688
|
* @remarks
|
|
597
|
-
* The list of
|
|
689
|
+
* The list of Byte-Match Filter rules.
|
|
598
690
|
*/
|
|
599
691
|
fingerPrintRuleList?: ModifyPolicyRequestContentFingerPrintRuleList[];
|
|
600
692
|
/**
|
|
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
|
*/
|
|
@@ -622,17 +718,17 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
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
|
/**
|
|
634
730
|
* @remarks
|
|
635
|
-
* The SIP
|
|
731
|
+
* The SIP Protection Settings.
|
|
636
732
|
*/
|
|
637
733
|
sipDefense?: ModifyPolicyRequestContentSipDefense;
|
|
638
734
|
/**
|
|
@@ -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 policy is 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 policy is supported.
|
|
776
|
+
* - **13**: modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policy is supported.
|
|
777
|
+
* - **20**: adds entries to blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
778
|
+
* - **21**: deletes entries from blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
779
|
+
* - **22**: clears the whitelist. Only IP-specific mitigation policy is supported.
|
|
780
|
+
* - **23**: clears the blacklist. Only IP-specific mitigation policy is supported.
|
|
781
|
+
* - **30**: modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policy is supported.
|
|
782
|
+
* - **31**: modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policy is supported.
|
|
783
|
+
* - **32**: modifies the source rate limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policy is supported.
|
|
784
|
+
* - **33**: modifies the reflection attack port filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policy is supported.
|
|
785
|
+
* - **40**: creates a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
786
|
+
* - **41**: modifies a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
787
|
+
* - **42**: deletes a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
788
|
+
* - **50**: creates a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
789
|
+
* - **51**: modifies a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
790
|
+
* - **52**: deletes a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
791
|
+
* - **60**: modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policy is supported.
|
|
792
|
+
* - **61**: creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
793
|
+
* - **62**: modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
794
|
+
* - **63**: deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
676
795
|
*
|
|
677
796
|
* This parameter is required.
|
|
678
797
|
*
|
|
@@ -707,6 +826,10 @@ export declare class ModifyPolicyRequest extends $dara.Model {
|
|
|
707
826
|
* @remarks
|
|
708
827
|
* The version of the port-specific mitigation policy. Valid values:
|
|
709
828
|
*
|
|
829
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
830
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
831
|
+
* > Only port-specific mitigation policies are supported.
|
|
832
|
+
*
|
|
710
833
|
* @example
|
|
711
834
|
* 2
|
|
712
835
|
*/
|
|
@@ -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","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C;IAED,YAAY,GAA4B;QACtC,KAAK,CAAC,GAAG,CAAC,CAAC;IACb,CAAC;CACF;AAnGD,kDAmGC"}
|
|
@@ -2,7 +2,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
2
2
|
export declare class ModifyPolicyResponseBody extends $dara.Model {
|
|
3
3
|
/**
|
|
4
4
|
* @remarks
|
|
5
|
-
* The request ID. Alibaba Cloud generates a unique ID for each request
|
|
5
|
+
* The request ID. Alibaba Cloud generates a unique ID for each API request. You can use this ID to troubleshoot issues.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
8
|
* B4B379C2-9319-4C6B-B579-FE36831****
|
|
@@ -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 policy is 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 policy is supported.
|
|
10
|
+
* - **13**: modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policy is supported.
|
|
11
|
+
* - **20**: adds entries to blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
12
|
+
* - **21**: deletes entries from blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
13
|
+
* - **22**: clears the whitelist. Only IP-specific mitigation policy is supported.
|
|
14
|
+
* - **23**: clears the blacklist. Only IP-specific mitigation policy is supported.
|
|
15
|
+
* - **30**: modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policy is supported.
|
|
16
|
+
* - **31**: modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policy is supported.
|
|
17
|
+
* - **32**: modifies the source rate limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policy is supported.
|
|
18
|
+
* - **33**: modifies the reflection attack port filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policy is supported.
|
|
19
|
+
* - **40**: creates a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
20
|
+
* - **41**: modifies a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
21
|
+
* - **42**: deletes a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
22
|
+
* - **50**: creates a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
23
|
+
* - **51**: modifies a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
24
|
+
* - **52**: deletes a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
25
|
+
* - **60**: modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policy is supported.
|
|
26
|
+
* - **61**: creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
27
|
+
* - **62**: modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
28
|
+
* - **63**: deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
6
29
|
*
|
|
7
30
|
* This parameter is required.
|
|
8
31
|
*
|
|
@@ -37,6 +60,10 @@ export declare class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
|
37
60
|
* @remarks
|
|
38
61
|
* The version of the port-specific mitigation policy. Valid values:
|
|
39
62
|
*
|
|
63
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
64
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
65
|
+
* > Only port-specific mitigation policies are supported.
|
|
66
|
+
*
|
|
40
67
|
* @example
|
|
41
68
|
* 2
|
|
42
69
|
*/
|
|
@@ -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"}
|