@alicloud/sas20181203 2.3.0 → 2.4.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 +81 -2
- package/dist/client.js +184 -2
- package/dist/client.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +238 -2
package/dist/client.d.ts
CHANGED
|
@@ -206,6 +206,7 @@ export declare class AddClientUserDefineRuleResponse extends $tea.Model {
|
|
|
206
206
|
export declare class AddImageVulWhiteListRequest extends $tea.Model {
|
|
207
207
|
lang?: string;
|
|
208
208
|
reason?: string;
|
|
209
|
+
source?: string;
|
|
209
210
|
target?: string;
|
|
210
211
|
type?: string;
|
|
211
212
|
whitelist?: string;
|
|
@@ -4749,6 +4750,7 @@ export declare class DescribeCheckWarningsRequest extends $tea.Model {
|
|
|
4749
4750
|
pageSize?: number;
|
|
4750
4751
|
riskId?: number;
|
|
4751
4752
|
riskStatus?: number;
|
|
4753
|
+
source?: string;
|
|
4752
4754
|
sourceIp?: string;
|
|
4753
4755
|
uuid?: string;
|
|
4754
4756
|
static names(): {
|
|
@@ -7169,6 +7171,7 @@ export declare class DescribeImageBaselineItemListResponse extends $tea.Model {
|
|
|
7169
7171
|
}
|
|
7170
7172
|
export declare class DescribeImageBaselineStrategyRequest extends $tea.Model {
|
|
7171
7173
|
lang?: string;
|
|
7174
|
+
source?: string;
|
|
7172
7175
|
strategyId?: number;
|
|
7173
7176
|
static names(): {
|
|
7174
7177
|
[key: string]: string;
|
|
@@ -8064,6 +8067,7 @@ export declare class DescribeImageVulWhiteListRequest extends $tea.Model {
|
|
|
8064
8067
|
currentPage?: number;
|
|
8065
8068
|
lang?: string;
|
|
8066
8069
|
pageSize?: number;
|
|
8070
|
+
source?: string;
|
|
8067
8071
|
static names(): {
|
|
8068
8072
|
[key: string]: string;
|
|
8069
8073
|
};
|
|
@@ -10104,6 +10108,7 @@ export declare class DescribeRiskListCheckResultResponse extends $tea.Model {
|
|
|
10104
10108
|
}
|
|
10105
10109
|
export declare class DescribeRiskTypeRequest extends $tea.Model {
|
|
10106
10110
|
lang?: string;
|
|
10111
|
+
source?: string;
|
|
10107
10112
|
sourceIp?: string;
|
|
10108
10113
|
static names(): {
|
|
10109
10114
|
[key: string]: string;
|
|
@@ -13967,6 +13972,7 @@ export declare class GetAgentlessTaskCountResponseBody extends $tea.Model {
|
|
|
13967
13972
|
riskMachine?: number;
|
|
13968
13973
|
scaVulCount?: number;
|
|
13969
13974
|
scanMachine?: number;
|
|
13975
|
+
sysVulCount?: string;
|
|
13970
13976
|
vulnerability?: number;
|
|
13971
13977
|
static names(): {
|
|
13972
13978
|
[key: string]: string;
|
|
@@ -15721,6 +15727,7 @@ export declare class IgnoreCheckItemsRequest extends $tea.Model {
|
|
|
15721
15727
|
checkAndRiskTypeList?: IgnoreCheckItemsRequestCheckAndRiskTypeList[];
|
|
15722
15728
|
lang?: string;
|
|
15723
15729
|
reason?: string;
|
|
15730
|
+
source?: string;
|
|
15724
15731
|
type?: number;
|
|
15725
15732
|
uuidList?: string[];
|
|
15726
15733
|
static names(): {
|
|
@@ -15766,6 +15773,7 @@ export declare class IgnoreHcCheckWarningsRequest extends $tea.Model {
|
|
|
15766
15773
|
checkWarningIds?: string;
|
|
15767
15774
|
reason?: string;
|
|
15768
15775
|
riskId?: string;
|
|
15776
|
+
source?: string;
|
|
15769
15777
|
sourceIp?: string;
|
|
15770
15778
|
type?: number;
|
|
15771
15779
|
static names(): {
|
|
@@ -16550,6 +16558,7 @@ export declare class ListCheckItemWarningMachineRequest extends $tea.Model {
|
|
|
16550
16558
|
pageSize?: number;
|
|
16551
16559
|
remark?: string;
|
|
16552
16560
|
riskType?: string;
|
|
16561
|
+
source?: string;
|
|
16553
16562
|
status?: number;
|
|
16554
16563
|
static names(): {
|
|
16555
16564
|
[key: string]: string;
|
|
@@ -16603,6 +16612,7 @@ export declare class ListCheckItemWarningSummaryRequest extends $tea.Model {
|
|
|
16603
16612
|
lang?: string;
|
|
16604
16613
|
pageSize?: number;
|
|
16605
16614
|
riskType?: string;
|
|
16615
|
+
source?: string;
|
|
16606
16616
|
static names(): {
|
|
16607
16617
|
[key: string]: string;
|
|
16608
16618
|
};
|
|
@@ -21380,6 +21390,53 @@ export declare class PublicSyncAndCreateImageScanTaskResponse extends $tea.Model
|
|
|
21380
21390
|
[key: string]: any;
|
|
21381
21391
|
});
|
|
21382
21392
|
}
|
|
21393
|
+
export declare class QueryAttackCountRequest extends $tea.Model {
|
|
21394
|
+
from?: string;
|
|
21395
|
+
lang?: string;
|
|
21396
|
+
sourceIp?: string;
|
|
21397
|
+
static names(): {
|
|
21398
|
+
[key: string]: string;
|
|
21399
|
+
};
|
|
21400
|
+
static types(): {
|
|
21401
|
+
[key: string]: any;
|
|
21402
|
+
};
|
|
21403
|
+
constructor(map?: {
|
|
21404
|
+
[key: string]: any;
|
|
21405
|
+
});
|
|
21406
|
+
}
|
|
21407
|
+
export declare class QueryAttackCountResponseBody extends $tea.Model {
|
|
21408
|
+
code?: string;
|
|
21409
|
+
count?: number;
|
|
21410
|
+
data?: QueryAttackCountResponseBodyData[];
|
|
21411
|
+
message?: string;
|
|
21412
|
+
requestId?: string;
|
|
21413
|
+
success?: boolean;
|
|
21414
|
+
static names(): {
|
|
21415
|
+
[key: string]: string;
|
|
21416
|
+
};
|
|
21417
|
+
static types(): {
|
|
21418
|
+
[key: string]: any;
|
|
21419
|
+
};
|
|
21420
|
+
constructor(map?: {
|
|
21421
|
+
[key: string]: any;
|
|
21422
|
+
});
|
|
21423
|
+
}
|
|
21424
|
+
export declare class QueryAttackCountResponse extends $tea.Model {
|
|
21425
|
+
headers: {
|
|
21426
|
+
[key: string]: string;
|
|
21427
|
+
};
|
|
21428
|
+
statusCode: number;
|
|
21429
|
+
body: QueryAttackCountResponseBody;
|
|
21430
|
+
static names(): {
|
|
21431
|
+
[key: string]: string;
|
|
21432
|
+
};
|
|
21433
|
+
static types(): {
|
|
21434
|
+
[key: string]: any;
|
|
21435
|
+
};
|
|
21436
|
+
constructor(map?: {
|
|
21437
|
+
[key: string]: any;
|
|
21438
|
+
});
|
|
21439
|
+
}
|
|
21383
21440
|
export declare class QueryDiscoverDatabaseRequest extends $tea.Model {
|
|
21384
21441
|
createMark?: string;
|
|
21385
21442
|
static names(): {
|
|
@@ -21900,6 +21957,7 @@ export declare class SasInstallCodeResponse extends $tea.Model {
|
|
|
21900
21957
|
export declare class SaveImageBaselineStrategyRequest extends $tea.Model {
|
|
21901
21958
|
baselineItemList?: string;
|
|
21902
21959
|
lang?: string;
|
|
21960
|
+
source?: string;
|
|
21903
21961
|
strategyId?: number;
|
|
21904
21962
|
strategyName?: string;
|
|
21905
21963
|
static names(): {
|
|
@@ -25334,6 +25392,7 @@ export declare class DescribeImageBaselineStrategyResponseBodyStrategyBaselineIt
|
|
|
25334
25392
|
});
|
|
25335
25393
|
}
|
|
25336
25394
|
export declare class DescribeImageBaselineStrategyResponseBodyStrategy extends $tea.Model {
|
|
25395
|
+
baselineItem?: string;
|
|
25337
25396
|
baselineItemList?: DescribeImageBaselineStrategyResponseBodyStrategyBaselineItemList[];
|
|
25338
25397
|
selectedItemCount?: number;
|
|
25339
25398
|
strategyId?: number;
|
|
@@ -30414,10 +30473,14 @@ export declare class ListCheckItemWarningMachineResponseBodyList extends $tea.Mo
|
|
|
30414
30473
|
instanceName?: string;
|
|
30415
30474
|
internetIp?: string;
|
|
30416
30475
|
intranetIp?: string;
|
|
30476
|
+
lastScanTime?: number;
|
|
30417
30477
|
portOpen?: boolean;
|
|
30418
30478
|
prompt?: string;
|
|
30419
30479
|
regionId?: string;
|
|
30420
30480
|
status?: number;
|
|
30481
|
+
targetId?: string;
|
|
30482
|
+
targetName?: string;
|
|
30483
|
+
targetType?: string;
|
|
30421
30484
|
uuid?: string;
|
|
30422
30485
|
warningRiskList?: ListCheckItemWarningMachineResponseBodyListWarningRiskList[];
|
|
30423
30486
|
static names(): {
|
|
@@ -31709,6 +31772,20 @@ export declare class PublicSyncAndCreateImageScanTaskResponseBodyData extends $t
|
|
|
31709
31772
|
[key: string]: any;
|
|
31710
31773
|
});
|
|
31711
31774
|
}
|
|
31775
|
+
export declare class QueryAttackCountResponseBodyData extends $tea.Model {
|
|
31776
|
+
eventCount?: number;
|
|
31777
|
+
tacticId?: string;
|
|
31778
|
+
tacticType?: string;
|
|
31779
|
+
static names(): {
|
|
31780
|
+
[key: string]: string;
|
|
31781
|
+
};
|
|
31782
|
+
static types(): {
|
|
31783
|
+
[key: string]: any;
|
|
31784
|
+
};
|
|
31785
|
+
constructor(map?: {
|
|
31786
|
+
[key: string]: any;
|
|
31787
|
+
});
|
|
31788
|
+
}
|
|
31712
31789
|
export declare class QueryGroupedSecurityEventMarkMissListResponseBodyList extends $tea.Model {
|
|
31713
31790
|
aliUid?: number;
|
|
31714
31791
|
disposalWay?: string;
|
|
@@ -32475,7 +32552,7 @@ export default class Client extends OpenApi {
|
|
|
32475
32552
|
describeRiskCheckItemResult(request: DescribeRiskCheckItemResultRequest): Promise<DescribeRiskCheckItemResultResponse>;
|
|
32476
32553
|
/**
|
|
32477
32554
|
* @deprecated
|
|
32478
|
-
* This operation is phased out. You can use the ListCheckResult operation.
|
|
32555
|
+
* This operation is phased out. You can use the [ListCheckResult](~~ListCheckResult~~) operation.
|
|
32479
32556
|
*
|
|
32480
32557
|
* @param request DescribeRiskCheckResultRequest
|
|
32481
32558
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -32484,7 +32561,7 @@ export default class Client extends OpenApi {
|
|
|
32484
32561
|
describeRiskCheckResultWithOptions(request: DescribeRiskCheckResultRequest, runtime: $Util.RuntimeOptions): Promise<DescribeRiskCheckResultResponse>;
|
|
32485
32562
|
/**
|
|
32486
32563
|
* @deprecated
|
|
32487
|
-
* This operation is phased out. You can use the ListCheckResult operation.
|
|
32564
|
+
* This operation is phased out. You can use the [ListCheckResult](~~ListCheckResult~~) operation.
|
|
32488
32565
|
*
|
|
32489
32566
|
* @param request DescribeRiskCheckResultRequest
|
|
32490
32567
|
* @return DescribeRiskCheckResultResponse
|
|
@@ -33276,6 +33353,8 @@ export default class Client extends OpenApi {
|
|
|
33276
33353
|
publicPreCheckImageScanTask(request: PublicPreCheckImageScanTaskRequest): Promise<PublicPreCheckImageScanTaskResponse>;
|
|
33277
33354
|
publicSyncAndCreateImageScanTaskWithOptions(request: PublicSyncAndCreateImageScanTaskRequest, runtime: $Util.RuntimeOptions): Promise<PublicSyncAndCreateImageScanTaskResponse>;
|
|
33278
33355
|
publicSyncAndCreateImageScanTask(request: PublicSyncAndCreateImageScanTaskRequest): Promise<PublicSyncAndCreateImageScanTaskResponse>;
|
|
33356
|
+
queryAttackCountWithOptions(request: QueryAttackCountRequest, runtime: $Util.RuntimeOptions): Promise<QueryAttackCountResponse>;
|
|
33357
|
+
queryAttackCount(request: QueryAttackCountRequest): Promise<QueryAttackCountResponse>;
|
|
33279
33358
|
queryDiscoverDatabaseWithOptions(request: QueryDiscoverDatabaseRequest, runtime: $Util.RuntimeOptions): Promise<QueryDiscoverDatabaseResponse>;
|
|
33280
33359
|
queryDiscoverDatabase(request: QueryDiscoverDatabaseRequest): Promise<QueryDiscoverDatabaseResponse>;
|
|
33281
33360
|
/**
|
package/dist/client.js
CHANGED
|
@@ -297,6 +297,7 @@ class AddImageVulWhiteListRequest extends $tea.Model {
|
|
|
297
297
|
return {
|
|
298
298
|
lang: 'Lang',
|
|
299
299
|
reason: 'Reason',
|
|
300
|
+
source: 'Source',
|
|
300
301
|
target: 'Target',
|
|
301
302
|
type: 'Type',
|
|
302
303
|
whitelist: 'Whitelist',
|
|
@@ -306,6 +307,7 @@ class AddImageVulWhiteListRequest extends $tea.Model {
|
|
|
306
307
|
return {
|
|
307
308
|
lang: 'string',
|
|
308
309
|
reason: 'string',
|
|
310
|
+
source: 'string',
|
|
309
311
|
target: 'string',
|
|
310
312
|
type: 'string',
|
|
311
313
|
whitelist: 'string',
|
|
@@ -6533,6 +6535,7 @@ class DescribeCheckWarningsRequest extends $tea.Model {
|
|
|
6533
6535
|
pageSize: 'PageSize',
|
|
6534
6536
|
riskId: 'RiskId',
|
|
6535
6537
|
riskStatus: 'RiskStatus',
|
|
6538
|
+
source: 'Source',
|
|
6536
6539
|
sourceIp: 'SourceIp',
|
|
6537
6540
|
uuid: 'Uuid',
|
|
6538
6541
|
};
|
|
@@ -6547,6 +6550,7 @@ class DescribeCheckWarningsRequest extends $tea.Model {
|
|
|
6547
6550
|
pageSize: 'number',
|
|
6548
6551
|
riskId: 'number',
|
|
6549
6552
|
riskStatus: 'number',
|
|
6553
|
+
source: 'string',
|
|
6550
6554
|
sourceIp: 'string',
|
|
6551
6555
|
uuid: 'string',
|
|
6552
6556
|
};
|
|
@@ -9880,12 +9884,14 @@ class DescribeImageBaselineStrategyRequest extends $tea.Model {
|
|
|
9880
9884
|
static names() {
|
|
9881
9885
|
return {
|
|
9882
9886
|
lang: 'Lang',
|
|
9887
|
+
source: 'Source',
|
|
9883
9888
|
strategyId: 'StrategyId',
|
|
9884
9889
|
};
|
|
9885
9890
|
}
|
|
9886
9891
|
static types() {
|
|
9887
9892
|
return {
|
|
9888
9893
|
lang: 'string',
|
|
9894
|
+
source: 'string',
|
|
9889
9895
|
strategyId: 'number',
|
|
9890
9896
|
};
|
|
9891
9897
|
}
|
|
@@ -11163,6 +11169,7 @@ class DescribeImageVulWhiteListRequest extends $tea.Model {
|
|
|
11163
11169
|
currentPage: 'CurrentPage',
|
|
11164
11170
|
lang: 'Lang',
|
|
11165
11171
|
pageSize: 'PageSize',
|
|
11172
|
+
source: 'Source',
|
|
11166
11173
|
};
|
|
11167
11174
|
}
|
|
11168
11175
|
static types() {
|
|
@@ -11171,6 +11178,7 @@ class DescribeImageVulWhiteListRequest extends $tea.Model {
|
|
|
11171
11178
|
currentPage: 'number',
|
|
11172
11179
|
lang: 'string',
|
|
11173
11180
|
pageSize: 'number',
|
|
11181
|
+
source: 'string',
|
|
11174
11182
|
};
|
|
11175
11183
|
}
|
|
11176
11184
|
}
|
|
@@ -14006,12 +14014,14 @@ class DescribeRiskTypeRequest extends $tea.Model {
|
|
|
14006
14014
|
static names() {
|
|
14007
14015
|
return {
|
|
14008
14016
|
lang: 'Lang',
|
|
14017
|
+
source: 'Source',
|
|
14009
14018
|
sourceIp: 'SourceIp',
|
|
14010
14019
|
};
|
|
14011
14020
|
}
|
|
14012
14021
|
static types() {
|
|
14013
14022
|
return {
|
|
14014
14023
|
lang: 'string',
|
|
14024
|
+
source: 'string',
|
|
14015
14025
|
sourceIp: 'string',
|
|
14016
14026
|
};
|
|
14017
14027
|
}
|
|
@@ -19417,6 +19427,7 @@ class GetAgentlessTaskCountResponseBody extends $tea.Model {
|
|
|
19417
19427
|
riskMachine: 'RiskMachine',
|
|
19418
19428
|
scaVulCount: 'ScaVulCount',
|
|
19419
19429
|
scanMachine: 'ScanMachine',
|
|
19430
|
+
sysVulCount: 'SysVulCount',
|
|
19420
19431
|
vulnerability: 'Vulnerability',
|
|
19421
19432
|
};
|
|
19422
19433
|
}
|
|
@@ -19430,6 +19441,7 @@ class GetAgentlessTaskCountResponseBody extends $tea.Model {
|
|
|
19430
19441
|
riskMachine: 'number',
|
|
19431
19442
|
scaVulCount: 'number',
|
|
19432
19443
|
scanMachine: 'number',
|
|
19444
|
+
sysVulCount: 'string',
|
|
19433
19445
|
vulnerability: 'number',
|
|
19434
19446
|
};
|
|
19435
19447
|
}
|
|
@@ -21802,6 +21814,7 @@ class IgnoreCheckItemsRequest extends $tea.Model {
|
|
|
21802
21814
|
checkAndRiskTypeList: 'CheckAndRiskTypeList',
|
|
21803
21815
|
lang: 'Lang',
|
|
21804
21816
|
reason: 'Reason',
|
|
21817
|
+
source: 'Source',
|
|
21805
21818
|
type: 'Type',
|
|
21806
21819
|
uuidList: 'UuidList',
|
|
21807
21820
|
};
|
|
@@ -21811,6 +21824,7 @@ class IgnoreCheckItemsRequest extends $tea.Model {
|
|
|
21811
21824
|
checkAndRiskTypeList: { 'type': 'array', 'itemType': IgnoreCheckItemsRequestCheckAndRiskTypeList },
|
|
21812
21825
|
lang: 'string',
|
|
21813
21826
|
reason: 'string',
|
|
21827
|
+
source: 'string',
|
|
21814
21828
|
type: 'number',
|
|
21815
21829
|
uuidList: { 'type': 'array', 'itemType': 'string' },
|
|
21816
21830
|
};
|
|
@@ -21863,6 +21877,7 @@ class IgnoreHcCheckWarningsRequest extends $tea.Model {
|
|
|
21863
21877
|
checkWarningIds: 'CheckWarningIds',
|
|
21864
21878
|
reason: 'Reason',
|
|
21865
21879
|
riskId: 'RiskId',
|
|
21880
|
+
source: 'Source',
|
|
21866
21881
|
sourceIp: 'SourceIp',
|
|
21867
21882
|
type: 'Type',
|
|
21868
21883
|
};
|
|
@@ -21873,6 +21888,7 @@ class IgnoreHcCheckWarningsRequest extends $tea.Model {
|
|
|
21873
21888
|
checkWarningIds: 'string',
|
|
21874
21889
|
reason: 'string',
|
|
21875
21890
|
riskId: 'string',
|
|
21891
|
+
source: 'string',
|
|
21876
21892
|
sourceIp: 'string',
|
|
21877
21893
|
type: 'number',
|
|
21878
21894
|
};
|
|
@@ -22934,6 +22950,7 @@ class ListCheckItemWarningMachineRequest extends $tea.Model {
|
|
|
22934
22950
|
pageSize: 'PageSize',
|
|
22935
22951
|
remark: 'Remark',
|
|
22936
22952
|
riskType: 'RiskType',
|
|
22953
|
+
source: 'Source',
|
|
22937
22954
|
status: 'Status',
|
|
22938
22955
|
};
|
|
22939
22956
|
}
|
|
@@ -22948,6 +22965,7 @@ class ListCheckItemWarningMachineRequest extends $tea.Model {
|
|
|
22948
22965
|
pageSize: 'number',
|
|
22949
22966
|
remark: 'string',
|
|
22950
22967
|
riskType: 'string',
|
|
22968
|
+
source: 'string',
|
|
22951
22969
|
status: 'number',
|
|
22952
22970
|
};
|
|
22953
22971
|
}
|
|
@@ -23010,6 +23028,7 @@ class ListCheckItemWarningSummaryRequest extends $tea.Model {
|
|
|
23010
23028
|
lang: 'Lang',
|
|
23011
23029
|
pageSize: 'PageSize',
|
|
23012
23030
|
riskType: 'RiskType',
|
|
23031
|
+
source: 'Source',
|
|
23013
23032
|
};
|
|
23014
23033
|
}
|
|
23015
23034
|
static types() {
|
|
@@ -23025,6 +23044,7 @@ class ListCheckItemWarningSummaryRequest extends $tea.Model {
|
|
|
23025
23044
|
lang: 'string',
|
|
23026
23045
|
pageSize: 'number',
|
|
23027
23046
|
riskType: 'string',
|
|
23047
|
+
source: 'string',
|
|
23028
23048
|
};
|
|
23029
23049
|
}
|
|
23030
23050
|
}
|
|
@@ -29575,6 +29595,72 @@ class PublicSyncAndCreateImageScanTaskResponse extends $tea.Model {
|
|
|
29575
29595
|
}
|
|
29576
29596
|
}
|
|
29577
29597
|
exports.PublicSyncAndCreateImageScanTaskResponse = PublicSyncAndCreateImageScanTaskResponse;
|
|
29598
|
+
class QueryAttackCountRequest extends $tea.Model {
|
|
29599
|
+
constructor(map) {
|
|
29600
|
+
super(map);
|
|
29601
|
+
}
|
|
29602
|
+
static names() {
|
|
29603
|
+
return {
|
|
29604
|
+
from: 'From',
|
|
29605
|
+
lang: 'Lang',
|
|
29606
|
+
sourceIp: 'SourceIp',
|
|
29607
|
+
};
|
|
29608
|
+
}
|
|
29609
|
+
static types() {
|
|
29610
|
+
return {
|
|
29611
|
+
from: 'string',
|
|
29612
|
+
lang: 'string',
|
|
29613
|
+
sourceIp: 'string',
|
|
29614
|
+
};
|
|
29615
|
+
}
|
|
29616
|
+
}
|
|
29617
|
+
exports.QueryAttackCountRequest = QueryAttackCountRequest;
|
|
29618
|
+
class QueryAttackCountResponseBody extends $tea.Model {
|
|
29619
|
+
constructor(map) {
|
|
29620
|
+
super(map);
|
|
29621
|
+
}
|
|
29622
|
+
static names() {
|
|
29623
|
+
return {
|
|
29624
|
+
code: 'Code',
|
|
29625
|
+
count: 'Count',
|
|
29626
|
+
data: 'Data',
|
|
29627
|
+
message: 'Message',
|
|
29628
|
+
requestId: 'RequestId',
|
|
29629
|
+
success: 'Success',
|
|
29630
|
+
};
|
|
29631
|
+
}
|
|
29632
|
+
static types() {
|
|
29633
|
+
return {
|
|
29634
|
+
code: 'string',
|
|
29635
|
+
count: 'number',
|
|
29636
|
+
data: { 'type': 'array', 'itemType': QueryAttackCountResponseBodyData },
|
|
29637
|
+
message: 'string',
|
|
29638
|
+
requestId: 'string',
|
|
29639
|
+
success: 'boolean',
|
|
29640
|
+
};
|
|
29641
|
+
}
|
|
29642
|
+
}
|
|
29643
|
+
exports.QueryAttackCountResponseBody = QueryAttackCountResponseBody;
|
|
29644
|
+
class QueryAttackCountResponse extends $tea.Model {
|
|
29645
|
+
constructor(map) {
|
|
29646
|
+
super(map);
|
|
29647
|
+
}
|
|
29648
|
+
static names() {
|
|
29649
|
+
return {
|
|
29650
|
+
headers: 'headers',
|
|
29651
|
+
statusCode: 'statusCode',
|
|
29652
|
+
body: 'body',
|
|
29653
|
+
};
|
|
29654
|
+
}
|
|
29655
|
+
static types() {
|
|
29656
|
+
return {
|
|
29657
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
29658
|
+
statusCode: 'number',
|
|
29659
|
+
body: QueryAttackCountResponseBody,
|
|
29660
|
+
};
|
|
29661
|
+
}
|
|
29662
|
+
}
|
|
29663
|
+
exports.QueryAttackCountResponse = QueryAttackCountResponse;
|
|
29578
29664
|
class QueryDiscoverDatabaseRequest extends $tea.Model {
|
|
29579
29665
|
constructor(map) {
|
|
29580
29666
|
super(map);
|
|
@@ -30281,6 +30367,7 @@ class SaveImageBaselineStrategyRequest extends $tea.Model {
|
|
|
30281
30367
|
return {
|
|
30282
30368
|
baselineItemList: 'BaselineItemList',
|
|
30283
30369
|
lang: 'Lang',
|
|
30370
|
+
source: 'Source',
|
|
30284
30371
|
strategyId: 'StrategyId',
|
|
30285
30372
|
strategyName: 'StrategyName',
|
|
30286
30373
|
};
|
|
@@ -30289,6 +30376,7 @@ class SaveImageBaselineStrategyRequest extends $tea.Model {
|
|
|
30289
30376
|
return {
|
|
30290
30377
|
baselineItemList: 'string',
|
|
30291
30378
|
lang: 'string',
|
|
30379
|
+
source: 'string',
|
|
30292
30380
|
strategyId: 'number',
|
|
30293
30381
|
strategyName: 'string',
|
|
30294
30382
|
};
|
|
@@ -35391,6 +35479,7 @@ class DescribeImageBaselineStrategyResponseBodyStrategy extends $tea.Model {
|
|
|
35391
35479
|
}
|
|
35392
35480
|
static names() {
|
|
35393
35481
|
return {
|
|
35482
|
+
baselineItem: 'BaselineItem',
|
|
35394
35483
|
baselineItemList: 'BaselineItemList',
|
|
35395
35484
|
selectedItemCount: 'SelectedItemCount',
|
|
35396
35485
|
strategyId: 'StrategyId',
|
|
@@ -35401,6 +35490,7 @@ class DescribeImageBaselineStrategyResponseBodyStrategy extends $tea.Model {
|
|
|
35401
35490
|
}
|
|
35402
35491
|
static types() {
|
|
35403
35492
|
return {
|
|
35493
|
+
baselineItem: 'string',
|
|
35404
35494
|
baselineItemList: { 'type': 'array', 'itemType': DescribeImageBaselineStrategyResponseBodyStrategyBaselineItemList },
|
|
35405
35495
|
selectedItemCount: 'number',
|
|
35406
35496
|
strategyId: 'number',
|
|
@@ -43222,10 +43312,14 @@ class ListCheckItemWarningMachineResponseBodyList extends $tea.Model {
|
|
|
43222
43312
|
instanceName: 'InstanceName',
|
|
43223
43313
|
internetIp: 'InternetIp',
|
|
43224
43314
|
intranetIp: 'IntranetIp',
|
|
43315
|
+
lastScanTime: 'LastScanTime',
|
|
43225
43316
|
portOpen: 'PortOpen',
|
|
43226
43317
|
prompt: 'Prompt',
|
|
43227
43318
|
regionId: 'RegionId',
|
|
43228
43319
|
status: 'Status',
|
|
43320
|
+
targetId: 'TargetId',
|
|
43321
|
+
targetName: 'TargetName',
|
|
43322
|
+
targetType: 'TargetType',
|
|
43229
43323
|
uuid: 'Uuid',
|
|
43230
43324
|
warningRiskList: 'WarningRiskList',
|
|
43231
43325
|
};
|
|
@@ -43241,10 +43335,14 @@ class ListCheckItemWarningMachineResponseBodyList extends $tea.Model {
|
|
|
43241
43335
|
instanceName: 'string',
|
|
43242
43336
|
internetIp: 'string',
|
|
43243
43337
|
intranetIp: 'string',
|
|
43338
|
+
lastScanTime: 'number',
|
|
43244
43339
|
portOpen: 'boolean',
|
|
43245
43340
|
prompt: 'string',
|
|
43246
43341
|
regionId: 'string',
|
|
43247
43342
|
status: 'number',
|
|
43343
|
+
targetId: 'string',
|
|
43344
|
+
targetName: 'string',
|
|
43345
|
+
targetType: 'string',
|
|
43248
43346
|
uuid: 'string',
|
|
43249
43347
|
warningRiskList: { 'type': 'array', 'itemType': ListCheckItemWarningMachineResponseBodyListWarningRiskList },
|
|
43250
43348
|
};
|
|
@@ -45209,6 +45307,26 @@ class PublicSyncAndCreateImageScanTaskResponseBodyData extends $tea.Model {
|
|
|
45209
45307
|
}
|
|
45210
45308
|
}
|
|
45211
45309
|
exports.PublicSyncAndCreateImageScanTaskResponseBodyData = PublicSyncAndCreateImageScanTaskResponseBodyData;
|
|
45310
|
+
class QueryAttackCountResponseBodyData extends $tea.Model {
|
|
45311
|
+
constructor(map) {
|
|
45312
|
+
super(map);
|
|
45313
|
+
}
|
|
45314
|
+
static names() {
|
|
45315
|
+
return {
|
|
45316
|
+
eventCount: 'EventCount',
|
|
45317
|
+
tacticId: 'TacticId',
|
|
45318
|
+
tacticType: 'TacticType',
|
|
45319
|
+
};
|
|
45320
|
+
}
|
|
45321
|
+
static types() {
|
|
45322
|
+
return {
|
|
45323
|
+
eventCount: 'number',
|
|
45324
|
+
tacticId: 'string',
|
|
45325
|
+
tacticType: 'string',
|
|
45326
|
+
};
|
|
45327
|
+
}
|
|
45328
|
+
}
|
|
45329
|
+
exports.QueryAttackCountResponseBodyData = QueryAttackCountResponseBodyData;
|
|
45212
45330
|
class QueryGroupedSecurityEventMarkMissListResponseBodyList extends $tea.Model {
|
|
45213
45331
|
constructor(map) {
|
|
45214
45332
|
super(map);
|
|
@@ -45593,6 +45711,9 @@ class Client extends openapi_client_1.default {
|
|
|
45593
45711
|
if (!tea_util_1.default.isUnset(request.reason)) {
|
|
45594
45712
|
query["Reason"] = request.reason;
|
|
45595
45713
|
}
|
|
45714
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
45715
|
+
query["Source"] = request.source;
|
|
45716
|
+
}
|
|
45596
45717
|
if (!tea_util_1.default.isUnset(request.target)) {
|
|
45597
45718
|
query["Target"] = request.target;
|
|
45598
45719
|
}
|
|
@@ -49243,6 +49364,9 @@ class Client extends openapi_client_1.default {
|
|
|
49243
49364
|
if (!tea_util_1.default.isUnset(request.riskStatus)) {
|
|
49244
49365
|
query["RiskStatus"] = request.riskStatus;
|
|
49245
49366
|
}
|
|
49367
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
49368
|
+
query["Source"] = request.source;
|
|
49369
|
+
}
|
|
49246
49370
|
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
49247
49371
|
query["SourceIp"] = request.sourceIp;
|
|
49248
49372
|
}
|
|
@@ -51129,6 +51253,9 @@ class Client extends openapi_client_1.default {
|
|
|
51129
51253
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
51130
51254
|
query["Lang"] = request.lang;
|
|
51131
51255
|
}
|
|
51256
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
51257
|
+
query["Source"] = request.source;
|
|
51258
|
+
}
|
|
51132
51259
|
if (!tea_util_1.default.isUnset(request.strategyId)) {
|
|
51133
51260
|
query["StrategyId"] = request.strategyId;
|
|
51134
51261
|
}
|
|
@@ -51942,6 +52069,9 @@ class Client extends openapi_client_1.default {
|
|
|
51942
52069
|
if (!tea_util_1.default.isUnset(request.pageSize)) {
|
|
51943
52070
|
query["PageSize"] = request.pageSize;
|
|
51944
52071
|
}
|
|
52072
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
52073
|
+
query["Source"] = request.source;
|
|
52074
|
+
}
|
|
51945
52075
|
let req = new $OpenApi.OpenApiRequest({
|
|
51946
52076
|
query: openapi_util_1.default.query(query),
|
|
51947
52077
|
});
|
|
@@ -53453,7 +53583,7 @@ class Client extends openapi_client_1.default {
|
|
|
53453
53583
|
}
|
|
53454
53584
|
/**
|
|
53455
53585
|
* @deprecated
|
|
53456
|
-
* This operation is phased out. You can use the ListCheckResult operation.
|
|
53586
|
+
* This operation is phased out. You can use the [ListCheckResult](~~ListCheckResult~~) operation.
|
|
53457
53587
|
*
|
|
53458
53588
|
* @param request DescribeRiskCheckResultRequest
|
|
53459
53589
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -53517,7 +53647,7 @@ class Client extends openapi_client_1.default {
|
|
|
53517
53647
|
}
|
|
53518
53648
|
/**
|
|
53519
53649
|
* @deprecated
|
|
53520
|
-
* This operation is phased out. You can use the ListCheckResult operation.
|
|
53650
|
+
* This operation is phased out. You can use the [ListCheckResult](~~ListCheckResult~~) operation.
|
|
53521
53651
|
*
|
|
53522
53652
|
* @param request DescribeRiskCheckResultRequest
|
|
53523
53653
|
* @return DescribeRiskCheckResultResponse
|
|
@@ -53692,6 +53822,9 @@ class Client extends openapi_client_1.default {
|
|
|
53692
53822
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
53693
53823
|
query["Lang"] = request.lang;
|
|
53694
53824
|
}
|
|
53825
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
53826
|
+
query["Source"] = request.source;
|
|
53827
|
+
}
|
|
53695
53828
|
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
53696
53829
|
query["SourceIp"] = request.sourceIp;
|
|
53697
53830
|
}
|
|
@@ -57996,6 +58129,9 @@ class Client extends openapi_client_1.default {
|
|
|
57996
58129
|
if (!tea_util_1.default.isUnset(request.reason)) {
|
|
57997
58130
|
query["Reason"] = request.reason;
|
|
57998
58131
|
}
|
|
58132
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
58133
|
+
query["Source"] = request.source;
|
|
58134
|
+
}
|
|
57999
58135
|
if (!tea_util_1.default.isUnset(request.type)) {
|
|
58000
58136
|
query["Type"] = request.type;
|
|
58001
58137
|
}
|
|
@@ -58037,6 +58173,9 @@ class Client extends openapi_client_1.default {
|
|
|
58037
58173
|
if (!tea_util_1.default.isUnset(request.riskId)) {
|
|
58038
58174
|
query["RiskId"] = request.riskId;
|
|
58039
58175
|
}
|
|
58176
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
58177
|
+
query["Source"] = request.source;
|
|
58178
|
+
}
|
|
58040
58179
|
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
58041
58180
|
query["SourceIp"] = request.sourceIp;
|
|
58042
58181
|
}
|
|
@@ -58675,6 +58814,9 @@ class Client extends openapi_client_1.default {
|
|
|
58675
58814
|
if (!tea_util_1.default.isUnset(request.riskType)) {
|
|
58676
58815
|
query["RiskType"] = request.riskType;
|
|
58677
58816
|
}
|
|
58817
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
58818
|
+
query["Source"] = request.source;
|
|
58819
|
+
}
|
|
58678
58820
|
if (!tea_util_1.default.isUnset(request.status)) {
|
|
58679
58821
|
query["Status"] = request.status;
|
|
58680
58822
|
}
|
|
@@ -58734,6 +58876,9 @@ class Client extends openapi_client_1.default {
|
|
|
58734
58876
|
if (!tea_util_1.default.isUnset(request.riskType)) {
|
|
58735
58877
|
query["RiskType"] = request.riskType;
|
|
58736
58878
|
}
|
|
58879
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
58880
|
+
query["Source"] = request.source;
|
|
58881
|
+
}
|
|
58737
58882
|
let req = new $OpenApi.OpenApiRequest({
|
|
58738
58883
|
query: openapi_util_1.default.query(query),
|
|
58739
58884
|
});
|
|
@@ -62673,6 +62818,40 @@ class Client extends openapi_client_1.default {
|
|
|
62673
62818
|
let runtime = new $Util.RuntimeOptions({});
|
|
62674
62819
|
return await this.publicSyncAndCreateImageScanTaskWithOptions(request, runtime);
|
|
62675
62820
|
}
|
|
62821
|
+
async queryAttackCountWithOptions(request, runtime) {
|
|
62822
|
+
tea_util_1.default.validateModel(request);
|
|
62823
|
+
let query = {};
|
|
62824
|
+
if (!tea_util_1.default.isUnset(request.sourceIp)) {
|
|
62825
|
+
query["SourceIp"] = request.sourceIp;
|
|
62826
|
+
}
|
|
62827
|
+
let body = {};
|
|
62828
|
+
if (!tea_util_1.default.isUnset(request.from)) {
|
|
62829
|
+
body["From"] = request.from;
|
|
62830
|
+
}
|
|
62831
|
+
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
62832
|
+
body["Lang"] = request.lang;
|
|
62833
|
+
}
|
|
62834
|
+
let req = new $OpenApi.OpenApiRequest({
|
|
62835
|
+
query: openapi_util_1.default.query(query),
|
|
62836
|
+
body: openapi_util_1.default.parseToMap(body),
|
|
62837
|
+
});
|
|
62838
|
+
let params = new $OpenApi.Params({
|
|
62839
|
+
action: "QueryAttackCount",
|
|
62840
|
+
version: "2018-12-03",
|
|
62841
|
+
protocol: "HTTPS",
|
|
62842
|
+
pathname: "/",
|
|
62843
|
+
method: "POST",
|
|
62844
|
+
authType: "AK",
|
|
62845
|
+
style: "RPC",
|
|
62846
|
+
reqBodyType: "formData",
|
|
62847
|
+
bodyType: "json",
|
|
62848
|
+
});
|
|
62849
|
+
return $tea.cast(await this.callApi(params, req, runtime), new QueryAttackCountResponse({}));
|
|
62850
|
+
}
|
|
62851
|
+
async queryAttackCount(request) {
|
|
62852
|
+
let runtime = new $Util.RuntimeOptions({});
|
|
62853
|
+
return await this.queryAttackCountWithOptions(request, runtime);
|
|
62854
|
+
}
|
|
62676
62855
|
async queryDiscoverDatabaseWithOptions(request, runtime) {
|
|
62677
62856
|
tea_util_1.default.validateModel(request);
|
|
62678
62857
|
let query = {};
|
|
@@ -63064,6 +63243,9 @@ class Client extends openapi_client_1.default {
|
|
|
63064
63243
|
if (!tea_util_1.default.isUnset(request.lang)) {
|
|
63065
63244
|
query["Lang"] = request.lang;
|
|
63066
63245
|
}
|
|
63246
|
+
if (!tea_util_1.default.isUnset(request.source)) {
|
|
63247
|
+
query["Source"] = request.source;
|
|
63248
|
+
}
|
|
63067
63249
|
if (!tea_util_1.default.isUnset(request.strategyId)) {
|
|
63068
63250
|
query["StrategyId"] = request.strategyId;
|
|
63069
63251
|
}
|