@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
|
@@ -5,9 +5,15 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The
|
|
8
|
+
* The rule comment.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
10
|
+
* @example
|
|
11
|
+
* comment
|
|
12
|
+
*/
|
|
13
|
+
comment?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The end value of the destination port range. Valid values: **0** to **65535**.
|
|
11
17
|
*
|
|
12
18
|
* @example
|
|
13
19
|
* 65535
|
|
@@ -17,8 +23,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
17
23
|
* @remarks
|
|
18
24
|
* The start value of the destination port range. Valid values: **0** to **65535**.
|
|
19
25
|
*
|
|
20
|
-
* This parameter is required.
|
|
21
|
-
*
|
|
22
26
|
* @example
|
|
23
27
|
* 0
|
|
24
28
|
*/
|
|
@@ -35,6 +39,11 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
35
39
|
* @remarks
|
|
36
40
|
* The match action. Valid values:
|
|
37
41
|
*
|
|
42
|
+
* - **accept**: Allows traffic that matches the fingerprint.
|
|
43
|
+
* - **drop**: Drops traffic that matches the fingerprint.
|
|
44
|
+
* - **ip_rate**: Rate-limits the source IP address of traffic that matches the fingerprint. The rate limit value is specified by the **RateValue** parameter.
|
|
45
|
+
* - **session_rate**: Rate-limits the source session of traffic that matches the fingerprint. The rate limit value is specified by the **RateValue** parameter.
|
|
46
|
+
*
|
|
38
47
|
* This parameter is required.
|
|
39
48
|
*
|
|
40
49
|
* @example
|
|
@@ -45,8 +54,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
45
54
|
* @remarks
|
|
46
55
|
* The maximum packet length. Valid values: **1** to **1500**.
|
|
47
56
|
*
|
|
48
|
-
* This parameter is required.
|
|
49
|
-
*
|
|
50
57
|
* @example
|
|
51
58
|
* 1500
|
|
52
59
|
*/
|
|
@@ -55,12 +62,18 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
55
62
|
* @remarks
|
|
56
63
|
* The minimum packet length. Valid values: **1** to **1500**.
|
|
57
64
|
*
|
|
58
|
-
* This parameter is required.
|
|
59
|
-
*
|
|
60
65
|
* @example
|
|
61
66
|
* 1
|
|
62
67
|
*/
|
|
63
68
|
minPktLen?: number;
|
|
69
|
+
/**
|
|
70
|
+
* @remarks
|
|
71
|
+
* The rule mode.
|
|
72
|
+
*
|
|
73
|
+
* @example
|
|
74
|
+
* 1
|
|
75
|
+
*/
|
|
76
|
+
mode?: number;
|
|
64
77
|
/**
|
|
65
78
|
* @remarks
|
|
66
79
|
* The offset. Valid values: **0** to **1500**.
|
|
@@ -71,7 +84,7 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
71
84
|
offset?: number;
|
|
72
85
|
/**
|
|
73
86
|
* @remarks
|
|
74
|
-
* The detection payload.
|
|
87
|
+
* The detection payload. The value is in hexadecimal string format.
|
|
75
88
|
*
|
|
76
89
|
* @example
|
|
77
90
|
* abcd
|
|
@@ -81,7 +94,8 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
81
94
|
* @remarks
|
|
82
95
|
* The protocol type. Valid values:
|
|
83
96
|
*
|
|
84
|
-
*
|
|
97
|
+
* - **tcp**: Transmission Control Protocol.
|
|
98
|
+
* - **udp**: User Datagram Protocol.
|
|
85
99
|
*
|
|
86
100
|
* @example
|
|
87
101
|
* udp
|
|
@@ -91,13 +105,24 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
91
105
|
* @remarks
|
|
92
106
|
* The rate limit value. Valid values: **1** to **100000**.
|
|
93
107
|
*
|
|
108
|
+
* > 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**).
|
|
109
|
+
*
|
|
94
110
|
* @example
|
|
95
111
|
* 100
|
|
96
112
|
*/
|
|
97
113
|
rateValue?: number;
|
|
98
114
|
/**
|
|
99
115
|
* @remarks
|
|
100
|
-
* The
|
|
116
|
+
* The rule.
|
|
117
|
+
*
|
|
118
|
+
* @example
|
|
119
|
+
* (ip.version == 4)
|
|
120
|
+
*/
|
|
121
|
+
rule?: string;
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The priority, expressed as an integer.
|
|
125
|
+
* > A smaller value indicates a higher priority.
|
|
101
126
|
*
|
|
102
127
|
* This parameter is required.
|
|
103
128
|
*
|
|
@@ -109,8 +134,6 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
109
134
|
* @remarks
|
|
110
135
|
* The end value of the source port range. Valid values: **0** to **65535**.
|
|
111
136
|
*
|
|
112
|
-
* This parameter is required.
|
|
113
|
-
*
|
|
114
137
|
* @example
|
|
115
138
|
* 65535
|
|
116
139
|
*/
|
|
@@ -119,45 +142,59 @@ export class ModifyPolicyRequestContentFingerPrintRuleList extends $dara.Model {
|
|
|
119
142
|
* @remarks
|
|
120
143
|
* The start value of the source port range. Valid values: **0** to **65535**.
|
|
121
144
|
*
|
|
122
|
-
* This parameter is required.
|
|
123
|
-
*
|
|
124
145
|
* @example
|
|
125
146
|
* 0
|
|
126
147
|
*/
|
|
127
148
|
srcPortStart?: number;
|
|
149
|
+
/**
|
|
150
|
+
* @remarks
|
|
151
|
+
* The type.
|
|
152
|
+
*
|
|
153
|
+
* @example
|
|
154
|
+
* 1
|
|
155
|
+
*/
|
|
156
|
+
type?: number;
|
|
128
157
|
static names(): { [key: string]: string } {
|
|
129
158
|
return {
|
|
159
|
+
comment: 'Comment',
|
|
130
160
|
dstPortEnd: 'DstPortEnd',
|
|
131
161
|
dstPortStart: 'DstPortStart',
|
|
132
162
|
id: 'Id',
|
|
133
163
|
matchAction: 'MatchAction',
|
|
134
164
|
maxPktLen: 'MaxPktLen',
|
|
135
165
|
minPktLen: 'MinPktLen',
|
|
166
|
+
mode: 'Mode',
|
|
136
167
|
offset: 'Offset',
|
|
137
168
|
payloadBytes: 'PayloadBytes',
|
|
138
169
|
protocol: 'Protocol',
|
|
139
170
|
rateValue: 'RateValue',
|
|
171
|
+
rule: 'Rule',
|
|
140
172
|
seqNo: 'SeqNo',
|
|
141
173
|
srcPortEnd: 'SrcPortEnd',
|
|
142
174
|
srcPortStart: 'SrcPortStart',
|
|
175
|
+
type: 'Type',
|
|
143
176
|
};
|
|
144
177
|
}
|
|
145
178
|
|
|
146
179
|
static types(): { [key: string]: any } {
|
|
147
180
|
return {
|
|
181
|
+
comment: 'string',
|
|
148
182
|
dstPortEnd: 'number',
|
|
149
183
|
dstPortStart: 'number',
|
|
150
184
|
id: 'string',
|
|
151
185
|
matchAction: 'string',
|
|
152
186
|
maxPktLen: 'number',
|
|
153
187
|
minPktLen: 'number',
|
|
188
|
+
mode: 'number',
|
|
154
189
|
offset: 'number',
|
|
155
190
|
payloadBytes: 'string',
|
|
156
191
|
protocol: 'string',
|
|
157
192
|
rateValue: 'number',
|
|
193
|
+
rule: 'string',
|
|
158
194
|
seqNo: 'number',
|
|
159
195
|
srcPortEnd: 'number',
|
|
160
196
|
srcPortStart: 'number',
|
|
197
|
+
type: 'number',
|
|
161
198
|
};
|
|
162
199
|
}
|
|
163
200
|
|
|
@@ -175,6 +212,8 @@ export class ModifyPolicyRequestContentL4RuleListConditionListOffset extends $da
|
|
|
175
212
|
* @remarks
|
|
176
213
|
* The end position. Valid values: **0** to **1499**.
|
|
177
214
|
*
|
|
215
|
+
* > The end position must be greater than or equal to the start position.
|
|
216
|
+
*
|
|
178
217
|
* @example
|
|
179
218
|
* 1499
|
|
180
219
|
*/
|
|
@@ -214,6 +253,7 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
|
|
|
214
253
|
/**
|
|
215
254
|
* @remarks
|
|
216
255
|
* The detection content.
|
|
256
|
+
* > 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.
|
|
217
257
|
*
|
|
218
258
|
* @example
|
|
219
259
|
* abcd
|
|
@@ -223,6 +263,22 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
|
|
|
223
263
|
* @remarks
|
|
224
264
|
* The matching content.
|
|
225
265
|
*
|
|
266
|
+
* 1. When **Encode** is set to **str**, the value must meet the following requirements:
|
|
267
|
+
*
|
|
268
|
+
* - The length of **Content** does not exceed 1500.
|
|
269
|
+
*
|
|
270
|
+
* - **End** - **Start** >= the length of **Content**.
|
|
271
|
+
*
|
|
272
|
+
* 2. When **Encode** is set to **hex**, the value must meet the following requirements:
|
|
273
|
+
*
|
|
274
|
+
* - **Content** must be hexadecimal characters.
|
|
275
|
+
*
|
|
276
|
+
* - The length of **Content** must be an even number.
|
|
277
|
+
*
|
|
278
|
+
* - The length of **Content** does not exceed 3000.
|
|
279
|
+
*
|
|
280
|
+
* - **End** - **Start** + 1 >= the length of **Content** / 2.
|
|
281
|
+
*
|
|
226
282
|
* @example
|
|
227
283
|
* test**
|
|
228
284
|
*/
|
|
@@ -239,6 +295,10 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
|
|
|
239
295
|
* @remarks
|
|
240
296
|
* The character type. Valid values:
|
|
241
297
|
*
|
|
298
|
+
* - **str**: String.
|
|
299
|
+
*
|
|
300
|
+
* - **hex**: Hexadecimal.
|
|
301
|
+
*
|
|
242
302
|
* @example
|
|
243
303
|
* str
|
|
244
304
|
*/
|
|
@@ -250,7 +310,20 @@ export class ModifyPolicyRequestContentL4RuleListConditionList extends $dara.Mod
|
|
|
250
310
|
offset?: ModifyPolicyRequestContentL4RuleListConditionListOffset;
|
|
251
311
|
/**
|
|
252
312
|
* @remarks
|
|
253
|
-
* The matching pattern.
|
|
313
|
+
* The matching pattern. Valid values depend on the **Encode** field:
|
|
314
|
+
*
|
|
315
|
+
* (1) When **Encode** is set to **str**:
|
|
316
|
+
* - **contain**: Contains.
|
|
317
|
+
*
|
|
318
|
+
* - **not_contain**: Does not contain.
|
|
319
|
+
*
|
|
320
|
+
* - **regex**: Regular expression.
|
|
321
|
+
*
|
|
322
|
+
* (2) When **Encode** is set to **hex**:
|
|
323
|
+
*
|
|
324
|
+
* - **contain**: Contains.
|
|
325
|
+
*
|
|
326
|
+
* - **not_contain**: Does not contain.
|
|
254
327
|
*
|
|
255
328
|
* @example
|
|
256
329
|
* contain
|
|
@@ -306,7 +379,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
306
379
|
* The action.
|
|
307
380
|
*
|
|
308
381
|
* @example
|
|
309
|
-
*
|
|
382
|
+
* block
|
|
310
383
|
*/
|
|
311
384
|
action?: string;
|
|
312
385
|
/**
|
|
@@ -316,7 +389,7 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
316
389
|
conditionList?: ModifyPolicyRequestContentL4RuleListConditionList[];
|
|
317
390
|
/**
|
|
318
391
|
* @remarks
|
|
319
|
-
* The minimum number of bytes in a session flow
|
|
392
|
+
* The minimum number of bytes in a session flow to trigger rule matching. Valid values: **0** to **2048**.
|
|
320
393
|
*
|
|
321
394
|
* @example
|
|
322
395
|
* 0
|
|
@@ -326,6 +399,10 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
326
399
|
* @remarks
|
|
327
400
|
* The logical operator. Valid values:
|
|
328
401
|
*
|
|
402
|
+
* - **0**: Executes the action when the rule is hit.
|
|
403
|
+
*
|
|
404
|
+
* - **1**: Executes the action when the rule is not hit.
|
|
405
|
+
*
|
|
329
406
|
* @example
|
|
330
407
|
* 0
|
|
331
408
|
*/
|
|
@@ -334,6 +411,10 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
334
411
|
* @remarks
|
|
335
412
|
* The rule type. Valid values:
|
|
336
413
|
*
|
|
414
|
+
* - **hex**: Hexadecimal matching.
|
|
415
|
+
*
|
|
416
|
+
* - **char**: String matching.
|
|
417
|
+
*
|
|
337
418
|
* @example
|
|
338
419
|
* char
|
|
339
420
|
*/
|
|
@@ -352,6 +433,8 @@ export class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
352
433
|
* @remarks
|
|
353
434
|
* The rule priority. Valid values: **1** to **100**.
|
|
354
435
|
*
|
|
436
|
+
* > A smaller value indicates a higher priority.
|
|
437
|
+
*
|
|
355
438
|
* @example
|
|
356
439
|
* 1
|
|
357
440
|
*/
|
|
@@ -425,6 +508,8 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
|
|
|
425
508
|
* @remarks
|
|
426
509
|
* The match action. Valid values:
|
|
427
510
|
*
|
|
511
|
+
* - **drop**: Drop.
|
|
512
|
+
*
|
|
428
513
|
* This parameter is required.
|
|
429
514
|
*
|
|
430
515
|
* @example
|
|
@@ -435,6 +520,9 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
|
|
|
435
520
|
* @remarks
|
|
436
521
|
* The protocol type. Valid values:
|
|
437
522
|
*
|
|
523
|
+
* - **tcp**: Transmission Control Protocol.
|
|
524
|
+
* - **udp**: User Datagram Protocol.
|
|
525
|
+
*
|
|
438
526
|
* This parameter is required.
|
|
439
527
|
*
|
|
440
528
|
* @example
|
|
@@ -443,7 +531,8 @@ export class ModifyPolicyRequestContentPortRuleList extends $dara.Model {
|
|
|
443
531
|
protocol?: string;
|
|
444
532
|
/**
|
|
445
533
|
* @remarks
|
|
446
|
-
* The priority
|
|
534
|
+
* The priority, expressed as an integer.
|
|
535
|
+
* > A smaller value indicates a higher priority.
|
|
447
536
|
*
|
|
448
537
|
* This parameter is required.
|
|
449
538
|
*
|
|
@@ -511,6 +600,9 @@ export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
511
600
|
* @remarks
|
|
512
601
|
* Specifies whether to enable SIP protection. Valid values:
|
|
513
602
|
*
|
|
603
|
+
* - **true**: Enabled.
|
|
604
|
+
* - **false**: Disabled.
|
|
605
|
+
*
|
|
514
606
|
* @example
|
|
515
607
|
* true
|
|
516
608
|
*/
|
|
@@ -548,7 +640,7 @@ export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
548
640
|
sipPort?: string;
|
|
549
641
|
/**
|
|
550
642
|
* @remarks
|
|
551
|
-
* The SIP source rate limit value
|
|
643
|
+
* The SIP source rate limit value (PPS).
|
|
552
644
|
*
|
|
553
645
|
* @example
|
|
554
646
|
* 1000
|
|
@@ -556,7 +648,7 @@ export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
556
648
|
sipRate?: number;
|
|
557
649
|
/**
|
|
558
650
|
* @remarks
|
|
559
|
-
* The SIP activation threshold
|
|
651
|
+
* The SIP activation threshold (Mbit/s).
|
|
560
652
|
*
|
|
561
653
|
* @example
|
|
562
654
|
* 100
|
|
@@ -564,7 +656,7 @@ export class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
564
656
|
sipStartMbps?: number;
|
|
565
657
|
/**
|
|
566
658
|
* @remarks
|
|
567
|
-
* The SIP activation threshold
|
|
659
|
+
* The SIP activation threshold (PPS).
|
|
568
660
|
*
|
|
569
661
|
* @example
|
|
570
662
|
* 500
|
|
@@ -642,6 +734,14 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
|
|
|
642
734
|
* @remarks
|
|
643
735
|
* The source rate limiting type. Valid values:
|
|
644
736
|
*
|
|
737
|
+
* - **3**: source PPS rate limiting.
|
|
738
|
+
*
|
|
739
|
+
* - **4**: source bandwidth throttling.
|
|
740
|
+
*
|
|
741
|
+
* - **5**: source SYN PPS rate limiting.
|
|
742
|
+
*
|
|
743
|
+
* - **6**: source SYN bandwidth throttling.
|
|
744
|
+
*
|
|
645
745
|
* This parameter is required.
|
|
646
746
|
*
|
|
647
747
|
* @example
|
|
@@ -678,7 +778,7 @@ export class ModifyPolicyRequestContentSourceBlockList extends $dara.Model {
|
|
|
678
778
|
export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
679
779
|
/**
|
|
680
780
|
* @remarks
|
|
681
|
-
* The source bandwidth throttling
|
|
781
|
+
* The source bandwidth throttling rate limit, in bytes per second.
|
|
682
782
|
*
|
|
683
783
|
* @example
|
|
684
784
|
* 2048
|
|
@@ -686,7 +786,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
686
786
|
bps?: number;
|
|
687
787
|
/**
|
|
688
788
|
* @remarks
|
|
689
|
-
* The source PPS rate limit
|
|
789
|
+
* The source PPS rate limit, in packets per second.
|
|
690
790
|
*
|
|
691
791
|
* @example
|
|
692
792
|
* 64
|
|
@@ -694,7 +794,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
694
794
|
pps?: number;
|
|
695
795
|
/**
|
|
696
796
|
* @remarks
|
|
697
|
-
* The source SYN bandwidth throttling
|
|
797
|
+
* The source SYN bandwidth throttling rate limit, in bytes per second.
|
|
698
798
|
*
|
|
699
799
|
* @example
|
|
700
800
|
* 2048
|
|
@@ -702,7 +802,7 @@ export class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
702
802
|
synBps?: number;
|
|
703
803
|
/**
|
|
704
804
|
* @remarks
|
|
705
|
-
* The source SYN PPS rate limit
|
|
805
|
+
* The source SYN PPS rate limit, in packets per second.
|
|
706
806
|
*
|
|
707
807
|
* @example
|
|
708
808
|
* 64
|
|
@@ -743,7 +843,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
743
843
|
blackIpList?: string[];
|
|
744
844
|
/**
|
|
745
845
|
* @remarks
|
|
746
|
-
* The
|
|
846
|
+
* The timeout period of the IP blacklist (UNIX timestamp).
|
|
747
847
|
*
|
|
748
848
|
* @example
|
|
749
849
|
* 1716878000
|
|
@@ -767,7 +867,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
767
867
|
enableIntelligence?: boolean;
|
|
768
868
|
/**
|
|
769
869
|
* @remarks
|
|
770
|
-
* Specifies whether to enable port
|
|
870
|
+
* Specifies whether to enable port-specific mitigation.
|
|
771
871
|
*
|
|
772
872
|
* @example
|
|
773
873
|
* true
|
|
@@ -775,13 +875,17 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
775
875
|
enableL4Defense?: boolean;
|
|
776
876
|
/**
|
|
777
877
|
* @remarks
|
|
778
|
-
* The list of
|
|
878
|
+
* The list of Byte-Match Filter rules.
|
|
779
879
|
*/
|
|
780
880
|
fingerPrintRuleList?: ModifyPolicyRequestContentFingerPrintRuleList[];
|
|
781
881
|
/**
|
|
782
882
|
* @remarks
|
|
783
883
|
* The protection level of AI-based intelligent protection. Valid values:
|
|
784
884
|
*
|
|
885
|
+
* - **default**: Normal.
|
|
886
|
+
* - **weak**: Loose.
|
|
887
|
+
* - **hard**: Strict.
|
|
888
|
+
*
|
|
785
889
|
* @example
|
|
786
890
|
* default
|
|
787
891
|
*/
|
|
@@ -803,17 +907,17 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
803
907
|
reflectBlockUdpPortList?: number[];
|
|
804
908
|
/**
|
|
805
909
|
* @remarks
|
|
806
|
-
* The list of countries for location blacklist.
|
|
910
|
+
* The list of countries for the location blacklist.
|
|
807
911
|
*/
|
|
808
912
|
regionBlockCountryList?: number[];
|
|
809
913
|
/**
|
|
810
914
|
* @remarks
|
|
811
|
-
* The list of provinces for location blacklist.
|
|
915
|
+
* The list of provinces for the location blacklist.
|
|
812
916
|
*/
|
|
813
917
|
regionBlockProvinceList?: number[];
|
|
814
918
|
/**
|
|
815
919
|
* @remarks
|
|
816
|
-
* The SIP
|
|
920
|
+
* The SIP Protection Settings.
|
|
817
921
|
*/
|
|
818
922
|
sipDefense?: ModifyPolicyRequestContentSipDefense;
|
|
819
923
|
/**
|
|
@@ -833,7 +937,7 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
833
937
|
whiteIpList?: string[];
|
|
834
938
|
/**
|
|
835
939
|
* @remarks
|
|
836
|
-
* Specifies whether to
|
|
940
|
+
* 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).
|
|
837
941
|
*
|
|
838
942
|
* @example
|
|
839
943
|
* false
|
|
@@ -928,7 +1032,30 @@ export class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
928
1032
|
export class ModifyPolicyRequest extends $dara.Model {
|
|
929
1033
|
/**
|
|
930
1034
|
* @remarks
|
|
931
|
-
* The action type.
|
|
1035
|
+
* The action type. Valid values:
|
|
1036
|
+
*
|
|
1037
|
+
* - **10**: modifies the name (Name is required).
|
|
1038
|
+
* - **11**: modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policy is supported.
|
|
1039
|
+
* - **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.
|
|
1040
|
+
* - **13**: modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policy is supported.
|
|
1041
|
+
* - **20**: adds entries to blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
1042
|
+
* - **21**: deletes entries from blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
1043
|
+
* - **22**: clears the whitelist. Only IP-specific mitigation policy is supported.
|
|
1044
|
+
* - **23**: clears the blacklist. Only IP-specific mitigation policy is supported.
|
|
1045
|
+
* - **30**: modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policy is supported.
|
|
1046
|
+
* - **31**: modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policy is supported.
|
|
1047
|
+
* - **32**: modifies the source rate limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policy is supported.
|
|
1048
|
+
* - **33**: modifies the reflection attack port filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policy is supported.
|
|
1049
|
+
* - **40**: creates a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1050
|
+
* - **41**: modifies a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1051
|
+
* - **42**: deletes a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1052
|
+
* - **50**: creates a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1053
|
+
* - **51**: modifies a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1054
|
+
* - **52**: deletes a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
1055
|
+
* - **60**: modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policy is supported.
|
|
1056
|
+
* - **61**: creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
1057
|
+
* - **62**: modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
1058
|
+
* - **63**: deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
932
1059
|
*
|
|
933
1060
|
* This parameter is required.
|
|
934
1061
|
*
|
|
@@ -963,6 +1090,10 @@ export class ModifyPolicyRequest extends $dara.Model {
|
|
|
963
1090
|
* @remarks
|
|
964
1091
|
* The version of the port-specific mitigation policy. Valid values:
|
|
965
1092
|
*
|
|
1093
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
1094
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
1095
|
+
* > Only port-specific mitigation policies are supported.
|
|
1096
|
+
*
|
|
966
1097
|
* @example
|
|
967
1098
|
* 2
|
|
968
1099
|
*/
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyPolicyResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID. Alibaba Cloud generates a unique ID for each request
|
|
8
|
+
* The request ID. Alibaba Cloud generates a unique ID for each API request. You can use this ID to troubleshoot issues.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* B4B379C2-9319-4C6B-B579-FE36831****
|
|
@@ -5,7 +5,30 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The action type.
|
|
8
|
+
* The action type. Valid values:
|
|
9
|
+
*
|
|
10
|
+
* - **10**: modifies the name (Name is required).
|
|
11
|
+
* - **11**: modifies the blacklist timeout period (BlackIpListExpireAt is required). Only IP-specific mitigation policy is supported.
|
|
12
|
+
* - **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.
|
|
13
|
+
* - **13**: modifies the switch for ICMP Blocking (EnableDropIcmp is required). Only IP-specific mitigation policy is supported.
|
|
14
|
+
* - **20**: adds entries to blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
15
|
+
* - **21**: deletes entries from blacklists and whitelists (WhiteIpList and BlackIpList are optional). Only IP-specific mitigation policy is supported.
|
|
16
|
+
* - **22**: clears the whitelist. Only IP-specific mitigation policy is supported.
|
|
17
|
+
* - **23**: clears the blacklist. Only IP-specific mitigation policy is supported.
|
|
18
|
+
* - **30**: modifies the AI-based intelligent protection switch and level (EnableIntelligence and IntelligenceLevel are required). Only IP-specific mitigation policy is supported.
|
|
19
|
+
* - **31**: modifies the Location Blacklist configuration (RegionBlockCountryList and RegionBlockProvinceList are optional). Only IP-specific mitigation policy is supported.
|
|
20
|
+
* - **32**: modifies the source rate limiting configuration (SourceLimit and SourceBlockList are required). Only IP-specific mitigation policy is supported.
|
|
21
|
+
* - **33**: modifies the reflection attack port filtering (ReflectBlockUdpPortList is required). Only IP-specific mitigation policy is supported.
|
|
22
|
+
* - **40**: creates a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
23
|
+
* - **41**: modifies a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
24
|
+
* - **42**: deletes a port blocking rule (PortRuleList is required). Only IP-specific mitigation policy is supported.
|
|
25
|
+
* - **50**: creates a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
26
|
+
* - **51**: modifies a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
27
|
+
* - **52**: deletes a byte-match filter rule (FingerPrintRuleList is required). Only IP-specific mitigation policy is supported.
|
|
28
|
+
* - **60**: modifies the port-specific mitigation switch (EnableL4Defense is required). Only port-specific mitigation policy is supported.
|
|
29
|
+
* - **61**: creates a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
30
|
+
* - **62**: modifies a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
31
|
+
* - **63**: deletes a port-specific mitigation rule (L4RuleList is required). Only port-specific mitigation policy is supported.
|
|
9
32
|
*
|
|
10
33
|
* This parameter is required.
|
|
11
34
|
*
|
|
@@ -40,6 +63,10 @@ export class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
|
40
63
|
* @remarks
|
|
41
64
|
* The version of the port-specific mitigation policy. Valid values:
|
|
42
65
|
*
|
|
66
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
67
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
68
|
+
* > Only port-specific mitigation policies are supported.
|
|
69
|
+
*
|
|
43
70
|
* @example
|
|
44
71
|
* 2
|
|
45
72
|
*/
|