Queries agentless detection tasks.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
yundun-sas:ListAgentlessTask | Read |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
CurrentPage | integer | No | The number of the page to return. | 1 |
PageSize | integer | No | The number of entries to return on each page. | 20 |
TargetType | integer | No | The type of the asset that you want to detect. Valid values:
| 1 |
RootTaskId | string | No | The ID of the main task. | 12c27343861610c5db3f7a2573b4**** |
Status | integer | No | The status of the detection task.
| 2 |
StartTime | long | No | The start timestamp of the task. | 1651290987000 |
EndTime | long | No | The end timestamp of the task. | 1635575219000 |
RootTask | boolean | No | Specifies whether to query main tasks. Valid values:
| false |
TaskId | string | No | The ID of the main task. If you want to query subtasks of a main task, you must specify this parameter. | d7b2acf8d362742123e4a84e1bf8**** |
MachineName | string | No | The name of the instance. | oracle-win-001**** |
InternetIp | string | No | The public IP address of the asset that you want to query. | 1.1.XX.XX |
IntranetIp | string | No | The private IP address of the asset that you want to query. | 172.26.XX.XX |
Uuid | string | No | The UUID of the server. | e4af3620-6895-4e2f-a641-a9d8fb53**** |
TargetName | string | No | The name of the asset that you want to detect. | source-test-obj-0**** |
Lang | string | No | The language type. Valid values:
| zh |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "1A975D03-5F49-5354-B2CB-3918D5DA****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 55
},
"List": [
{
"TaskId": "1538****",
"TaskName": "AGENTLESS_SCAN",
"TargetType": 2,
"Status": 1,
"Progress": 60,
"StartTime": 1672741657897,
"EndTime": 1678895999999,
"Result": "True",
"Uuid": "49e25e0f-bb51-4a5a-a1b3-13a4ddaa****",
"InternetIp": "8.210.XX.XX",
"IntranetIp": "172.25.XX.XX",
"InstanceName": "sql-test-0****",
"TargetName": "hkdevt****",
"ProgressByProject": "\"{\\\"scaVul\\\":100,\\\"binary\\\":100,\\\"baseline\\\":100,\\\"vul\\\":100,\\\"webshell\\\":100,\\\"script\\\":100,\\\"sensitiveInfo\\\":100}\"",
"ReportStatus": "SUCCESS",
"ReportDownloadUrl": "http://newsas-oss-bucket.oss-cn-hangzhou.aliyuncs.com/agent_less_single_report****",
"MeasureSpace": 154.11
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | NoPermission | caller has no permission | You are not authorized to do this operation. |
500 | ServerError | ServerError | - |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||
---|---|---|---|---|---|---|---|---|
2024-01-31 | The Error code has changed. The response structure of the API has changed | see changesets | ||||||
|