Queries tasks that are not complete by task type.
Debugging
Authorization information
There is currently no authorization information disclosed in the API.
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
TaskType | string | Yes | The type of the task. Valid values:
| IMAGE_SCAN |
Target | string | No | The value of the object on which the task runs. If you set TaskType to IMAGE_SCAN, set this parameter to the UUID of the image that you want to scan. If you set TaskType to ASSETS_COLLECTION, set this parameter to the UUID of the server whose information you want to collect. | 4fe8e1cd-3c37-4851-b9de-124da32c**** |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "F5CF78A7-30AA-59DB-847F-13EE3AE7****",
"OnceTasks": [
{
"Status": 1,
"StatusText": "SUCCESS",
"Progress": 75,
"RealRunTime": 1670307567000,
"TaskName": "IMAGE_SCAN",
"Finish": 1,
"TotalCount": 30,
"EndTime": 1670307567000,
"TaskType": "IMAGE_SCAN",
"StartTime": 1640102400000,
"ResultInfo": "TASK_NOT_SUPPORT_REGION",
"Target": "238cf050a7270dd6940602e70f1e5a11eeaf4e02035f445b7f613ff5e064****",
"TaskId": "9fb50f2af8bb67c9fdb684194c83****",
"FinishCount": 67,
"TargetType": "IMAGE",
"TaskImageInfo": {
"RepoId": "crr-r88w2vryp8m****",
"Digest": "default_digest",
"Tag": "v1.20-002-a2*****",
"RepoRegionId": "cn-hangzhou",
"RepoName": "testyyy",
"RepoNamespace": "bitn***",
"RegionId": "cn-hangzhou",
"Image": "***s.com/sas_test/baseli***",
"Pod": "expoit-law-****",
"AppName": "ack-jenkins-****",
"NodeName": "pztest****",
"NodeIp": "172.18.XXX.XXX",
"NodeInstanceId": "i-0xi5mxvtmfw9****",
"ClusterId": "a765ba1435e7f9446065370e9a41****",
"ClusterName": "ACK-test-****"
}
}
]
}
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.