All Products
Search
Document Center

Container Registry:ListScanBaselineByTask

Last Updated:Sep 25, 2026

Queries baseline vulnerabilities of a cloud security scan task by paging.

Operation description

Before calling this operation, scan the image by using the cloud security engine.

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

cr:ListScanBaseline

get

*Instance

acs:cr:{#regionId}:{#accountId}:instance/{#InstanceId}

None None

Request parameters

Parameter

Type

Required

Description

Example

InstanceId

string

No

The instance ID.

cri-***********

PageNo

integer

No

The page number.

1

PageSize

integer

No

The page size.

30

Level

string

No

The level.

High

RepoId

string

No

The repository ID.

crr-**************

Tag

string

No

The image version.

1.1.36

Digest

string

No

The image digest value.

sha256:1c89806cfaf66d2990e2cf1131ebd56ff24b133745a33abf1228*************

ScanTaskId

string

No

The image scan task ID.

3e526d7e-4b45-4703-b046-***********

Response elements

Element

Type

Description

Example

object

Schema of Response

RequestId

string

Id of the request

5259118F-79E2-57E9-9AEA-551586F4FAED

Code

integer

The return code.

success

PageNo

integer

The page number.

1

IsSuccess

boolean

Indicates whether the API call is successful. Valid values:

  • true: The API call is successful.

  • false: The API call failed.

true

PageSize

integer

The number of entries per page.

30

TotalCount

integer

The total number of entries.

2

ScanBaselines

array<object>

The baseline list.

object

The baseline list.

ScanTaskId

string

The image scan task ID.

2328fcaa-f28a-405d-a357-asdvfrew23

BaselineClassAlias

string

The baseline check category.

Service Configuration

BaselineNameAlias

string

The baseline check name.

Service Configuration

BaselineNameLevel

string

The baseline check risk level.

high

LowRiskItemCount

integer

The number of low-risk items.

1

MiddleRiskItemCount

integer

The number of medium-risk items.

1

HighRiskItemCount

integer

The number of high-risk items.

1

BaselineItemCount

integer

The number of baseline check items.

1

BaselineNameKey

string

The baseline name key.

ak_leak

FirstScanTime

integer

The time of the first scan.

2024-04-10 15:33:26

BaselineDetailDescription

string

The baseline description.

Access Key stored in plaintext

BaselineDetailPrompt

string

The baseline check path and content.

usr/local/www/project/environments/dev/common/config/paramsxxx

BaselineDetailAdvice

string

The baseline check remediation suggestion.

Obfuscate and encrypt the AccessKey to prevent exploitation

CreateTime

integer

The creation time, in UNIX timestamp format. Unit: milliseconds.

1695090008000

UpdateTime

integer

The update time, in UNIX timestamp format. Unit: milliseconds.

1684220824226

Examples

Success response

JSON format

{
  "RequestId": "5259118F-79E2-57E9-9AEA-551586F4FAED",
  "Code": 0,
  "PageNo": 1,
  "IsSuccess": true,
  "PageSize": 30,
  "TotalCount": 2,
  "ScanBaselines": [
    {
      "ScanTaskId": "2328fcaa-f28a-405d-a357-asdvfrew23",
      "BaselineClassAlias": "服务配置",
      "BaselineNameAlias": "服务配置",
      "BaselineNameLevel": "high",
      "LowRiskItemCount": 1,
      "MiddleRiskItemCount": 1,
      "HighRiskItemCount": 1,
      "BaselineItemCount": 1,
      "BaselineNameKey": "ak_leak",
      "FirstScanTime": 0,
      "BaselineDetailDescription": "Access Key明文存储",
      "BaselineDetailPrompt": "usr/local/www/project/environments/dev/common/config/paramsxxx",
      "BaselineDetailAdvice": "建议对ak混淆加密,避免被利用",
      "CreateTime": 1695090008000,
      "UpdateTime": 1684220824226
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.