@alicloud/sas20181203 4.3.1 → 4.3.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +282 -4
- package/dist/client.js +256 -78
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +421 -6
package/dist/client.d.ts
CHANGED
|
@@ -1742,6 +1742,21 @@ export declare class ChangeSecurityScoreRuleRequestSecurityScoreRuleList extends
|
|
|
1742
1742
|
[key: string]: any;
|
|
1743
1743
|
});
|
|
1744
1744
|
}
|
|
1745
|
+
export declare class CreateAntiBruteForceRuleRequestProtocolType extends $dara.Model {
|
|
1746
|
+
rdp?: string;
|
|
1747
|
+
sqlServer?: string;
|
|
1748
|
+
ssh?: string;
|
|
1749
|
+
static names(): {
|
|
1750
|
+
[key: string]: string;
|
|
1751
|
+
};
|
|
1752
|
+
static types(): {
|
|
1753
|
+
[key: string]: any;
|
|
1754
|
+
};
|
|
1755
|
+
validate(): void;
|
|
1756
|
+
constructor(map?: {
|
|
1757
|
+
[key: string]: any;
|
|
1758
|
+
});
|
|
1759
|
+
}
|
|
1745
1760
|
export declare class CreateAntiBruteForceRuleResponseBodyCreateAntiBruteForceRule extends $dara.Model {
|
|
1746
1761
|
/**
|
|
1747
1762
|
* @remarks
|
|
@@ -5036,6 +5051,21 @@ export declare class DescribeAntiBruteForceRulesResponseBodyPageInfo extends $da
|
|
|
5036
5051
|
[key: string]: any;
|
|
5037
5052
|
});
|
|
5038
5053
|
}
|
|
5054
|
+
export declare class DescribeAntiBruteForceRulesResponseBodyRulesProtocolType extends $dara.Model {
|
|
5055
|
+
rdp?: string;
|
|
5056
|
+
sqlServer?: string;
|
|
5057
|
+
ssh?: string;
|
|
5058
|
+
static names(): {
|
|
5059
|
+
[key: string]: string;
|
|
5060
|
+
};
|
|
5061
|
+
static types(): {
|
|
5062
|
+
[key: string]: any;
|
|
5063
|
+
};
|
|
5064
|
+
validate(): void;
|
|
5065
|
+
constructor(map?: {
|
|
5066
|
+
[key: string]: any;
|
|
5067
|
+
});
|
|
5068
|
+
}
|
|
5039
5069
|
export declare class DescribeAntiBruteForceRulesResponseBodyRules extends $dara.Model {
|
|
5040
5070
|
/**
|
|
5041
5071
|
* @remarks
|
|
@@ -5106,6 +5136,7 @@ export declare class DescribeAntiBruteForceRulesResponseBodyRules extends $dara.
|
|
|
5106
5136
|
* AntiBruteForceRule01
|
|
5107
5137
|
*/
|
|
5108
5138
|
name?: string;
|
|
5139
|
+
protocolType?: DescribeAntiBruteForceRulesResponseBodyRulesProtocolType;
|
|
5109
5140
|
/**
|
|
5110
5141
|
* @remarks
|
|
5111
5142
|
* The period of time during which logon failures from an account are measured. Unit: minutes. If **Span** is set to 10, the defense rule takes effect when the logon failures measured within 10 minutes reaches the specified threshold. The IP address of attackers cannot be used to log on to the server in the specified period of time.
|
|
@@ -40132,6 +40163,13 @@ export declare class GetHoneyPotUploadPolicyInfoResponseBodyData extends $dara.M
|
|
|
40132
40163
|
* eyJleHBpcmF0aW9uIjoiMjAyMy0wOS0wMVQwMzoyNTozNS44MzZaIiwiY29uZGl0aW9ucyI6W1siY29udGVudC1sZW5ndGgtcmFuZ2UiLDAsMTA0ODU3NjAwXSxbInN0YXJ0cy13aXRoIiwiJGtleSIsIkhPTkVZUE9UX0ZJTEUvMTc2NjE4NTg5NDEwNDY3NV8xNjkzNTM4NDM1N*****************
|
|
40133
40164
|
*/
|
|
40134
40165
|
policy?: string;
|
|
40166
|
+
/**
|
|
40167
|
+
* @remarks
|
|
40168
|
+
* The security token.
|
|
40169
|
+
*
|
|
40170
|
+
* @example
|
|
40171
|
+
* ***
|
|
40172
|
+
*/
|
|
40135
40173
|
securityToken?: string;
|
|
40136
40174
|
/**
|
|
40137
40175
|
* @remarks
|
|
@@ -47761,6 +47799,8 @@ export declare class ListCheckItemWarningMachineResponseBodyListWarningRiskList
|
|
|
47761
47799
|
*
|
|
47762
47800
|
* @example
|
|
47763
47801
|
* 72
|
|
47802
|
+
*
|
|
47803
|
+
* @deprecated
|
|
47764
47804
|
*/
|
|
47765
47805
|
riskId?: number;
|
|
47766
47806
|
/**
|
|
@@ -47769,6 +47809,8 @@ export declare class ListCheckItemWarningMachineResponseBodyListWarningRiskList
|
|
|
47769
47809
|
*
|
|
47770
47810
|
* @example
|
|
47771
47811
|
* Alibaba Cloud Linux/Aliyun Linux 2 Baseline for China classified protection of cybersecurity-Level II
|
|
47812
|
+
*
|
|
47813
|
+
* @deprecated
|
|
47772
47814
|
*/
|
|
47773
47815
|
riskName?: string;
|
|
47774
47816
|
static names(): {
|
|
@@ -47967,6 +48009,8 @@ export declare class ListCheckItemWarningMachineResponseBodyList extends $dara.M
|
|
|
47967
48009
|
/**
|
|
47968
48010
|
* @remarks
|
|
47969
48011
|
* The information about the baselines on which the risk item is detected.
|
|
48012
|
+
*
|
|
48013
|
+
* @deprecated
|
|
47970
48014
|
*/
|
|
47971
48015
|
warningRiskList?: ListCheckItemWarningMachineResponseBodyListWarningRiskList[];
|
|
47972
48016
|
static names(): {
|
|
@@ -58242,6 +58286,21 @@ export declare class ListVulGlobalConfigResponseBodyVulGlobalConfigList extends
|
|
|
58242
58286
|
[key: string]: any;
|
|
58243
58287
|
});
|
|
58244
58288
|
}
|
|
58289
|
+
export declare class ModifyAntiBruteForceRuleRequestProtocolType extends $dara.Model {
|
|
58290
|
+
rdp?: string;
|
|
58291
|
+
sqlServer?: string;
|
|
58292
|
+
ssh?: string;
|
|
58293
|
+
static names(): {
|
|
58294
|
+
[key: string]: string;
|
|
58295
|
+
};
|
|
58296
|
+
static types(): {
|
|
58297
|
+
[key: string]: any;
|
|
58298
|
+
};
|
|
58299
|
+
validate(): void;
|
|
58300
|
+
constructor(map?: {
|
|
58301
|
+
[key: string]: any;
|
|
58302
|
+
});
|
|
58303
|
+
}
|
|
58245
58304
|
export declare class ModifyAssetCleanConfigRequestAssetCleanConfigs extends $dara.Model {
|
|
58246
58305
|
/**
|
|
58247
58306
|
* @remarks
|
|
@@ -68340,6 +68399,108 @@ export declare class CreateAntiBruteForceRuleRequest extends $dara.Model {
|
|
|
68340
68399
|
* TestAntiBruteForceRule
|
|
68341
68400
|
*/
|
|
68342
68401
|
name?: string;
|
|
68402
|
+
protocolType?: CreateAntiBruteForceRuleRequestProtocolType;
|
|
68403
|
+
resourceOwnerId?: number;
|
|
68404
|
+
/**
|
|
68405
|
+
* @remarks
|
|
68406
|
+
* The source IP address of the request.
|
|
68407
|
+
*
|
|
68408
|
+
* @example
|
|
68409
|
+
* 192.168.XX.XX
|
|
68410
|
+
*/
|
|
68411
|
+
sourceIp?: string;
|
|
68412
|
+
/**
|
|
68413
|
+
* @remarks
|
|
68414
|
+
* The maximum period of time during which failed logon attempts from an account can occur. Unit: minutes. Valid values:
|
|
68415
|
+
*
|
|
68416
|
+
* * **1**
|
|
68417
|
+
* * **2**
|
|
68418
|
+
* * **5**
|
|
68419
|
+
* * **10**
|
|
68420
|
+
* * **15**
|
|
68421
|
+
*
|
|
68422
|
+
* > To configure a defense rule, you must specify the Span, FailCount, and ForbiddenTime parameters. If the number of failed logon attempts from an account within the minutes specified by Span exceeds the value specified by FailCount, the account cannot be used for logons within the minutes specified by ForbiddenTime.
|
|
68423
|
+
*
|
|
68424
|
+
* This parameter is required.
|
|
68425
|
+
*
|
|
68426
|
+
* @example
|
|
68427
|
+
* 1
|
|
68428
|
+
*/
|
|
68429
|
+
span?: number;
|
|
68430
|
+
/**
|
|
68431
|
+
* @remarks
|
|
68432
|
+
* The UUIDs of the servers to which you want to apply the defense rule.
|
|
68433
|
+
*
|
|
68434
|
+
* This parameter is required.
|
|
68435
|
+
*/
|
|
68436
|
+
uuidList?: string[];
|
|
68437
|
+
static names(): {
|
|
68438
|
+
[key: string]: string;
|
|
68439
|
+
};
|
|
68440
|
+
static types(): {
|
|
68441
|
+
[key: string]: any;
|
|
68442
|
+
};
|
|
68443
|
+
validate(): void;
|
|
68444
|
+
constructor(map?: {
|
|
68445
|
+
[key: string]: any;
|
|
68446
|
+
});
|
|
68447
|
+
}
|
|
68448
|
+
export declare class CreateAntiBruteForceRuleShrinkRequest extends $dara.Model {
|
|
68449
|
+
/**
|
|
68450
|
+
* @remarks
|
|
68451
|
+
* Specifies whether to set the defense rule as the default rule. Valid values:
|
|
68452
|
+
*
|
|
68453
|
+
* * **true**: yes
|
|
68454
|
+
* * **false**: no
|
|
68455
|
+
*
|
|
68456
|
+
* > If no defense rule is created for a server, the default rule is applied to the server.
|
|
68457
|
+
*
|
|
68458
|
+
* @example
|
|
68459
|
+
* true
|
|
68460
|
+
*/
|
|
68461
|
+
defaultRule?: boolean;
|
|
68462
|
+
/**
|
|
68463
|
+
* @remarks
|
|
68464
|
+
* The maximum number of failed logon attempts from an account. Valid values: 2, 3, 4, 5, 10, 50, 80, and 100.
|
|
68465
|
+
*
|
|
68466
|
+
* This parameter is required.
|
|
68467
|
+
*
|
|
68468
|
+
* @example
|
|
68469
|
+
* 2
|
|
68470
|
+
*/
|
|
68471
|
+
failCount?: number;
|
|
68472
|
+
/**
|
|
68473
|
+
* @remarks
|
|
68474
|
+
* The period of time during which logons from an account are not allowed. Unit: minutes. Valid values:
|
|
68475
|
+
*
|
|
68476
|
+
* * **5**: 5 minutes
|
|
68477
|
+
* * **15**: 15 minutes
|
|
68478
|
+
* * **30**: 30 minutes
|
|
68479
|
+
* * **60**: 1 hour
|
|
68480
|
+
* * **120**: 2 hours
|
|
68481
|
+
* * **360**: 6 hours
|
|
68482
|
+
* * **720**: 12 hours
|
|
68483
|
+
* * **1440**: 24 hours
|
|
68484
|
+
* * **10080**: 7 days
|
|
68485
|
+
* * **52560000**: permanent
|
|
68486
|
+
*
|
|
68487
|
+
* This parameter is required.
|
|
68488
|
+
*
|
|
68489
|
+
* @example
|
|
68490
|
+
* 5
|
|
68491
|
+
*/
|
|
68492
|
+
forbiddenTime?: number;
|
|
68493
|
+
/**
|
|
68494
|
+
* @remarks
|
|
68495
|
+
* The name of the defense rule.
|
|
68496
|
+
*
|
|
68497
|
+
* This parameter is required.
|
|
68498
|
+
*
|
|
68499
|
+
* @example
|
|
68500
|
+
* TestAntiBruteForceRule
|
|
68501
|
+
*/
|
|
68502
|
+
name?: string;
|
|
68503
|
+
protocolTypeShrink?: string;
|
|
68343
68504
|
resourceOwnerId?: number;
|
|
68344
68505
|
/**
|
|
68345
68506
|
* @remarks
|
|
@@ -87030,6 +87191,13 @@ export declare class DescribeCustomizedDictUploadInfoResponseBody extends $dara.
|
|
|
87030
87191
|
* BDEDEEE7-AC25-559E-8C12-5168B139****
|
|
87031
87192
|
*/
|
|
87032
87193
|
requestId?: string;
|
|
87194
|
+
/**
|
|
87195
|
+
* @remarks
|
|
87196
|
+
* The security token.
|
|
87197
|
+
*
|
|
87198
|
+
* @example
|
|
87199
|
+
* ***
|
|
87200
|
+
*/
|
|
87033
87201
|
securityToken?: string;
|
|
87034
87202
|
/**
|
|
87035
87203
|
* @remarks
|
|
@@ -136810,6 +136978,116 @@ export declare class ModifyAntiBruteForceRuleRequest extends $dara.Model {
|
|
|
136810
136978
|
* TestRule
|
|
136811
136979
|
*/
|
|
136812
136980
|
name?: string;
|
|
136981
|
+
protocolType?: ModifyAntiBruteForceRuleRequestProtocolType;
|
|
136982
|
+
resourceOwnerId?: number;
|
|
136983
|
+
/**
|
|
136984
|
+
* @remarks
|
|
136985
|
+
* The source IP address of the request.
|
|
136986
|
+
*
|
|
136987
|
+
* @example
|
|
136988
|
+
* 1.2.XX.XX
|
|
136989
|
+
*/
|
|
136990
|
+
sourceIp?: string;
|
|
136991
|
+
/**
|
|
136992
|
+
* @remarks
|
|
136993
|
+
* The period of time during which logon failures from an account are measured. Unit: minutes. Valid values:
|
|
136994
|
+
*
|
|
136995
|
+
* * **1**
|
|
136996
|
+
* * **2**
|
|
136997
|
+
* * **5**
|
|
136998
|
+
* * **10**
|
|
136999
|
+
* * **15**
|
|
137000
|
+
*
|
|
137001
|
+
* @example
|
|
137002
|
+
* 1
|
|
137003
|
+
*/
|
|
137004
|
+
span?: number;
|
|
137005
|
+
/**
|
|
137006
|
+
* @remarks
|
|
137007
|
+
* An array consisting of the UUIDs of the servers to which the defense rule is applied.
|
|
137008
|
+
*
|
|
137009
|
+
* @example
|
|
137010
|
+
* uuid-13213-dasda
|
|
137011
|
+
*/
|
|
137012
|
+
uuidList?: string[];
|
|
137013
|
+
static names(): {
|
|
137014
|
+
[key: string]: string;
|
|
137015
|
+
};
|
|
137016
|
+
static types(): {
|
|
137017
|
+
[key: string]: any;
|
|
137018
|
+
};
|
|
137019
|
+
validate(): void;
|
|
137020
|
+
constructor(map?: {
|
|
137021
|
+
[key: string]: any;
|
|
137022
|
+
});
|
|
137023
|
+
}
|
|
137024
|
+
export declare class ModifyAntiBruteForceRuleShrinkRequest extends $dara.Model {
|
|
137025
|
+
/**
|
|
137026
|
+
* @remarks
|
|
137027
|
+
* Specifies whether to set the defense rule as the default rule. Valid values:
|
|
137028
|
+
*
|
|
137029
|
+
* * **true**: yes
|
|
137030
|
+
* * **false**: no
|
|
137031
|
+
*
|
|
137032
|
+
* @example
|
|
137033
|
+
* true
|
|
137034
|
+
*/
|
|
137035
|
+
defaultRule?: boolean;
|
|
137036
|
+
/**
|
|
137037
|
+
* @remarks
|
|
137038
|
+
* The threshold of logon failures that you specify. Valid values:
|
|
137039
|
+
*
|
|
137040
|
+
* * **2**
|
|
137041
|
+
* * **3**
|
|
137042
|
+
* * **4**
|
|
137043
|
+
* * **5**
|
|
137044
|
+
* * **10**
|
|
137045
|
+
* * **50**
|
|
137046
|
+
* * **80**
|
|
137047
|
+
* * **100**
|
|
137048
|
+
*
|
|
137049
|
+
* @example
|
|
137050
|
+
* 10
|
|
137051
|
+
*/
|
|
137052
|
+
failCount?: number;
|
|
137053
|
+
/**
|
|
137054
|
+
* @remarks
|
|
137055
|
+
* The period of time during which logons from an account are not allowed. Unit: minutes. Valid values:
|
|
137056
|
+
*
|
|
137057
|
+
* * **5**
|
|
137058
|
+
* * **15**
|
|
137059
|
+
* * **30**
|
|
137060
|
+
* * **60**
|
|
137061
|
+
* * **120**
|
|
137062
|
+
* * **360**
|
|
137063
|
+
* * **720**
|
|
137064
|
+
* * **1440**
|
|
137065
|
+
* * **10080**
|
|
137066
|
+
* * **52560000**: permanent
|
|
137067
|
+
*
|
|
137068
|
+
* @example
|
|
137069
|
+
* 5
|
|
137070
|
+
*/
|
|
137071
|
+
forbiddenTime?: number;
|
|
137072
|
+
/**
|
|
137073
|
+
* @remarks
|
|
137074
|
+
* The ID of the defense rule.
|
|
137075
|
+
*
|
|
137076
|
+
* This parameter is required.
|
|
137077
|
+
*
|
|
137078
|
+
* @example
|
|
137079
|
+
* 65778
|
|
137080
|
+
*/
|
|
137081
|
+
id?: number;
|
|
137082
|
+
/**
|
|
137083
|
+
* @remarks
|
|
137084
|
+
* The name of the defense rule.
|
|
137085
|
+
*
|
|
137086
|
+
* @example
|
|
137087
|
+
* TestRule
|
|
137088
|
+
*/
|
|
137089
|
+
name?: string;
|
|
137090
|
+
protocolTypeShrink?: string;
|
|
136813
137091
|
resourceOwnerId?: number;
|
|
136814
137092
|
/**
|
|
136815
137093
|
* @remarks
|
|
@@ -157686,11 +157964,11 @@ export default class Client extends OpenApi {
|
|
|
157686
157964
|
/**
|
|
157687
157965
|
* Creates a defense rule against brute-force attacks.
|
|
157688
157966
|
*
|
|
157689
|
-
* @param
|
|
157967
|
+
* @param tmpReq - CreateAntiBruteForceRuleRequest
|
|
157690
157968
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
157691
157969
|
* @returns CreateAntiBruteForceRuleResponse
|
|
157692
157970
|
*/
|
|
157693
|
-
createAntiBruteForceRuleWithOptions(
|
|
157971
|
+
createAntiBruteForceRuleWithOptions(tmpReq: CreateAntiBruteForceRuleRequest, runtime: $dara.RuntimeOptions): Promise<CreateAntiBruteForceRuleResponse>;
|
|
157694
157972
|
/**
|
|
157695
157973
|
* Creates a defense rule against brute-force attacks.
|
|
157696
157974
|
*
|
|
@@ -167805,11 +168083,11 @@ export default class Client extends OpenApi {
|
|
|
167805
168083
|
/**
|
|
167806
168084
|
* Modifies a defense rule against brute-force attacks.
|
|
167807
168085
|
*
|
|
167808
|
-
* @param
|
|
168086
|
+
* @param tmpReq - ModifyAntiBruteForceRuleRequest
|
|
167809
168087
|
* @param runtime - runtime options for this request RuntimeOptions
|
|
167810
168088
|
* @returns ModifyAntiBruteForceRuleResponse
|
|
167811
168089
|
*/
|
|
167812
|
-
modifyAntiBruteForceRuleWithOptions(
|
|
168090
|
+
modifyAntiBruteForceRuleWithOptions(tmpReq: ModifyAntiBruteForceRuleRequest, runtime: $dara.RuntimeOptions): Promise<ModifyAntiBruteForceRuleResponse>;
|
|
167813
168091
|
/**
|
|
167814
168092
|
* Modifies a defense rule against brute-force attacks.
|
|
167815
168093
|
*
|