@alicloud/ddosbgp20180720 3.1.2 → 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 -18
- package/dist/client.js.map +1 -1
- package/dist/models/AttachToPolicyRequest.d.ts +2 -2
- package/dist/models/AttachToPolicyResponseBody.d.ts +1 -1
- package/dist/models/AttachToPolicyShrinkRequest.d.ts +2 -2
- 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/ListPolicyResponseBody.d.ts +36 -36
- package/dist/models/ModifyPolicyContentRequest.d.ts +43 -43
- package/dist/models/ModifyPolicyContentResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyContentShrinkRequest.d.ts +2 -2
- package/dist/models/ModifyPolicyRequest.d.ts +64 -64
- package/dist/models/ModifyPolicyResponseBody.d.ts +1 -1
- package/dist/models/ModifyPolicyShrinkRequest.d.ts +25 -25
- package/package.json +1 -1
- package/src/client.ts +57 -18
- package/src/models/AttachToPolicyRequest.ts +2 -2
- package/src/models/AttachToPolicyResponseBody.ts +1 -1
- package/src/models/AttachToPolicyShrinkRequest.ts +2 -2
- 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/ListPolicyResponseBody.ts +36 -36
- package/src/models/ModifyPolicyContentRequest.ts +43 -43
- package/src/models/ModifyPolicyContentResponseBody.ts +1 -1
- package/src/models/ModifyPolicyContentShrinkRequest.ts +2 -2
- package/src/models/ModifyPolicyRequest.ts +64 -64
- package/src/models/ModifyPolicyResponseBody.ts +1 -1
- package/src/models/ModifyPolicyShrinkRequest.ts +25 -25
|
@@ -38,8 +38,8 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
38
38
|
*
|
|
39
39
|
* - **accept**: Allows traffic that matches the fingerprint.
|
|
40
40
|
* - **drop**: Drops traffic that matches the fingerprint.
|
|
41
|
-
* - **ip_rate**: Rate-limits the source IP address of traffic that matches the fingerprint.
|
|
42
|
-
* - **session_rate**: Rate-limits the source session of 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
43
|
*
|
|
44
44
|
* This parameter is required.
|
|
45
45
|
*
|
|
@@ -81,7 +81,7 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
81
81
|
offset?: number;
|
|
82
82
|
/**
|
|
83
83
|
* @remarks
|
|
84
|
-
* The detection payload.
|
|
84
|
+
* The detection payload. The value is in hexadecimal string format.
|
|
85
85
|
*
|
|
86
86
|
* @example
|
|
87
87
|
* abcd
|
|
@@ -118,8 +118,8 @@ export declare class ModifyPolicyRequestContentFingerPrintRuleList extends $dara
|
|
|
118
118
|
rule?: string;
|
|
119
119
|
/**
|
|
120
120
|
* @remarks
|
|
121
|
-
* The priority
|
|
122
|
-
* > A smaller
|
|
121
|
+
* The priority, expressed as an integer.
|
|
122
|
+
* > A smaller value indicates a higher priority.
|
|
123
123
|
*
|
|
124
124
|
* This parameter is required.
|
|
125
125
|
*
|
|
@@ -206,19 +206,19 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
206
206
|
* @remarks
|
|
207
207
|
* The matching content.
|
|
208
208
|
*
|
|
209
|
-
* 1. When **Encode** is set to **str**, the
|
|
209
|
+
* 1. When **Encode** is set to **str**, the value must meet the following requirements:
|
|
210
210
|
*
|
|
211
|
-
* - The length of **Content**
|
|
211
|
+
* - The length of **Content** does not exceed 1500.
|
|
212
212
|
*
|
|
213
213
|
* - **End** - **Start** >= the length of **Content**.
|
|
214
214
|
*
|
|
215
|
-
* 2. When **Encode** is set to **hex**, the
|
|
215
|
+
* 2. When **Encode** is set to **hex**, the value must meet the following requirements:
|
|
216
216
|
*
|
|
217
217
|
* - **Content** must be hexadecimal characters.
|
|
218
218
|
*
|
|
219
219
|
* - The length of **Content** must be an even number.
|
|
220
220
|
*
|
|
221
|
-
* - The length of **Content**
|
|
221
|
+
* - The length of **Content** does not exceed 3000.
|
|
222
222
|
*
|
|
223
223
|
* - **End** - **Start** + 1 >= the length of **Content** / 2.
|
|
224
224
|
*
|
|
@@ -238,9 +238,9 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
238
238
|
* @remarks
|
|
239
239
|
* The character type. Valid values:
|
|
240
240
|
*
|
|
241
|
-
* - **str**:
|
|
241
|
+
* - **str**: String.
|
|
242
242
|
*
|
|
243
|
-
* - **hex**:
|
|
243
|
+
* - **hex**: Hexadecimal.
|
|
244
244
|
*
|
|
245
245
|
* @example
|
|
246
246
|
* str
|
|
@@ -253,20 +253,20 @@ export declare class ModifyPolicyRequestContentL4RuleListConditionList extends $
|
|
|
253
253
|
offset?: ModifyPolicyRequestContentL4RuleListConditionListOffset;
|
|
254
254
|
/**
|
|
255
255
|
* @remarks
|
|
256
|
-
* The matching pattern. Valid values
|
|
256
|
+
* The matching pattern. Valid values depend on the **Encode** field:
|
|
257
257
|
*
|
|
258
|
-
* (1) When **Encode** is set to **str
|
|
259
|
-
* - **contain**:
|
|
258
|
+
* (1) When **Encode** is set to **str**:
|
|
259
|
+
* - **contain**: Contains.
|
|
260
260
|
*
|
|
261
|
-
* - **not_contain**:
|
|
261
|
+
* - **not_contain**: Does not contain.
|
|
262
262
|
*
|
|
263
|
-
* - **regex**:
|
|
263
|
+
* - **regex**: Regular expression.
|
|
264
264
|
*
|
|
265
|
-
* (2) When **Encode** is set to **hex
|
|
265
|
+
* (2) When **Encode** is set to **hex**:
|
|
266
266
|
*
|
|
267
|
-
* - **contain**:
|
|
267
|
+
* - **contain**: Contains.
|
|
268
268
|
*
|
|
269
|
-
* - **not_contain**:
|
|
269
|
+
* - **not_contain**: Does not contain.
|
|
270
270
|
*
|
|
271
271
|
* @example
|
|
272
272
|
* contain
|
|
@@ -307,7 +307,7 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
307
307
|
conditionList?: ModifyPolicyRequestContentL4RuleListConditionList[];
|
|
308
308
|
/**
|
|
309
309
|
* @remarks
|
|
310
|
-
* 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**.
|
|
311
311
|
*
|
|
312
312
|
* @example
|
|
313
313
|
* 0
|
|
@@ -317,9 +317,9 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
317
317
|
* @remarks
|
|
318
318
|
* The logical operator. Valid values:
|
|
319
319
|
*
|
|
320
|
-
* - **0**:
|
|
320
|
+
* - **0**: Executes the action when the rule is hit.
|
|
321
321
|
*
|
|
322
|
-
* - **1**:
|
|
322
|
+
* - **1**: Executes the action when the rule is not hit.
|
|
323
323
|
*
|
|
324
324
|
* @example
|
|
325
325
|
* 0
|
|
@@ -329,9 +329,9 @@ export declare class ModifyPolicyRequestContentL4RuleList extends $dara.Model {
|
|
|
329
329
|
* @remarks
|
|
330
330
|
* The rule type. Valid values:
|
|
331
331
|
*
|
|
332
|
-
* - **hex**:
|
|
332
|
+
* - **hex**: Hexadecimal matching.
|
|
333
333
|
*
|
|
334
|
-
* - **char**:
|
|
334
|
+
* - **char**: String matching.
|
|
335
335
|
*
|
|
336
336
|
* @example
|
|
337
337
|
* char
|
|
@@ -401,7 +401,7 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
401
401
|
* @remarks
|
|
402
402
|
* The match action. Valid values:
|
|
403
403
|
*
|
|
404
|
-
* - **drop**:
|
|
404
|
+
* - **drop**: Drop.
|
|
405
405
|
*
|
|
406
406
|
* This parameter is required.
|
|
407
407
|
*
|
|
@@ -424,8 +424,8 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
424
424
|
protocol?: string;
|
|
425
425
|
/**
|
|
426
426
|
* @remarks
|
|
427
|
-
* The priority
|
|
428
|
-
* > A smaller
|
|
427
|
+
* The priority, expressed as an integer.
|
|
428
|
+
* > A smaller value indicates a higher priority.
|
|
429
429
|
*
|
|
430
430
|
* This parameter is required.
|
|
431
431
|
*
|
|
@@ -467,7 +467,7 @@ export declare class ModifyPolicyRequestContentPortRuleList extends $dara.Model
|
|
|
467
467
|
export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
468
468
|
/**
|
|
469
469
|
* @remarks
|
|
470
|
-
* Specifies whether SIP protection
|
|
470
|
+
* Specifies whether to enable SIP protection. Valid values:
|
|
471
471
|
*
|
|
472
472
|
* - **true**: Enabled.
|
|
473
473
|
* - **false**: Disabled.
|
|
@@ -509,7 +509,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
509
509
|
sipPort?: string;
|
|
510
510
|
/**
|
|
511
511
|
* @remarks
|
|
512
|
-
* The SIP source rate limit value
|
|
512
|
+
* The SIP source rate limit value (PPS).
|
|
513
513
|
*
|
|
514
514
|
* @example
|
|
515
515
|
* 1000
|
|
@@ -517,7 +517,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
517
517
|
sipRate?: number;
|
|
518
518
|
/**
|
|
519
519
|
* @remarks
|
|
520
|
-
* The SIP activation threshold
|
|
520
|
+
* The SIP activation threshold (Mbit/s).
|
|
521
521
|
*
|
|
522
522
|
* @example
|
|
523
523
|
* 100
|
|
@@ -525,7 +525,7 @@ export declare class ModifyPolicyRequestContentSipDefense extends $dara.Model {
|
|
|
525
525
|
sipStartMbps?: number;
|
|
526
526
|
/**
|
|
527
527
|
* @remarks
|
|
528
|
-
* The SIP activation threshold
|
|
528
|
+
* The SIP activation threshold (PPS).
|
|
529
529
|
*
|
|
530
530
|
* @example
|
|
531
531
|
* 500
|
|
@@ -605,7 +605,7 @@ export declare class ModifyPolicyRequestContentSourceBlockList extends $dara.Mod
|
|
|
605
605
|
export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
606
606
|
/**
|
|
607
607
|
* @remarks
|
|
608
|
-
* The source bandwidth throttling
|
|
608
|
+
* The source bandwidth throttling rate limit, in bytes per second.
|
|
609
609
|
*
|
|
610
610
|
* @example
|
|
611
611
|
* 2048
|
|
@@ -613,7 +613,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
613
613
|
bps?: number;
|
|
614
614
|
/**
|
|
615
615
|
* @remarks
|
|
616
|
-
* The source PPS rate limit
|
|
616
|
+
* The source PPS rate limit, in packets per second.
|
|
617
617
|
*
|
|
618
618
|
* @example
|
|
619
619
|
* 64
|
|
@@ -621,7 +621,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
621
621
|
pps?: number;
|
|
622
622
|
/**
|
|
623
623
|
* @remarks
|
|
624
|
-
* The source SYN bandwidth throttling
|
|
624
|
+
* The source SYN bandwidth throttling rate limit, in bytes per second.
|
|
625
625
|
*
|
|
626
626
|
* @example
|
|
627
627
|
* 2048
|
|
@@ -629,7 +629,7 @@ export declare class ModifyPolicyRequestContentSourceLimit extends $dara.Model {
|
|
|
629
629
|
synBps?: number;
|
|
630
630
|
/**
|
|
631
631
|
* @remarks
|
|
632
|
-
* The source SYN PPS rate limit
|
|
632
|
+
* The source SYN PPS rate limit, in packets per second.
|
|
633
633
|
*
|
|
634
634
|
* @example
|
|
635
635
|
* 64
|
|
@@ -686,7 +686,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
686
686
|
enableL4Defense?: boolean;
|
|
687
687
|
/**
|
|
688
688
|
* @remarks
|
|
689
|
-
* The list of
|
|
689
|
+
* The list of Byte-Match Filter rules.
|
|
690
690
|
*/
|
|
691
691
|
fingerPrintRuleList?: ModifyPolicyRequestContentFingerPrintRuleList[];
|
|
692
692
|
/**
|
|
@@ -703,7 +703,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
703
703
|
intelligenceLevel?: string;
|
|
704
704
|
/**
|
|
705
705
|
* @remarks
|
|
706
|
-
* The list of port
|
|
706
|
+
* The list of port-specific mitigation rules.
|
|
707
707
|
*/
|
|
708
708
|
l4RuleList?: ModifyPolicyRequestContentL4RuleList[];
|
|
709
709
|
/**
|
|
@@ -713,7 +713,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
713
713
|
portRuleList?: ModifyPolicyRequestContentPortRuleList[];
|
|
714
714
|
/**
|
|
715
715
|
* @remarks
|
|
716
|
-
* The list of ports filtered by
|
|
716
|
+
* The list of ports filtered by reflection attack prevention.
|
|
717
717
|
*/
|
|
718
718
|
reflectBlockUdpPortList?: number[];
|
|
719
719
|
/**
|
|
@@ -728,7 +728,7 @@ export declare class ModifyPolicyRequestContent extends $dara.Model {
|
|
|
728
728
|
regionBlockProvinceList?: number[];
|
|
729
729
|
/**
|
|
730
730
|
* @remarks
|
|
731
|
-
* The SIP
|
|
731
|
+
* The SIP Protection Settings.
|
|
732
732
|
*/
|
|
733
733
|
sipDefense?: ModifyPolicyRequestContentSipDefense;
|
|
734
734
|
/**
|
|
@@ -770,28 +770,28 @@ export declare class ModifyPolicyRequest extends $dara.Model {
|
|
|
770
770
|
* @remarks
|
|
771
771
|
* The action type. Valid values:
|
|
772
772
|
*
|
|
773
|
-
* - **10**:
|
|
774
|
-
* - **11**:
|
|
775
|
-
* - **12**:
|
|
776
|
-
* - **13**:
|
|
777
|
-
* - **20**:
|
|
778
|
-
* - **21**:
|
|
779
|
-
* - **22**:
|
|
780
|
-
* - **23**:
|
|
781
|
-
* - **30**:
|
|
782
|
-
* - **31**:
|
|
783
|
-
* - **32**:
|
|
784
|
-
* - **33**:
|
|
785
|
-
* - **40**:
|
|
786
|
-
* - **41**:
|
|
787
|
-
* - **42**:
|
|
788
|
-
* - **50**:
|
|
789
|
-
* - **51**:
|
|
790
|
-
* - **52**:
|
|
791
|
-
* - **60**:
|
|
792
|
-
* - **61**:
|
|
793
|
-
* - **62**:
|
|
794
|
-
* - **63**:
|
|
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.
|
|
795
795
|
*
|
|
796
796
|
* This parameter is required.
|
|
797
797
|
*
|
|
@@ -824,10 +824,10 @@ export declare class ModifyPolicyRequest extends $dara.Model {
|
|
|
824
824
|
name?: string;
|
|
825
825
|
/**
|
|
826
826
|
* @remarks
|
|
827
|
-
* The port-specific mitigation policy
|
|
827
|
+
* The version of the port-specific mitigation policy. Valid values:
|
|
828
828
|
*
|
|
829
|
-
* - **
|
|
830
|
-
* - **2**: Modifies the new stream
|
|
829
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
830
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
831
831
|
* > Only port-specific mitigation policies are supported.
|
|
832
832
|
*
|
|
833
833
|
* @example
|
|
@@ -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****
|
|
@@ -4,28 +4,28 @@ export declare class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
|
4
4
|
* @remarks
|
|
5
5
|
* The action type. Valid values:
|
|
6
6
|
*
|
|
7
|
-
* - **10**:
|
|
8
|
-
* - **11**:
|
|
9
|
-
* - **12**:
|
|
10
|
-
* - **13**:
|
|
11
|
-
* - **20**:
|
|
12
|
-
* - **21**:
|
|
13
|
-
* - **22**:
|
|
14
|
-
* - **23**:
|
|
15
|
-
* - **30**:
|
|
16
|
-
* - **31**:
|
|
17
|
-
* - **32**:
|
|
18
|
-
* - **33**:
|
|
19
|
-
* - **40**:
|
|
20
|
-
* - **41**:
|
|
21
|
-
* - **42**:
|
|
22
|
-
* - **50**:
|
|
23
|
-
* - **51**:
|
|
24
|
-
* - **52**:
|
|
25
|
-
* - **60**:
|
|
26
|
-
* - **61**:
|
|
27
|
-
* - **62**:
|
|
28
|
-
* - **63**:
|
|
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.
|
|
29
29
|
*
|
|
30
30
|
* This parameter is required.
|
|
31
31
|
*
|
|
@@ -58,10 +58,10 @@ export declare class ModifyPolicyShrinkRequest extends $dara.Model {
|
|
|
58
58
|
name?: string;
|
|
59
59
|
/**
|
|
60
60
|
* @remarks
|
|
61
|
-
* The port-specific mitigation policy
|
|
61
|
+
* The version of the port-specific mitigation policy. Valid values:
|
|
62
62
|
*
|
|
63
|
-
* - **
|
|
64
|
-
* - **2**: Modifies the new stream
|
|
63
|
+
* - **Not specified**: Modifies the default surf mitigation engine policy.
|
|
64
|
+
* - **2**: Modifies the new stream mitigation engine policy.
|
|
65
65
|
* > Only port-specific mitigation policies are supported.
|
|
66
66
|
*
|
|
67
67
|
* @example
|
package/package.json
CHANGED
package/src/client.ts
CHANGED
|
@@ -17,22 +17,57 @@ export default class Client extends OpenApi {
|
|
|
17
17
|
'cn-beijing': "ddosbgp.aliyuncs.com",
|
|
18
18
|
'cn-zhangjiakou': "ddosbgp.aliyuncs.com",
|
|
19
19
|
'cn-huhehaote': "ddosbgp.aliyuncs.com",
|
|
20
|
+
'cn-wulanchabu': "ddosbgp.aliyuncs.com",
|
|
20
21
|
'cn-hangzhou': "ddosbgp.aliyuncs.com",
|
|
21
22
|
'cn-shanghai': "ddosbgp.aliyuncs.com",
|
|
22
23
|
'cn-shenzhen': "ddosbgp.aliyuncs.com",
|
|
23
|
-
'
|
|
24
|
-
'
|
|
25
|
-
'ap-southeast-2': "ddosbgp.ap-southeast-1.aliyuncs.com",
|
|
26
|
-
'ap-southeast-3': "ddosbgp.ap-southeast-1.aliyuncs.com",
|
|
27
|
-
'ap-southeast-5': "ddosbgp.ap-southeast-1.aliyuncs.com",
|
|
24
|
+
'cn-heyuan': "ddosbgp.aliyuncs.com",
|
|
25
|
+
'cn-guangzhou': "ddosbgp.aliyuncs.com",
|
|
28
26
|
'cn-chengdu': "ddosbgp.aliyuncs.com",
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'
|
|
32
|
-
'
|
|
27
|
+
'ap-northeast-1': "ddosbgp.aliyuncs.com",
|
|
28
|
+
'ap-southeast-2': "ddosbgp.aliyuncs.com",
|
|
29
|
+
'ap-southeast-3': "ddosbgp.aliyuncs.com",
|
|
30
|
+
'ap-southeast-5': "ddosbgp.aliyuncs.com",
|
|
31
|
+
'eu-west-1': "ddosbgp.aliyuncs.com",
|
|
32
|
+
'eu-central-1': "ddosbgp.aliyuncs.com",
|
|
33
|
+
'ap-south-1': "ddosbgp.aliyuncs.com",
|
|
34
|
+
'me-east-1': "ddosbgp.aliyuncs.com",
|
|
33
35
|
'cn-shenzhen-finance-1': "ddosbgp.aliyuncs.com",
|
|
34
|
-
'
|
|
36
|
+
'ap-northeast-2-pop': "ddosbgp.aliyuncs.com",
|
|
37
|
+
'cn-beijing-finance-1': "ddosbgp.aliyuncs.com",
|
|
38
|
+
'cn-beijing-finance-pop': "ddosbgp.aliyuncs.com",
|
|
39
|
+
'cn-beijing-gov-1': "ddosbgp.aliyuncs.com",
|
|
40
|
+
'cn-beijing-nu16-b01': "ddosbgp.aliyuncs.com",
|
|
41
|
+
'cn-edge-1': "ddosbgp.aliyuncs.com",
|
|
42
|
+
'cn-fujian': "ddosbgp.aliyuncs.com",
|
|
43
|
+
'cn-haidian-cm12-c01': "ddosbgp.aliyuncs.com",
|
|
44
|
+
'cn-hangzhou-bj-b01': "ddosbgp.aliyuncs.com",
|
|
45
|
+
'cn-hangzhou-finance': "ddosbgp.aliyuncs.com",
|
|
46
|
+
'cn-hangzhou-internal-prod-1': "ddosbgp.aliyuncs.com",
|
|
47
|
+
'cn-hangzhou-internal-test-1': "ddosbgp.aliyuncs.com",
|
|
48
|
+
'cn-hangzhou-internal-test-2': "ddosbgp.aliyuncs.com",
|
|
49
|
+
'cn-hangzhou-internal-test-3': "ddosbgp.aliyuncs.com",
|
|
50
|
+
'cn-hangzhou-test-306': "ddosbgp.aliyuncs.com",
|
|
51
|
+
'cn-hongkong-finance-pop': "ddosbgp.aliyuncs.com",
|
|
52
|
+
'cn-huhehaote-nebula-1': "ddosbgp.aliyuncs.com",
|
|
35
53
|
'cn-north-2-gov-1': "ddosbgp.aliyuncs.com",
|
|
54
|
+
'cn-qingdao-nebula': "ddosbgp.aliyuncs.com",
|
|
55
|
+
'cn-shanghai-et15-b01': "ddosbgp.aliyuncs.com",
|
|
56
|
+
'cn-shanghai-et2-b01': "ddosbgp.aliyuncs.com",
|
|
57
|
+
'cn-shanghai-finance-1': "ddosbgp.aliyuncs.com",
|
|
58
|
+
'cn-shanghai-inner': "ddosbgp.aliyuncs.com",
|
|
59
|
+
'cn-shanghai-internal-test-1': "ddosbgp.aliyuncs.com",
|
|
60
|
+
'cn-shenzhen-inner': "ddosbgp.aliyuncs.com",
|
|
61
|
+
'cn-shenzhen-st4-d01': "ddosbgp.aliyuncs.com",
|
|
62
|
+
'cn-shenzhen-su18-b01': "ddosbgp.aliyuncs.com",
|
|
63
|
+
'cn-wuhan': "ddosbgp.aliyuncs.com",
|
|
64
|
+
'cn-yushanfang': "ddosbgp.aliyuncs.com",
|
|
65
|
+
'cn-zhangbei': "ddosbgp.aliyuncs.com",
|
|
66
|
+
'cn-zhangbei-na61-b01': "ddosbgp.aliyuncs.com",
|
|
67
|
+
'cn-zhangjiakou-na62-a01': "ddosbgp.aliyuncs.com",
|
|
68
|
+
'cn-zhengzhou-nebula-1': "ddosbgp.aliyuncs.com",
|
|
69
|
+
'eu-west-1-oxs': "ddosbgp.aliyuncs.com",
|
|
70
|
+
'rus-west-1-pop': "ddosbgp.aliyuncs.com",
|
|
36
71
|
};
|
|
37
72
|
this.checkConfig(config);
|
|
38
73
|
this._endpoint = this.getEndpoint("ddosbgp", this._regionId, this._endpointRule, this._network, this._suffix, this._endpointMap, this._endpoint);
|
|
@@ -216,10 +251,10 @@ export default class Client extends OpenApi {
|
|
|
216
251
|
}
|
|
217
252
|
|
|
218
253
|
/**
|
|
219
|
-
* Associates protection objects with mitigation
|
|
254
|
+
* Associates protection objects with a mitigation policy.
|
|
220
255
|
*
|
|
221
256
|
* @remarks
|
|
222
|
-
*
|
|
257
|
+
* A mitigation policy that is associated with protection objects cannot be deleted.
|
|
223
258
|
*
|
|
224
259
|
* @param tmpReq - AttachToPolicyRequest
|
|
225
260
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -264,10 +299,10 @@ export default class Client extends OpenApi {
|
|
|
264
299
|
}
|
|
265
300
|
|
|
266
301
|
/**
|
|
267
|
-
* Associates protection objects with mitigation
|
|
302
|
+
* Associates protection objects with a mitigation policy.
|
|
268
303
|
*
|
|
269
304
|
* @remarks
|
|
270
|
-
*
|
|
305
|
+
* A mitigation policy that is associated with protection objects cannot be deleted.
|
|
271
306
|
*
|
|
272
307
|
* @param request - AttachToPolicyRequest
|
|
273
308
|
* @returns AttachToPolicyResponse
|
|
@@ -1113,9 +1148,9 @@ export default class Client extends OpenApi {
|
|
|
1113
1148
|
* Queries the network-layer interception records of Anti-DDoS Origin instances.
|
|
1114
1149
|
*
|
|
1115
1150
|
* @remarks
|
|
1116
|
-
* This operation is used to
|
|
1151
|
+
* This operation is used to query the details of Layer 3 and Layer 4 packet interception records for all Anti-DDoS Origin instances owned by the current Alibaba Cloud account by using paging.
|
|
1117
1152
|
* ### QPS limit
|
|
1118
|
-
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API
|
|
1153
|
+
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API invoke is throttled, which may affect your business. Invoke this operation at an appropriate frequency.
|
|
1119
1154
|
*
|
|
1120
1155
|
* @param request - DescribeNetworkLayerInterceptsRequest
|
|
1121
1156
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
@@ -1140,6 +1175,10 @@ export default class Client extends OpenApi {
|
|
|
1140
1175
|
query["InstanceId"] = request.instanceId;
|
|
1141
1176
|
}
|
|
1142
1177
|
|
|
1178
|
+
if (!$dara.isNull(request.interceptModule)) {
|
|
1179
|
+
query["InterceptModule"] = request.interceptModule;
|
|
1180
|
+
}
|
|
1181
|
+
|
|
1143
1182
|
if (!$dara.isNull(request.networkProtocol)) {
|
|
1144
1183
|
query["NetworkProtocol"] = request.networkProtocol;
|
|
1145
1184
|
}
|
|
@@ -1189,9 +1228,9 @@ export default class Client extends OpenApi {
|
|
|
1189
1228
|
* Queries the network-layer interception records of Anti-DDoS Origin instances.
|
|
1190
1229
|
*
|
|
1191
1230
|
* @remarks
|
|
1192
|
-
* This operation is used to
|
|
1231
|
+
* This operation is used to query the details of Layer 3 and Layer 4 packet interception records for all Anti-DDoS Origin instances owned by the current Alibaba Cloud account by using paging.
|
|
1193
1232
|
* ### QPS limit
|
|
1194
|
-
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, API
|
|
1233
|
+
* The single-user QPS limit for this operation is 10 calls per second. If the limit is exceeded, the API invoke is throttled, which may affect your business. Invoke this operation at an appropriate frequency.
|
|
1195
1234
|
*
|
|
1196
1235
|
* @param request - DescribeNetworkLayerInterceptsRequest
|
|
1197
1236
|
* @returns DescribeNetworkLayerInterceptsResponse
|
|
@@ -93,8 +93,8 @@ export class AttachToPolicyRequest extends $dara.Model {
|
|
|
93
93
|
* @remarks
|
|
94
94
|
* The version of the port-specific mitigation policy. Valid values:
|
|
95
95
|
*
|
|
96
|
-
* - **Not specified**:
|
|
97
|
-
* - **2**:
|
|
96
|
+
* - **Not specified**: Binds the default surf protection engine policy.
|
|
97
|
+
* - **2**: Binds the new stream protection engine policy.
|
|
98
98
|
* > Only port-specific mitigation policies support this parameter.
|
|
99
99
|
*
|
|
100
100
|
* @example
|
|
@@ -5,7 +5,7 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class AttachToPolicyResponseBody extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The request ID
|
|
8
|
+
* The request ID, which is a unique identifier generated by Alibaba Cloud for this request. You can use this ID to troubleshoot issues.
|
|
9
9
|
*
|
|
10
10
|
* @example
|
|
11
11
|
* DC245DEE-9800-5579-BF99-189D6A5****
|
|
@@ -24,8 +24,8 @@ export class AttachToPolicyShrinkRequest extends $dara.Model {
|
|
|
24
24
|
* @remarks
|
|
25
25
|
* The version of the port-specific mitigation policy. Valid values:
|
|
26
26
|
*
|
|
27
|
-
* - **Not specified**:
|
|
28
|
-
* - **2**:
|
|
27
|
+
* - **Not specified**: Binds the default surf protection engine policy.
|
|
28
|
+
* - **2**: Binds the new stream protection engine policy.
|
|
29
29
|
* > Only port-specific mitigation policies support this parameter.
|
|
30
30
|
*
|
|
31
31
|
* @example
|
|
@@ -39,6 +39,14 @@ export class DescribeNetworkLayerInterceptsRequest extends $dara.Model {
|
|
|
39
39
|
* ddosbgp-cn-z2q1qzxb****
|
|
40
40
|
*/
|
|
41
41
|
instanceId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* @remarks
|
|
44
|
+
* The interception module.
|
|
45
|
+
*
|
|
46
|
+
* @example
|
|
47
|
+
* src
|
|
48
|
+
*/
|
|
49
|
+
interceptModule?: string;
|
|
42
50
|
/**
|
|
43
51
|
* @remarks
|
|
44
52
|
* The network protocol.
|
|
@@ -57,7 +65,7 @@ export class DescribeNetworkLayerInterceptsRequest extends $dara.Model {
|
|
|
57
65
|
page?: number;
|
|
58
66
|
/**
|
|
59
67
|
* @remarks
|
|
60
|
-
*
|
|
68
|
+
* The number of interception log entries per page in a paged query.
|
|
61
69
|
*
|
|
62
70
|
* @example
|
|
63
71
|
* 10
|
|
@@ -103,6 +111,7 @@ export class DescribeNetworkLayerInterceptsRequest extends $dara.Model {
|
|
|
103
111
|
destinationPort: 'DestinationPort',
|
|
104
112
|
endTime: 'EndTime',
|
|
105
113
|
instanceId: 'InstanceId',
|
|
114
|
+
interceptModule: 'InterceptModule',
|
|
106
115
|
networkProtocol: 'NetworkProtocol',
|
|
107
116
|
page: 'Page',
|
|
108
117
|
pageSize: 'PageSize',
|
|
@@ -119,6 +128,7 @@ export class DescribeNetworkLayerInterceptsRequest extends $dara.Model {
|
|
|
119
128
|
destinationPort: 'number',
|
|
120
129
|
endTime: 'number',
|
|
121
130
|
instanceId: 'string',
|
|
131
|
+
interceptModule: 'string',
|
|
122
132
|
networkProtocol: 'string',
|
|
123
133
|
page: 'number',
|
|
124
134
|
pageSize: 'number',
|
|
@@ -37,7 +37,7 @@ export class DescribeNetworkLayerInterceptsResponseBodyInterceptionRecords exten
|
|
|
37
37
|
interceptCount?: number;
|
|
38
38
|
/**
|
|
39
39
|
* @remarks
|
|
40
|
-
* The end time
|
|
40
|
+
* The interception end time.
|
|
41
41
|
* > The value is a Unix/POSIX timestamp. Unit: seconds.
|
|
42
42
|
*
|
|
43
43
|
* @example
|
|
@@ -54,7 +54,7 @@ export class DescribeNetworkLayerInterceptsResponseBodyInterceptionRecords exten
|
|
|
54
54
|
interceptModule?: string;
|
|
55
55
|
/**
|
|
56
56
|
* @remarks
|
|
57
|
-
* The start time
|
|
57
|
+
* The interception start time.
|
|
58
58
|
* > The value is a Unix/POSIX timestamp. Unit: seconds.
|
|
59
59
|
*
|
|
60
60
|
* @example
|
|
@@ -158,7 +158,7 @@ export class DescribeNetworkLayerInterceptsResponseBody extends $dara.Model {
|
|
|
158
158
|
requestId?: string;
|
|
159
159
|
/**
|
|
160
160
|
* @remarks
|
|
161
|
-
* The total number of interception
|
|
161
|
+
* The total number of interception log entries that match the current filter conditions.
|
|
162
162
|
*
|
|
163
163
|
* @example
|
|
164
164
|
* 17
|