GetAgentlessTaskCountBatch
Retrieves the agentless detection risk statistics for 1 to 100 resources in a single batch.
Operation description
Only Alibaba Cloud accounts that have activated the pay-as-you-go billing method for the agentless detection feature of Security Center can call this operation. The UuidList parameter can contain up to 100 UUIDs. Duplicate UUIDs are deduplicated based on the order of their first appearance. The returned Data is keyed by UUID, and the results for multiple resources are not aggregated. RiskMachine, ScanMachine, and LastTaskTime are account-level statistics, and the results for each resource in the same request remain consistent.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:GetAgentlessTaskCountBatch |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TargetType |
integer |
No |
The detection object type. Valid values:
|
3 |
| UuidList |
array |
Yes |
The list of UUIDs of the resources to query. You can specify 1 to 100 UUIDs. |
["3bb30859-b3b5-4f28-868f-b0892c98****"] |
|
string |
Yes |
The UUID of the resource. |
3bb30859-b3b5-4f28-868f-b0892c98**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Data |
object |
The statistics grouped by resource UUID. The keys of the map are the resource UUIDs. |
{"3bb30859-b3b5-4f28-868f-b0892c98****":{"RiskMachine":1,"ScanMachine":1}} |
|
object |
The agentless detection statistics for the specified resource. |
{"RiskMachine":1,"ScanMachine":1} |
|
| BaselineCheckCount |
integer |
The total number of baseline check items. |
1 |
| CveVulCount |
integer |
The total number of system vulnerability items. |
1 |
| EstimateUsedSize |
integer |
The estimated detection volume in GB. This field is not currently returned by the batch statistics operation. |
10 |
| LastTaskTime |
integer |
The timestamp of the last scan time, in milliseconds. |
1682577532318 |
| MaliciousFile |
integer |
The total number of malicious sample files. |
1 |
| RiskMachine |
integer |
The number of vulnerable servers. |
1 |
| ScaVulCount |
integer |
The total number of application vulnerabilities. |
1 |
| ScanMachine |
integer |
The number of scanned servers. |
1 |
| SensitiveFileCount |
integer |
The total number of sensitive files. |
1 |
| SysVulCount |
integer |
The total number of Windows system vulnerability items. |
1 |
| Vulnerability |
integer |
The number of vulnerability risks. |
1 |
| RequestId |
string |
The ID of the request. This is a unique identifier generated by Alibaba Cloud for the request and can be used to troubleshoot and locate issues. |
D03DD0FD-6041-5107-AC00-383E28F1**** |
Examples
Success response
JSON format
{
"Data": {
"key": {
"BaselineCheckCount": 1,
"CveVulCount": 1,
"EstimateUsedSize": 10,
"LastTaskTime": 1682577532318,
"MaliciousFile": 1,
"RiskMachine": 1,
"ScaVulCount": 1,
"ScanMachine": 1,
"SensitiveFileCount": 1,
"SysVulCount": 1,
"Vulnerability": 1
}
},
"RequestId": "D03DD0FD-6041-5107-AC00-383E28F1****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.