All Products
Search
Document Center

Security Center:DescribeOnceTaskLeafRecordPage

Last Updated:Sep 07, 2026

Retrieves the details of subtasks for a one-time scan task result, including image scanning and image asset synchronization.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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:

  • IMAGE_SCAN: image scanning.

  • IMAGE_REGISTRY_PULL: image asset synchronization.

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: Pending.

  • START: Started.

  • SUCCESS: Completed.

  • TIMEOUT: Timed out.

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:

  • INIT: Pending.

  • START: Started.

  • SUCCESS: Completed.

  • TIMEOUT: Timed out.

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:

  • 0: Not completed.

  • 1: Completed.

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_REPO: Image repository.

  • IMAGE: Image.

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:

  • vul: system vulnerability.

  • scaVul: application vulnerability.

  • baseline: baseline.

  • binary: binary.

  • forbiddenPackageInfo: forbidden installation.

  • identificationInfo: identity authentication.

  • script: malicious script.

  • sensitiveFile: sensitive file.

  • sensitiveInfo: AccessKey detection.

  • webshell: web shell.

{"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: acr.

  • harbor: harbor.

  • quay: quay.

  • CI/CD: CI/CD repository type.

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.