Retrieves the details of subtasks for a one-time scan task result, including image scanning and image asset synchronization.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:DescribeOnceTaskLeafRecordPage |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
Yes |
The maximum number of entries per page in a paged query. Default value: 20. |
20 |
| CurrentPage |
integer |
Yes |
The page number of the current page in a paged query. |
1 |
| TaskType |
string |
Yes |
The task type. Valid values:
|
CLIENT_PROBLEM_CHECK |
| RelateInfo |
boolean |
Yes |
Specifies whether to associate extended information. |
true |
| TaskId |
string |
No |
The ID of the task to retrieve. |
1471d8ebb96795b41ede090b9758**** |
| Source |
string |
No |
The request source. |
console_batch |
| StartTime |
integer |
No |
The timestamp of the start time. |
1648438617000 |
| EndTime |
integer |
No |
The timestamp of the end time. |
1668064495000 |
| StatusList |
array |
No |
The status list. |
|
|
string |
No |
The running status of the task. Valid values:
|
INIT |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. Alibaba Cloud generates a unique identifier for each request. You can use the request ID to troubleshoot issues. |
A4EB8B1C-1DEC-5E18-BCD0-D1BBB393**** |
| PageInfo |
object |
The pagination information. |
|
| CurrentPage |
integer |
The page number of the current page in a paged query. |
1 |
| PageSize |
integer |
The maximum number of entries per page in a paged query. |
20 |
| TotalCount |
integer |
The total number of records in the query result. |
16 |
| Count |
integer |
The number of records on the current page in a paged query. |
6 |
| OnceTasks |
array<object> |
The list of task details. |
|
|
array<object> |
The list of task details. |
||
| Status |
string |
The status. |
0 |
| StatusText |
string |
The running status of the task. Valid values:
|
SUCCESS |
| Progress |
integer |
The export progress percentage (%). |
75 |
| RealRunTime |
integer |
The task execution time. The value is a UNIX timestamp. Unit: milliseconds. |
1670307567000 |
| TaskName |
string |
The task name. |
IMAGE_SCAN |
| Finish |
integer |
Indicates whether the task is completed. Valid values:
|
1 |
| TotalCount |
string |
The total number of records. This parameter takes effect in a paged query. |
30 |
| EndTime |
integer |
The end time. The value is a UNIX timestamp. Unit: milliseconds. |
1670307567000 |
| TaskType |
string |
The task type. |
IMAGE_SCAN |
| StartTime |
integer |
The start execution time. The value is a UNIX timestamp. Unit: milliseconds. |
1640102400000 |
| ResultInfo |
string |
The execution result. |
TASK_NOT_SUPPORT_REGION |
| Target |
string |
The task target. |
238cf050a7270dd6940602e70f1e5a11eeaf4e02035f445b7f613ff5e064**** |
| TaskId |
string |
The task ID. |
9fb50f2af8bb67c9fdb684194c83**** |
| FinishCount |
string |
The number of completed records. |
67 |
| TargetType |
string |
The scan object type. Valid values:
|
IMAGE |
| TaskImageInfo |
object |
The image scan-related information. |
|
| RepoId |
string |
The image repository ID. |
crr-r88w2vryp8m**** |
| Digest |
string |
The image digest. |
9e0dc29d872d2e386cc5c0c92b529a84e3acfade16f5cb1d054a2ee3c99**** |
| Tag |
string |
The image tag. |
v1.20-002-a2***** |
| RepoRegionId |
string |
The region ID of the image repository. |
cn-hangzhou |
| RepoName |
string |
The image repository name. |
testyyy |
| RepoNamespace |
string |
The image namespace. |
bitn*** |
| RegionId |
string |
The region where the server image is located. |
cn-hangzhou |
| Image |
string |
The container image. |
***s.com/sas_test/baseli*** |
| Pod |
string |
The image pod information. |
expoit-law-**** |
| AppName |
string |
The application name. |
ack-jenkins-**** |
| NodeName |
string |
The node name. |
pztest**** |
| NodeIp |
string |
The node IP address. |
172.18.XXX.XXX |
| NodeInstanceId |
string |
The node instance ID. |
i-0xi5mxvtmfw9**** |
| ClusterId |
string |
The cluster ID. |
a765ba1435e7f9446065370e9a41**** |
| ClusterName |
string |
The cluster name. |
ACK-test-**** |
| CostTimeInfo |
string |
The time consumption statistics in JSON format, showing the end time of each item. Valid values:
|
{"scaVul":"2023-09-04 09:37:21","identificationInfo":"2023-09-04 09:37:30","forbiddenPackageInfo":"2023-09-04 09:37:16","binary":"2023-09-04 09:37:25","baseline":"2023-09-04 09:37:19","sensitiveFile":"2023-09-04 09:38:34","vul":"2023-09-04 09:37:31","webshell":"2023-09-04 09:38:27","sensitiveInfo":"2023-09-04 09:37:16","script":"2023-09-04 09:39:44"} |
| RegistryType |
string |
The type of the image repository. Valid values:
|
acr |
Examples
Success response
JSON format
{
"RequestId": "A4EB8B1C-1DEC-5E18-BCD0-D1BBB393****",
"PageInfo": {
"CurrentPage": 1,
"PageSize": 20,
"TotalCount": 16,
"Count": 6
},
"OnceTasks": [
{
"Status": "0",
"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": "9e0dc29d872d2e386cc5c0c92b529a84e3acfade16f5cb1d054a2ee3c99****",
"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-****",
"CostTimeInfo": "{\"scaVul\":\"2023-09-04 09:37:21\",\"identificationInfo\":\"2023-09-04 09:37:30\",\"forbiddenPackageInfo\":\"2023-09-04 09:37:16\",\"binary\":\"2023-09-04 09:37:25\",\"baseline\":\"2023-09-04 09:37:19\",\"sensitiveFile\":\"2023-09-04 09:38:34\",\"vul\":\"2023-09-04 09:37:31\",\"webshell\":\"2023-09-04 09:38:27\",\"sensitiveInfo\":\"2023-09-04 09:37:16\",\"script\":\"2023-09-04 09:39:44\"}",
"RegistryType": "acr"
}
}
]
}
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.