@alicloud/ddosbgp20180720 3.0.0 → 3.1.0
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 +89 -53
- package/dist/client.js +147 -53
- package/dist/client.js.map +1 -1
- package/dist/models/AddIpRequest.d.ts +11 -10
- package/dist/models/AddIpRequest.js.map +1 -1
- package/dist/models/AddIpResponseBody.d.ts +1 -1
- package/dist/models/AttachAssetGroupToInstanceRequest.d.ts +2 -2
- package/dist/models/AttachAssetGroupToInstanceShrinkRequest.d.ts +2 -2
- package/dist/models/AttachToPolicyRequest.d.ts +27 -10
- package/dist/models/AttachToPolicyRequest.js.map +1 -1
- package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
- package/dist/models/AttachToPolicyShrinkRequest.d.ts +12 -1
- package/dist/models/AttachToPolicyShrinkRequest.js.map +1 -1
- package/dist/models/CheckGrantRequest.d.ts +4 -3
- package/dist/models/CheckGrantRequest.js.map +1 -1
- package/dist/models/CheckGrantResponseBody.d.ts +3 -2
- package/dist/models/CheckGrantResponseBody.js.map +1 -1
- package/dist/models/CreatePolicyRequest.d.ts +15 -5
- package/dist/models/CreatePolicyRequest.js.map +1 -1
- package/dist/models/CreatePolicyResponseBody.d.ts +2 -2
- package/dist/models/DeleteIpRequest.d.ts +8 -10
- package/dist/models/DeleteIpRequest.js.map +1 -1
- package/dist/models/DeleteIpResponseBody.d.ts +1 -1
- package/dist/models/DescribeAssetGroupRequest.d.ts +4 -3
- package/dist/models/DescribeAssetGroupRequest.js.map +1 -1
- package/dist/models/DescribeAssetGroupToInstanceRequest.d.ts +5 -4
- package/dist/models/DescribeAssetGroupToInstanceRequest.js.map +1 -1
- package/dist/models/DescribeDdosOriginInstanceBillRequest.d.ts +12 -14
- package/dist/models/DescribeDdosOriginInstanceBillRequest.js.map +1 -1
- package/dist/models/DescribeDdosOriginInstanceBillResponseBody.d.ts +72 -85
- package/dist/models/DescribeDdosOriginInstanceBillResponseBody.js.map +1 -1
- package/dist/models/DescribeInstanceListRequest.d.ts +13 -9
- package/dist/models/DescribeInstanceListRequest.js.map +1 -1
- package/dist/models/DescribeInstanceListResponseBody.d.ts +28 -18
- package/dist/models/DescribeInstanceListResponseBody.js.map +1 -1
- package/dist/models/DescribeNetworkLayerInterceptsRequest.d.ts +107 -0
- package/dist/models/DescribeNetworkLayerInterceptsRequest.js +78 -0
- package/dist/models/DescribeNetworkLayerInterceptsRequest.js.map +1 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponse.d.ts +19 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponse.js +69 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponse.js.map +1 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponseBody.d.ts +144 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js +106 -0
- package/dist/models/DescribeNetworkLayerInterceptsResponseBody.js.map +1 -0
- package/dist/models/DescribePackIpListRequest.d.ts +14 -11
- package/dist/models/DescribePackIpListRequest.js.map +1 -1
- package/dist/models/DescribePackIpListResponseBody.d.ts +28 -22
- package/dist/models/DescribePackIpListResponseBody.js.map +1 -1
- package/dist/models/DescribeRdMemberListRequest.d.ts +1 -1
- package/dist/models/DescribeRdMemberListResponseBody.d.ts +2 -2
- package/dist/models/DescribeRdStatusResponseBody.d.ts +5 -3
- package/dist/models/DescribeRdStatusResponseBody.js.map +1 -1
- package/dist/models/DescribeRegionsRequest.d.ts +4 -4
- package/dist/models/DescribeRegionsResponseBody.d.ts +5 -6
- package/dist/models/DescribeRegionsResponseBody.js.map +1 -1
- package/dist/models/DescribeTrafficRequest.d.ts +16 -21
- package/dist/models/DescribeTrafficRequest.js.map +1 -1
- package/dist/models/DescribeTrafficResponseBody.d.ts +11 -12
- package/dist/models/DescribeTrafficResponseBody.js.map +1 -1
- package/dist/models/DetachFromPolicyRequest.d.ts +26 -8
- package/dist/models/DetachFromPolicyRequest.js.map +1 -1
- package/dist/models/DetachFromPolicyResponseBody.d.ts +1 -1
- package/dist/models/DetachFromPolicyShrinkRequest.d.ts +16 -6
- package/dist/models/DetachFromPolicyShrinkRequest.js.map +1 -1
- package/dist/models/DettachAssetGroupToInstanceRequest.d.ts +5 -4
- package/dist/models/DettachAssetGroupToInstanceRequest.js.map +1 -1
- package/dist/models/DettachAssetGroupToInstanceShrinkRequest.d.ts +2 -2
- package/dist/models/ListPolicyAttachmentRequest.d.ts +27 -11
- package/dist/models/ListPolicyAttachmentRequest.js.map +1 -1
- package/dist/models/ListPolicyAttachmentResponseBody.d.ts +19 -13
- package/dist/models/ListPolicyAttachmentResponseBody.js.map +1 -1
- package/dist/models/ListPolicyAttachmentShrinkRequest.d.ts +18 -9
- package/dist/models/ListPolicyAttachmentShrinkRequest.js.map +1 -1
- package/dist/models/ListPolicyRequest.d.ts +5 -16
- package/dist/models/ListPolicyRequest.js.map +1 -1
- package/dist/models/ListPolicyResponseBody.d.ts +182 -94
- package/dist/models/ListPolicyResponseBody.js +41 -1
- package/dist/models/ListPolicyResponseBody.js.map +1 -1
- package/dist/models/ModifyPolicyContentRequest.d.ts +176 -90
- package/dist/models/ModifyPolicyContentRequest.js +41 -1
- package/dist/models/ModifyPolicyContentRequest.js.map +1 -1
- package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +9 -2
- package/dist/models/ModifyPolicyContentShrinkRequest.js.map +1 -1
- package/dist/models/ModifyPolicyRequest.d.ts +181 -118
- package/dist/models/ModifyPolicyRequest.js +41 -1
- package/dist/models/ModifyPolicyRequest.js.map +1 -1
- package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyShrinkRequest.d.ts +10 -26
- package/dist/models/ModifyPolicyShrinkRequest.js.map +1 -1
- package/dist/models/ModifyRemarkRequest.d.ts +5 -7
- package/dist/models/ModifyRemarkRequest.js.map +1 -1
- package/dist/models/ReleaseDdosOriginInstanceRequest.d.ts +1 -1
- package/dist/models/model.d.ts +7 -0
- package/dist/models/model.js +34 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +160 -53
- package/src/models/AddIpRequest.ts +11 -10
- package/src/models/AddIpResponseBody.ts +1 -1
- package/src/models/AttachAssetGroupToInstanceRequest.ts +2 -2
- package/src/models/AttachAssetGroupToInstanceShrinkRequest.ts +2 -2
- package/src/models/AttachToPolicyRequest.ts +27 -10
- package/src/models/AttachToPolicyResponseBody.ts +1 -1
- package/src/models/AttachToPolicyShrinkRequest.ts +12 -1
- package/src/models/CheckGrantRequest.ts +4 -3
- package/src/models/CheckGrantResponseBody.ts +3 -2
- package/src/models/CreatePolicyRequest.ts +15 -5
- package/src/models/CreatePolicyResponseBody.ts +2 -2
- package/src/models/DeleteIpRequest.ts +8 -10
- package/src/models/DeleteIpResponseBody.ts +1 -1
- package/src/models/DescribeAssetGroupRequest.ts +4 -3
- package/src/models/DescribeAssetGroupToInstanceRequest.ts +5 -4
- package/src/models/DescribeDdosOriginInstanceBillRequest.ts +12 -14
- package/src/models/DescribeDdosOriginInstanceBillResponseBody.ts +72 -85
- package/src/models/DescribeInstanceListRequest.ts +13 -9
- package/src/models/DescribeInstanceListResponseBody.ts +28 -18
- package/src/models/DescribeNetworkLayerInterceptsRequest.ts +140 -0
- package/src/models/DescribeNetworkLayerInterceptsResponse.ts +40 -0
- package/src/models/DescribeNetworkLayerInterceptsResponseBody.ts +196 -0
- package/src/models/DescribePackIpListRequest.ts +14 -11
- package/src/models/DescribePackIpListResponseBody.ts +28 -22
- package/src/models/DescribeRdMemberListRequest.ts +1 -1
- package/src/models/DescribeRdMemberListResponseBody.ts +2 -2
- package/src/models/DescribeRdStatusResponseBody.ts +5 -3
- package/src/models/DescribeRegionsRequest.ts +4 -4
- package/src/models/DescribeRegionsResponseBody.ts +5 -6
- package/src/models/DescribeTrafficRequest.ts +16 -21
- package/src/models/DescribeTrafficResponseBody.ts +11 -12
- package/src/models/DetachFromPolicyRequest.ts +26 -8
- package/src/models/DetachFromPolicyResponseBody.ts +1 -1
- package/src/models/DetachFromPolicyShrinkRequest.ts +16 -6
- package/src/models/DettachAssetGroupToInstanceRequest.ts +5 -4
- package/src/models/DettachAssetGroupToInstanceShrinkRequest.ts +2 -2
- package/src/models/ListPolicyAttachmentRequest.ts +27 -11
- package/src/models/ListPolicyAttachmentResponseBody.ts +19 -13
- package/src/models/ListPolicyAttachmentShrinkRequest.ts +18 -9
- package/src/models/ListPolicyRequest.ts +5 -16
- package/src/models/ListPolicyResponseBody.ts +213 -94
- package/src/models/ModifyPolicyContentRequest.ts +207 -90
- package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
- package/src/models/ModifyPolicyContentShrinkRequest.ts +9 -2
- package/src/models/ModifyPolicyRequest.ts +212 -118
- package/src/models/ModifyPolicyResponseBody.ts +1 -1
- package/src/models/ModifyPolicyShrinkRequest.ts +10 -26
- package/src/models/ModifyRemarkRequest.ts +5 -7
- package/src/models/ReleaseDdosOriginInstanceRequest.ts +1 -1
- package/src/models/model.ts +7 -0
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The end of the destination port range. Valid values: **0** to **65535**.
|
|
8
|
+
* The end value of the destination port range. Valid values: **0** to **65535**.
|
|
9
9
|
*
|
|
10
10
|
* This parameter is required.
|
|
11
11
|
*
|
|
@@ -15,7 +15,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
15
15
|
dstPortEnd?: number;
|
|
16
16
|
/**
|
|
17
17
|
* @remarks
|
|
18
|
-
* The start of the destination port range. Valid values: **0** to **65535**.
|
|
18
|
+
* The start value of the destination port range. Valid values: **0** to **65535**.
|
|
19
19
|
*
|
|
20
20
|
* This parameter is required.
|
|
21
21
|
*
|
|
@@ -25,7 +25,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
25
25
|
dstPortStart?: number;
|
|
26
26
|
/**
|
|
27
27
|
* @remarks
|
|
28
|
-
* The ID
|
|
28
|
+
* The rule ID.
|
|
29
29
|
*
|
|
30
30
|
* @example
|
|
31
31
|
* 83967609-7ea5-4f6d-a6ea-380b09e****
|
|
@@ -33,12 +33,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
33
33
|
id?: string;
|
|
34
34
|
/**
|
|
35
35
|
* @remarks
|
|
36
|
-
* The action
|
|
37
|
-
*
|
|
38
|
-
* * **permit**: allows the traffic that matches the conditions in the byte-match filter rule.
|
|
39
|
-
* * **drop**: discards the traffic that matches the conditions in the byte-match filter rule.
|
|
40
|
-
* * **ip_rate**: limits rates on the source IP address whose traffic matches the conditions in the byte-match filter rule. The rate limit is specified by **RateValue**.
|
|
41
|
-
* * **session_rate**: limits the number of sessions from the source IP address whose traffic matches the conditions in the byte-match filter rule. The rate limit is specified by **RateValue**.
|
|
36
|
+
* The action to take when a fingerprint match is found. Valid values:
|
|
42
37
|
*
|
|
43
38
|
* This parameter is required.
|
|
44
39
|
*
|
|
@@ -76,7 +71,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
76
71
|
offset?: number;
|
|
77
72
|
/**
|
|
78
73
|
* @remarks
|
|
79
|
-
* The payload
|
|
74
|
+
* The detection payload, expressed in hexadecimal string format.
|
|
80
75
|
*
|
|
81
76
|
* @example
|
|
82
77
|
* abcd
|
|
@@ -86,9 +81,6 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
86
81
|
* @remarks
|
|
87
82
|
* The protocol type. Valid values:
|
|
88
83
|
*
|
|
89
|
-
* * **tcp**
|
|
90
|
-
* * **udp**
|
|
91
|
-
*
|
|
92
84
|
* This parameter is required.
|
|
93
85
|
*
|
|
94
86
|
* @example
|
|
@@ -97,9 +89,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
97
89
|
protocol?: string;
|
|
98
90
|
/**
|
|
99
91
|
* @remarks
|
|
100
|
-
* The rate limit. Valid values: **1** to **100000**.
|
|
101
|
-
*
|
|
102
|
-
* > This parameter is required when **MatchAction** is set to **ip_rate** or **session_rate**.
|
|
92
|
+
* The rate limit value. Valid values: **1** to **100000**.
|
|
103
93
|
*
|
|
104
94
|
* @example
|
|
105
95
|
* 100
|
|
@@ -107,9 +97,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
107
97
|
rateValue?: number;
|
|
108
98
|
/**
|
|
109
99
|
* @remarks
|
|
110
|
-
* The
|
|
111
|
-
*
|
|
112
|
-
* > A smaller number indicates a higher priority.
|
|
100
|
+
* The priority number, expressed as an integer.
|
|
113
101
|
*
|
|
114
102
|
* This parameter is required.
|
|
115
103
|
*
|
|
@@ -119,7 +107,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
119
107
|
seqNo?: number;
|
|
120
108
|
/**
|
|
121
109
|
* @remarks
|
|
122
|
-
* The end of the source port range. Valid values: **0** to **65535**.
|
|
110
|
+
* The end value of the source port range. Valid values: **0** to **65535**.
|
|
123
111
|
*
|
|
124
112
|
* This parameter is required.
|
|
125
113
|
*
|
|
@@ -129,7 +117,7 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
129
117
|
srcPortEnd?: number;
|
|
130
118
|
/**
|
|
131
119
|
* @remarks
|
|
132
|
-
* The start of the source port range. Valid values: **0** to **65535**.
|
|
120
|
+
* The start value of the source port range. Valid values: **0** to **65535**.
|
|
133
121
|
*
|
|
134
122
|
* This parameter is required.
|
|
135
123
|
*
|
|
@@ -183,7 +171,21 @@ export class ModifyPolicyContentRequestContentFingerPrintRuleList extends $dara.
|
|
|
183
171
|
}
|
|
184
172
|
|
|
185
173
|
export class ModifyPolicyContentRequestContentL4RuleListConditionListOffset extends $dara.Model {
|
|
174
|
+
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* The end position. Valid values: **0** to **1499**.
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* 1499
|
|
180
|
+
*/
|
|
186
181
|
end?: number;
|
|
182
|
+
/**
|
|
183
|
+
* @remarks
|
|
184
|
+
* The start position. Valid values: **0** to **1499**.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* 0
|
|
188
|
+
*/
|
|
187
189
|
start?: number;
|
|
188
190
|
static names(): { [key: string]: string } {
|
|
189
191
|
return {
|
|
@@ -211,29 +213,52 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionListOffset exte
|
|
|
211
213
|
export class ModifyPolicyContentRequestContentL4RuleListConditionList extends $dara.Model {
|
|
212
214
|
/**
|
|
213
215
|
* @remarks
|
|
214
|
-
* The
|
|
215
|
-
*
|
|
216
|
-
* > If Method is set to **char**, the value of this parameter must be ASCII strings. If Method is set to **hex**, the value of this parameter must be hexadecimal strings. Maximum length: 2,048.
|
|
216
|
+
* The detection content.
|
|
217
217
|
*
|
|
218
218
|
* @example
|
|
219
219
|
* abcd
|
|
220
220
|
*/
|
|
221
221
|
arg?: string;
|
|
222
|
+
/**
|
|
223
|
+
* @remarks
|
|
224
|
+
* The matching content.
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* test**
|
|
228
|
+
*/
|
|
222
229
|
content?: string;
|
|
223
230
|
/**
|
|
224
231
|
* @remarks
|
|
225
|
-
* The
|
|
232
|
+
* The detection window length. Valid values: **1** to **2048**.
|
|
226
233
|
*
|
|
227
234
|
* @example
|
|
228
235
|
* 1200
|
|
229
236
|
*/
|
|
230
237
|
depth?: number;
|
|
238
|
+
/**
|
|
239
|
+
* @remarks
|
|
240
|
+
* The character type. Valid values:
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* str
|
|
244
|
+
*/
|
|
231
245
|
encode?: string;
|
|
246
|
+
/**
|
|
247
|
+
* @remarks
|
|
248
|
+
* The matching range.
|
|
249
|
+
*/
|
|
232
250
|
offset?: ModifyPolicyContentRequestContentL4RuleListConditionListOffset;
|
|
251
|
+
/**
|
|
252
|
+
* @remarks
|
|
253
|
+
* The matching pattern. Valid values:
|
|
254
|
+
*
|
|
255
|
+
* @example
|
|
256
|
+
* contain
|
|
257
|
+
*/
|
|
233
258
|
pattern?: string;
|
|
234
259
|
/**
|
|
235
260
|
* @remarks
|
|
236
|
-
* The start position
|
|
261
|
+
* The detection start position. Valid values: **0** to **2047**.
|
|
237
262
|
*
|
|
238
263
|
* @example
|
|
239
264
|
* 0
|
|
@@ -278,9 +303,7 @@ export class ModifyPolicyContentRequestContentL4RuleListConditionList extends $d
|
|
|
278
303
|
export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
279
304
|
/**
|
|
280
305
|
* @remarks
|
|
281
|
-
* The action
|
|
282
|
-
*
|
|
283
|
-
* * **2**: The traffic is discarded.
|
|
306
|
+
* The action.
|
|
284
307
|
*
|
|
285
308
|
* @example
|
|
286
309
|
* 2
|
|
@@ -288,12 +311,12 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
288
311
|
action?: string;
|
|
289
312
|
/**
|
|
290
313
|
* @remarks
|
|
291
|
-
* The
|
|
314
|
+
* The list of detection conditions.
|
|
292
315
|
*/
|
|
293
316
|
conditionList?: ModifyPolicyContentRequestContentL4RuleListConditionList[];
|
|
294
317
|
/**
|
|
295
318
|
* @remarks
|
|
296
|
-
* The minimum number of bytes in a session
|
|
319
|
+
* The minimum number of bytes in a session flow that triggers rule matching. Valid values: **0** to **2048**.
|
|
297
320
|
*
|
|
298
321
|
* @example
|
|
299
322
|
* 0
|
|
@@ -301,10 +324,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
301
324
|
limited?: number;
|
|
302
325
|
/**
|
|
303
326
|
* @remarks
|
|
304
|
-
* The
|
|
305
|
-
*
|
|
306
|
-
* * **0**: If the rule is matched, the action specified in the rule is performed.
|
|
307
|
-
* * **1**: If the rule is not matched, the action specified in the rule is performed.
|
|
327
|
+
* The logical operator. Valid values:
|
|
308
328
|
*
|
|
309
329
|
* @example
|
|
310
330
|
* 0
|
|
@@ -312,10 +332,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
312
332
|
match?: string;
|
|
313
333
|
/**
|
|
314
334
|
* @remarks
|
|
315
|
-
* The type
|
|
316
|
-
*
|
|
317
|
-
* * **char**: string match.
|
|
318
|
-
* * **hex**: hexadecimal string match.
|
|
335
|
+
* The rule type. Valid values:
|
|
319
336
|
*
|
|
320
337
|
* @example
|
|
321
338
|
* char
|
|
@@ -323,7 +340,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
323
340
|
method?: string;
|
|
324
341
|
/**
|
|
325
342
|
* @remarks
|
|
326
|
-
* The name
|
|
343
|
+
* The rule name.
|
|
327
344
|
*
|
|
328
345
|
* This parameter is required.
|
|
329
346
|
*
|
|
@@ -333,9 +350,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
333
350
|
name?: string;
|
|
334
351
|
/**
|
|
335
352
|
* @remarks
|
|
336
|
-
* The priority
|
|
337
|
-
*
|
|
338
|
-
* > A smaller value indicates a higher priority.
|
|
353
|
+
* The rule priority. Valid values: 1 to 100.
|
|
339
354
|
*
|
|
340
355
|
* @example
|
|
341
356
|
* 1
|
|
@@ -380,7 +395,7 @@ export class ModifyPolicyContentRequestContentL4RuleList extends $dara.Model {
|
|
|
380
395
|
export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
381
396
|
/**
|
|
382
397
|
* @remarks
|
|
383
|
-
* The end of the destination port range. Valid values: **0** to **65535**.
|
|
398
|
+
* The end value of the destination port range. Valid values: **0** to **65535**.
|
|
384
399
|
*
|
|
385
400
|
* This parameter is required.
|
|
386
401
|
*
|
|
@@ -390,7 +405,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
390
405
|
dstPortEnd?: number;
|
|
391
406
|
/**
|
|
392
407
|
* @remarks
|
|
393
|
-
* The start of the destination port range. Valid values: **0** to **65535**.
|
|
408
|
+
* The start value of the destination port range. Valid values: **0** to **65535**.
|
|
394
409
|
*
|
|
395
410
|
* This parameter is required.
|
|
396
411
|
*
|
|
@@ -400,7 +415,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
400
415
|
dstPortStart?: number;
|
|
401
416
|
/**
|
|
402
417
|
* @remarks
|
|
403
|
-
* The ID
|
|
418
|
+
* The rule ID.
|
|
404
419
|
*
|
|
405
420
|
* @example
|
|
406
421
|
* 412a7312-58ff-4e32-a202-0ab0*******
|
|
@@ -408,9 +423,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
408
423
|
id?: string;
|
|
409
424
|
/**
|
|
410
425
|
* @remarks
|
|
411
|
-
* The action
|
|
412
|
-
*
|
|
413
|
-
* * **drop**: The traffic is discarded.
|
|
426
|
+
* The match action. Valid values:
|
|
414
427
|
*
|
|
415
428
|
* This parameter is required.
|
|
416
429
|
*
|
|
@@ -422,9 +435,6 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
422
435
|
* @remarks
|
|
423
436
|
* The protocol type. Valid values:
|
|
424
437
|
*
|
|
425
|
-
* * **tcp**
|
|
426
|
-
* * **udp**
|
|
427
|
-
*
|
|
428
438
|
* This parameter is required.
|
|
429
439
|
*
|
|
430
440
|
* @example
|
|
@@ -433,9 +443,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
433
443
|
protocol?: string;
|
|
434
444
|
/**
|
|
435
445
|
* @remarks
|
|
436
|
-
* The
|
|
437
|
-
*
|
|
438
|
-
* > A smaller number indicates a higher priority.
|
|
446
|
+
* The priority number, expressed as an integer.
|
|
439
447
|
*
|
|
440
448
|
* This parameter is required.
|
|
441
449
|
*
|
|
@@ -445,7 +453,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
445
453
|
seqNo?: number;
|
|
446
454
|
/**
|
|
447
455
|
* @remarks
|
|
448
|
-
* The end of the source port range. Valid values: **0** to **65535**.
|
|
456
|
+
* The end value of the source port range. Valid values: **0** to **65535**.
|
|
449
457
|
*
|
|
450
458
|
* This parameter is required.
|
|
451
459
|
*
|
|
@@ -455,7 +463,7 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
455
463
|
srcPortEnd?: number;
|
|
456
464
|
/**
|
|
457
465
|
* @remarks
|
|
458
|
-
* The start of the source port range. Valid values: **0** to **65535**.
|
|
466
|
+
* The start value of the source port range. Valid values: **0** to **65535**.
|
|
459
467
|
*
|
|
460
468
|
* This parameter is required.
|
|
461
469
|
*
|
|
@@ -498,10 +506,111 @@ export class ModifyPolicyContentRequestContentPortRuleList extends $dara.Model {
|
|
|
498
506
|
}
|
|
499
507
|
}
|
|
500
508
|
|
|
509
|
+
export class ModifyPolicyContentRequestContentSipDefense extends $dara.Model {
|
|
510
|
+
/**
|
|
511
|
+
* @remarks
|
|
512
|
+
* Specifies whether to enable SIP protection. Valid values:
|
|
513
|
+
*
|
|
514
|
+
* @example
|
|
515
|
+
* true
|
|
516
|
+
*/
|
|
517
|
+
enable?: boolean;
|
|
518
|
+
/**
|
|
519
|
+
* @remarks
|
|
520
|
+
* The SIP protection level.
|
|
521
|
+
*
|
|
522
|
+
* @example
|
|
523
|
+
* normal
|
|
524
|
+
*/
|
|
525
|
+
level?: string;
|
|
526
|
+
/**
|
|
527
|
+
* @remarks
|
|
528
|
+
* Specifies whether to enable SIP defense mode.
|
|
529
|
+
*/
|
|
530
|
+
sipDefend?: boolean;
|
|
531
|
+
/**
|
|
532
|
+
* @remarks
|
|
533
|
+
* Specifies whether to enable SIP learning mode.
|
|
534
|
+
*/
|
|
535
|
+
sipLearn?: boolean;
|
|
536
|
+
/**
|
|
537
|
+
* @remarks
|
|
538
|
+
* Specifies whether to enable the SIP source rate limiting module.
|
|
539
|
+
*/
|
|
540
|
+
sipModule?: boolean;
|
|
541
|
+
/**
|
|
542
|
+
* @remarks
|
|
543
|
+
* The SIP protection port. Valid values: **1** to **65535**.
|
|
544
|
+
*
|
|
545
|
+
* @example
|
|
546
|
+
* 5060
|
|
547
|
+
*/
|
|
548
|
+
sipPort?: string;
|
|
549
|
+
/**
|
|
550
|
+
* @remarks
|
|
551
|
+
* The SIP source rate limit value in PPS.
|
|
552
|
+
*
|
|
553
|
+
* @example
|
|
554
|
+
* 1000
|
|
555
|
+
*/
|
|
556
|
+
sipRate?: number;
|
|
557
|
+
/**
|
|
558
|
+
* @remarks
|
|
559
|
+
* The SIP activation threshold in Mbit/s.
|
|
560
|
+
*
|
|
561
|
+
* @example
|
|
562
|
+
* 100
|
|
563
|
+
*/
|
|
564
|
+
sipStartMbps?: number;
|
|
565
|
+
/**
|
|
566
|
+
* @remarks
|
|
567
|
+
* The SIP activation threshold in PPS.
|
|
568
|
+
*
|
|
569
|
+
* @example
|
|
570
|
+
* 500
|
|
571
|
+
*/
|
|
572
|
+
sipStartPps?: number;
|
|
573
|
+
static names(): { [key: string]: string } {
|
|
574
|
+
return {
|
|
575
|
+
enable: 'Enable',
|
|
576
|
+
level: 'Level',
|
|
577
|
+
sipDefend: 'SipDefend',
|
|
578
|
+
sipLearn: 'SipLearn',
|
|
579
|
+
sipModule: 'SipModule',
|
|
580
|
+
sipPort: 'SipPort',
|
|
581
|
+
sipRate: 'SipRate',
|
|
582
|
+
sipStartMbps: 'SipStartMbps',
|
|
583
|
+
sipStartPps: 'SipStartPps',
|
|
584
|
+
};
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
static types(): { [key: string]: any } {
|
|
588
|
+
return {
|
|
589
|
+
enable: 'boolean',
|
|
590
|
+
level: 'string',
|
|
591
|
+
sipDefend: 'boolean',
|
|
592
|
+
sipLearn: 'boolean',
|
|
593
|
+
sipModule: 'boolean',
|
|
594
|
+
sipPort: 'string',
|
|
595
|
+
sipRate: 'number',
|
|
596
|
+
sipStartMbps: 'number',
|
|
597
|
+
sipStartPps: 'number',
|
|
598
|
+
};
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
validate() {
|
|
602
|
+
super.validate();
|
|
603
|
+
}
|
|
604
|
+
|
|
605
|
+
constructor(map?: { [key: string]: any }) {
|
|
606
|
+
super(map);
|
|
607
|
+
}
|
|
608
|
+
}
|
|
609
|
+
|
|
501
610
|
export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Model {
|
|
502
611
|
/**
|
|
503
612
|
* @remarks
|
|
504
|
-
* The
|
|
613
|
+
* The duration for which the source IP address is added to the blacklist. Unit: seconds.
|
|
505
614
|
*
|
|
506
615
|
* This parameter is required.
|
|
507
616
|
*
|
|
@@ -511,7 +620,7 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
|
|
|
511
620
|
blockExpireSeconds?: number;
|
|
512
621
|
/**
|
|
513
622
|
* @remarks
|
|
514
|
-
* The statistical period
|
|
623
|
+
* The statistical period for source rate limiting blacklisting. Unit: seconds.
|
|
515
624
|
*
|
|
516
625
|
* This parameter is required.
|
|
517
626
|
*
|
|
@@ -521,7 +630,7 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
|
|
|
521
630
|
everySeconds?: number;
|
|
522
631
|
/**
|
|
523
632
|
* @remarks
|
|
524
|
-
* The number of times
|
|
633
|
+
* The number of times the source IP address exceeds the rate limit within one statistical period.
|
|
525
634
|
*
|
|
526
635
|
* This parameter is required.
|
|
527
636
|
*
|
|
@@ -531,12 +640,7 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
|
|
|
531
640
|
exceedLimitTimes?: number;
|
|
532
641
|
/**
|
|
533
642
|
* @remarks
|
|
534
|
-
* The
|
|
535
|
-
*
|
|
536
|
-
* * **3**: the pps limit on source IP addresses.
|
|
537
|
-
* * **4**: the bandwidth limit on source IP addresses.
|
|
538
|
-
* * **5**: the pps limit on source SYN packets.
|
|
539
|
-
* * **6**: the bandwidth limit on source SYN packets.
|
|
643
|
+
* The source rate limiting type. Valid values:
|
|
540
644
|
*
|
|
541
645
|
* This parameter is required.
|
|
542
646
|
*
|
|
@@ -574,7 +678,7 @@ export class ModifyPolicyContentRequestContentSourceBlockList extends $dara.Mode
|
|
|
574
678
|
export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
|
|
575
679
|
/**
|
|
576
680
|
* @remarks
|
|
577
|
-
* The bandwidth
|
|
681
|
+
* The source bandwidth throttling value, in bytes per second.
|
|
578
682
|
*
|
|
579
683
|
* @example
|
|
580
684
|
* 2048
|
|
@@ -582,7 +686,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
|
|
|
582
686
|
bps?: number;
|
|
583
687
|
/**
|
|
584
688
|
* @remarks
|
|
585
|
-
* The
|
|
689
|
+
* The source PPS rate limit, in packets per second.
|
|
586
690
|
*
|
|
587
691
|
* @example
|
|
588
692
|
* 64
|
|
@@ -590,7 +694,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
|
|
|
590
694
|
pps?: number;
|
|
591
695
|
/**
|
|
592
696
|
* @remarks
|
|
593
|
-
* The
|
|
697
|
+
* The source SYN bandwidth throttling value, in bytes per second.
|
|
594
698
|
*
|
|
595
699
|
* @example
|
|
596
700
|
* 2048
|
|
@@ -598,7 +702,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
|
|
|
598
702
|
synBps?: number;
|
|
599
703
|
/**
|
|
600
704
|
* @remarks
|
|
601
|
-
* The
|
|
705
|
+
* The source SYN PPS rate limit, in packets per second.
|
|
602
706
|
*
|
|
603
707
|
* @example
|
|
604
708
|
* 64
|
|
@@ -634,7 +738,7 @@ export class ModifyPolicyContentRequestContentSourceLimit extends $dara.Model {
|
|
|
634
738
|
export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
635
739
|
/**
|
|
636
740
|
* @remarks
|
|
637
|
-
* The
|
|
741
|
+
* The expiration time of the IP blacklist (UNIX timestamp).
|
|
638
742
|
*
|
|
639
743
|
* @example
|
|
640
744
|
* 1716878000
|
|
@@ -642,7 +746,7 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
642
746
|
blackIpListExpireAt?: number;
|
|
643
747
|
/**
|
|
644
748
|
* @remarks
|
|
645
|
-
* Specifies whether to
|
|
749
|
+
* Specifies whether to disable the ICMP protocol.
|
|
646
750
|
*
|
|
647
751
|
* @example
|
|
648
752
|
* true
|
|
@@ -650,7 +754,7 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
650
754
|
enableDropIcmp?: boolean;
|
|
651
755
|
/**
|
|
652
756
|
* @remarks
|
|
653
|
-
* Specifies whether to enable intelligent protection.
|
|
757
|
+
* Specifies whether to enable AI-based intelligent protection.
|
|
654
758
|
*
|
|
655
759
|
* @example
|
|
656
760
|
* true
|
|
@@ -658,7 +762,7 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
658
762
|
enableIntelligence?: boolean;
|
|
659
763
|
/**
|
|
660
764
|
* @remarks
|
|
661
|
-
* Specifies whether to enable port
|
|
765
|
+
* Specifies whether to enable port protection.
|
|
662
766
|
*
|
|
663
767
|
* @example
|
|
664
768
|
* true
|
|
@@ -666,16 +770,12 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
666
770
|
enableL4Defense?: boolean;
|
|
667
771
|
/**
|
|
668
772
|
* @remarks
|
|
669
|
-
* The byte-match filter rules.
|
|
773
|
+
* The list of byte-match filter rules.
|
|
670
774
|
*/
|
|
671
775
|
fingerPrintRuleList?: ModifyPolicyContentRequestContentFingerPrintRuleList[];
|
|
672
776
|
/**
|
|
673
777
|
* @remarks
|
|
674
|
-
* The level of intelligent protection. Valid values:
|
|
675
|
-
*
|
|
676
|
-
* * **default**: normal.
|
|
677
|
-
* * **hard**: strict.
|
|
678
|
-
* * **weak**: loose.
|
|
778
|
+
* The protection level of AI-based intelligent protection. Valid values:
|
|
679
779
|
*
|
|
680
780
|
* @example
|
|
681
781
|
* default
|
|
@@ -683,42 +783,47 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
683
783
|
intelligenceLevel?: string;
|
|
684
784
|
/**
|
|
685
785
|
* @remarks
|
|
686
|
-
* The port-specific mitigation rules.
|
|
786
|
+
* The list of port-specific mitigation rules.
|
|
687
787
|
*/
|
|
688
788
|
l4RuleList?: ModifyPolicyContentRequestContentL4RuleList[];
|
|
689
789
|
/**
|
|
690
790
|
* @remarks
|
|
691
|
-
* The port blocking rules.
|
|
791
|
+
* The list of port blocking rules.
|
|
692
792
|
*/
|
|
693
793
|
portRuleList?: ModifyPolicyContentRequestContentPortRuleList[];
|
|
694
794
|
/**
|
|
695
795
|
* @remarks
|
|
696
|
-
* The
|
|
796
|
+
* The list of ports filtered by reflection attack prevention.
|
|
697
797
|
*/
|
|
698
798
|
reflectBlockUdpPortList?: number[];
|
|
699
799
|
/**
|
|
700
800
|
* @remarks
|
|
701
|
-
* The countries
|
|
801
|
+
* The list of countries for location blacklist.
|
|
702
802
|
*/
|
|
703
803
|
regionBlockCountryList?: number[];
|
|
704
804
|
/**
|
|
705
805
|
* @remarks
|
|
706
|
-
* The provinces
|
|
806
|
+
* The list of provinces for location blacklist.
|
|
707
807
|
*/
|
|
708
808
|
regionBlockProvinceList?: number[];
|
|
709
809
|
/**
|
|
710
810
|
* @remarks
|
|
711
|
-
* The
|
|
811
|
+
* The SIP Protection Settings.
|
|
812
|
+
*/
|
|
813
|
+
sipDefense?: ModifyPolicyContentRequestContentSipDefense;
|
|
814
|
+
/**
|
|
815
|
+
* @remarks
|
|
816
|
+
* The source rate limiting blacklist.
|
|
712
817
|
*/
|
|
713
818
|
sourceBlockList?: ModifyPolicyContentRequestContentSourceBlockList[];
|
|
714
819
|
/**
|
|
715
820
|
* @remarks
|
|
716
|
-
* The
|
|
821
|
+
* The source rate limiting configuration.
|
|
717
822
|
*/
|
|
718
823
|
sourceLimit?: ModifyPolicyContentRequestContentSourceLimit;
|
|
719
824
|
/**
|
|
720
825
|
* @remarks
|
|
721
|
-
* Specifies whether to
|
|
826
|
+
* Specifies whether to whitelist the back-to-origin IP addresses of Anti-DDoS Pro and Anti-DDoS Premium (the Chinese mainland & outside the Chinese mainland).
|
|
722
827
|
*
|
|
723
828
|
* @example
|
|
724
829
|
* false
|
|
@@ -737,6 +842,7 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
737
842
|
reflectBlockUdpPortList: 'ReflectBlockUdpPortList',
|
|
738
843
|
regionBlockCountryList: 'RegionBlockCountryList',
|
|
739
844
|
regionBlockProvinceList: 'RegionBlockProvinceList',
|
|
845
|
+
sipDefense: 'SipDefense',
|
|
740
846
|
sourceBlockList: 'SourceBlockList',
|
|
741
847
|
sourceLimit: 'SourceLimit',
|
|
742
848
|
whitenGfbrNets: 'WhitenGfbrNets',
|
|
@@ -756,6 +862,7 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
756
862
|
reflectBlockUdpPortList: { 'type': 'array', 'itemType': 'number' },
|
|
757
863
|
regionBlockCountryList: { 'type': 'array', 'itemType': 'number' },
|
|
758
864
|
regionBlockProvinceList: { 'type': 'array', 'itemType': 'number' },
|
|
865
|
+
sipDefense: ModifyPolicyContentRequestContentSipDefense,
|
|
759
866
|
sourceBlockList: { 'type': 'array', 'itemType': ModifyPolicyContentRequestContentSourceBlockList },
|
|
760
867
|
sourceLimit: ModifyPolicyContentRequestContentSourceLimit,
|
|
761
868
|
whitenGfbrNets: 'boolean',
|
|
@@ -781,6 +888,9 @@ export class ModifyPolicyContentRequestContent extends $dara.Model {
|
|
|
781
888
|
if(Array.isArray(this.regionBlockProvinceList)) {
|
|
782
889
|
$dara.Model.validateArray(this.regionBlockProvinceList);
|
|
783
890
|
}
|
|
891
|
+
if(this.sipDefense && typeof (this.sipDefense as any).validate === 'function') {
|
|
892
|
+
(this.sipDefense as any).validate();
|
|
893
|
+
}
|
|
784
894
|
if(Array.isArray(this.sourceBlockList)) {
|
|
785
895
|
$dara.Model.validateArray(this.sourceBlockList);
|
|
786
896
|
}
|
|
@@ -803,7 +913,7 @@ export class ModifyPolicyContentRequest extends $dara.Model {
|
|
|
803
913
|
content?: ModifyPolicyContentRequestContent;
|
|
804
914
|
/**
|
|
805
915
|
* @remarks
|
|
806
|
-
* The ID
|
|
916
|
+
* The policy ID.
|
|
807
917
|
*
|
|
808
918
|
* This parameter is required.
|
|
809
919
|
*
|
|
@@ -813,12 +923,19 @@ export class ModifyPolicyContentRequest extends $dara.Model {
|
|
|
813
923
|
id?: string;
|
|
814
924
|
/**
|
|
815
925
|
* @remarks
|
|
816
|
-
* The name
|
|
926
|
+
* The policy name.
|
|
817
927
|
*
|
|
818
928
|
* @example
|
|
819
929
|
* demo**
|
|
820
930
|
*/
|
|
821
931
|
name?: string;
|
|
932
|
+
/**
|
|
933
|
+
* @remarks
|
|
934
|
+
* The version of the port-specific mitigation policy. Valid values:
|
|
935
|
+
*
|
|
936
|
+
* @example
|
|
937
|
+
* 2
|
|
938
|
+
*/
|
|
822
939
|
portVersion?: string;
|
|
823
940
|
static names(): { [key: string]: string } {
|
|
824
941
|
return {
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyPolicyContentResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID.
|
|
8
|
+
* The request ID. Alibaba Cloud generates a unique ID for each request, which can be used for troubleshooting and diagnostics.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* 3777EF25-940B-51F4-BB1D-99B5********
|
|
@@ -10,7 +10,7 @@ export class ModifyPolicyContentShrinkRequest extends $dara.Model {
|
|
|
10
10
|
contentShrink?: string;
|
|
11
11
|
/**
|
|
12
12
|
* @remarks
|
|
13
|
-
* The ID
|
|
13
|
+
* The policy ID.
|
|
14
14
|
*
|
|
15
15
|
* This parameter is required.
|
|
16
16
|
*
|
|
@@ -20,12 +20,19 @@ export class ModifyPolicyContentShrinkRequest extends $dara.Model {
|
|
|
20
20
|
id?: string;
|
|
21
21
|
/**
|
|
22
22
|
* @remarks
|
|
23
|
-
* The name
|
|
23
|
+
* The policy name.
|
|
24
24
|
*
|
|
25
25
|
* @example
|
|
26
26
|
* demo**
|
|
27
27
|
*/
|
|
28
28
|
name?: string;
|
|
29
|
+
/**
|
|
30
|
+
* @remarks
|
|
31
|
+
* The version of the port-specific mitigation policy. Valid values:
|
|
32
|
+
*
|
|
33
|
+
* @example
|
|
34
|
+
* 2
|
|
35
|
+
*/
|
|
29
36
|
portVersion?: string;
|
|
30
37
|
static names(): { [key: string]: string } {
|
|
31
38
|
return {
|