All Products
Search
Document Center

Platform For AI:ListImages

Last Updated:Sep 09, 2026

Retrieves a list of images.

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

paiimage:ListImages

list

*All Resource

*

None None

Request syntax

GET /api/v1/images HTTP/1.1

Request parameters

Parameter

Type

Required

Description

Example

Name

string

No

The image name. Fuzzy match is supported.

tensorflow_2.9

PageNumber

integer

No

The page number of the image list. Minimum value: 1. Default value: 1.

1

PageSize

integer

No

The number of entries per page for a paged query. Default value: 20.

20

SortBy

string

No

The sort field for a paged query. Currently, the GmtCreateTime field is used for sorting.

GmtCreateTime

Order

string

No

The sort order for the specified sort field in a paged query. Used together with SortBy. Default value: ASC.

  • ASC: Ascending order.

  • DESC: Descending order.

DESC

Labels

string

No

The label filter conditions. Separate multiple conditions with commas (,). The format of a single filter condition is Key=Value. Valid values of Key:

  • system.chipType

  • system.dsw.cudaVersion

  • system.dsw.fromImageId

  • system.dsw.fromInstanceId

  • system.dsw.id

  • system.dsw.os

  • system.dsw.osVersion

  • system.dsw.resourceType

  • system.dsw.rootImageId

  • system.dsw.stage

  • system.dsw.tag

  • system.dsw.type

  • system.framework

  • system.origin

  • system.pythonVersion

  • system.source

  • system.supported.dlc

  • system.supported.dsw

system.framework=XGBoost 1.6.0,system.official=true

Verbose

boolean

No

Specifies whether to display non-essential information. Non-essential information currently includes Labels. Valid values:

  • true: Includes non-essential information.

  • false: Does not include non-essential information.

true

WorkspaceId

string

No

The workspace ID. For information about how to obtain the workspace ID, see ListWorkspaces.

20******55

Query

string

No

Fuzzy searches by image name and description.

name

Accessibility

string

No

The visibility of the image. Currently only takes effect for custom images.

  • PUBLIC: Public.

  • PRIVATE: Private.

PUBLIC

ImageUri

string

No

The image URI.

registry.cn-hangzhou.aliyuncs.com/pai-compression/nlp:gpu

Options

string

No

The options. Currently supports ExactMatchName for exact match search on Name.

ExactMatchName

Response elements

Element

Type

Description

Example

object

The response struct.

RequestId

string

The request ID.

5A14FA81-DD4E-******-6343FE44B941

TotalCount

integer

The total number of images returned.

2

Images

array<object>

The image list.

array<object>

The image details.

Name

string

The image name.

tensorflow_2.9

GmtCreateTime

string

The creation time in UTC, in ISO 8601 format.

2021-01-21T17:12:35.232Z

Description

string

The image description.

desc

ImageUri

string

The image URI, including the version number.

registry-vpc.cn-shanghai.aliyuncs.com/******/pai:python_3.8.10-tensorflow_2.9.0

Labels

array<object>

The image label list.

object

The image label.

Key

string

The key of the label.

system.chipType

Value

string

The value of the label.

GPU

ImageId

string

The image ID.

image-tzi7f9******s45t

Accessibility

string

The visibility of the image. Valid values:

  • PUBLIC: All members of the current workspace can operate on the image.

  • PRIVATE: Only the creator can operate on the image.

PUBLIC

GmtModifiedTime

string

The modification time in UTC, in ISO 8601 format.

2021-01-21T17:12:35.232Z

UserId

string

The UID of the Alibaba Cloud account of the creator.

155**********904

ParentUserId

string

The UID of the Alibaba Cloud account of the creator.

155**********904

WorkspaceId

string

The workspace ID.

20******55

Size

integer

The image size, in bytes.

2

SourceType

string

The image source type.

Build

SourceId

string

The image source ID.

build-****ks92

Examples

Success response

JSON format

{
  "RequestId": "5A14FA81-DD4E-******-6343FE44B941",
  "TotalCount": 2,
  "Images": [
    {
      "Name": "tensorflow_2.9",
      "GmtCreateTime": "2021-01-21T17:12:35.232Z",
      "Description": "desc",
      "ImageUri": "registry-vpc.cn-shanghai.aliyuncs.com/******/pai:python_3.8.10-tensorflow_2.9.0",
      "Labels": [
        {
          "Key": "system.chipType",
          "Value": "GPU"
        }
      ],
      "ImageId": "image-tzi7f9******s45t",
      "Accessibility": "PUBLIC",
      "GmtModifiedTime": "2021-01-21T17:12:35.232Z\n",
      "UserId": "155**********904",
      "ParentUserId": "155**********904",
      "WorkspaceId": "20******55",
      "Size": 2,
      "SourceType": "Build",
      "SourceId": "build-****ks92"
    }
  ]
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.