Queries the list of incomplete tasks by task type.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
yundun-sas:ListUnfinishedOnceTask |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TaskType |
string |
Yes |
The task type. Valid values:
|
IMAGE_SCAN |
| Target |
string |
No |
The target object value. Valid values:
|
4fe8e1cd-3c37-4851-b9de-124da32c**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID, which is a unique identifier generated by Alibaba Cloud for the request. You can use this ID to troubleshoot issues. |
F5CF78A7-30AA-59DB-847F-13EE3AE7**** |
| OnceTasks |
array<object> |
The task details. |
|
|
array<object> |
The task details. |
||
| Status |
integer |
The status. |
1 |
| StatusText |
string |
The running status of the task. Valid values:
|
SUCCESS |
| Progress |
integer |
The export progress percentage (%). |
75 |
| RealRunTime |
integer |
The task execution time. |
1670307567000 |
| TaskName |
string |
The task name. |
IMAGE_SCAN |
| Finish |
integer |
Indicates whether the task is completed. Valid values:
|
1 |
| TotalCount |
integer |
The total number of entries. This parameter takes effect for paged query and paging. |
30 |
| EndTime |
integer |
The end time. |
1670307567000 |
| TaskType |
string |
The task type. |
IMAGE_SCAN |
| StartTime |
integer |
The start time of the task execution. |
1640102400000 |
| ResultInfo |
string |
The execution result. |
TASK_NOT_SUPPORT_REGION |
| Target |
string |
The task target. |
238cf050a7270dd6940602e70f1e5a11eeaf4e02035f445b7f613ff5e064**** |
| TaskId |
string |
The task ID. |
9fb50f2af8bb67c9fdb684194c83**** |
| FinishCount |
integer |
The number of completed records. |
67 |
| TargetType |
string |
The scan object type. Valid values:
|
IMAGE |
| TaskImageInfo |
object |
The image scan information. |
|
| RepoId |
string |
The ID of the image repository. |
crr-r88w2vryp8m**** |
| Digest |
string |
The image digest. |
default_digest |
| Tag |
string |
The image tag. |
v1.20-002-a2***** |
| RepoRegionId |
string |
The region ID of the image repository. |
cn-hangzhou |
| RepoName |
string |
The name of the image repository. |
testyyy |
| RepoNamespace |
string |
The namespace to which the image repository belongs. |
bitn*** |
| RegionId |
string |
The region ID of the server image. |
cn-hangzhou |
| Image |
string |
The container image. |
***s.com/sas_test/baseli*** |
| Pod |
string |
The pod of the image. |
expoit-law-**** |
| AppName |
string |
The name of the application. |
ack-jenkins-**** |
| NodeName |
string |
The name of the node. |
pztest**** |
| NodeIp |
string |
The IP address of the node. |
172.18.XXX.XXX |
| NodeInstanceId |
string |
The instance ID of the node. |
i-0xi5mxvtmfw9**** |
| ClusterId |
string |
The ID of the cluster. |
a765ba1435e7f9446065370e9a41**** |
| ClusterName |
string |
The name of the cluster. |
ACK-test-**** |
Examples
Success response
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 |
|---|---|---|---|
| 500 | ServerError | ServerError | |
| 403 | NoPermission | caller has no permission |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.