Help Center/ AI DataLake/ API Reference/ Tenant Image Management/ Listing Custom Image Versions
Updated on 2026-11-06 GMT+08:00

Listing Custom Image Versions

Function

This API is used to list custom image versions. You can query all versions of a specified image. This API is synchronous. There are no accompanying APIs or specific scenarios.

Calling Method

For details, see Calling APIs.

URI

GET /v2/images/{image_id}/versions

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

image_id

Yes

String

Definition: Image ID. You can obtain the image ID by calling the Listing Custom Images API.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

limit

No

Integer

Definition: Page size.

Constraints: N/A

Range: 1 to 1000.

Default Value: 100.

offset

No

Integer

Definition: Page offset.

Constraints: N/A

Range: 0 to 10000.

Default Value: 0.

version

No

String

Definition: Image version name (tag).

Constraints: N/A

Range: 2 to 32 characters. Only letters, digits, hyphens (-), periods (.), and underscores (_) are allowed.

Default Value: N/A

type

No

String

Definition: Image version type.

Constraints: N/A

Range

  • STABLE: Stable version.

  • RECOMMEND: Recommended version.

  • BETA: Beta version.

Default Value: N/A

architectures

No

String

Definition: Image architecture. Multiple values are allowed, separated by commas (,).

Constraints: N/A

Range

  • x86_64: x86 architecture.

  • aarch64: Arm architecture.

Default Value: N/A

workspace_id

No

String

Definition: Workspace ID, used to filter image versions supported by the workspace. You can obtain the workspace ID by calling the Obtaining a Workspace ID API.

Constraints: N/A

Range: 1 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

endpoint_id

No

String

Definition: Endpoint ID, used to filter image versions supported by the endpoint. You can obtain the endpoint ID by calling the Listing Endpoints API.

Constraints: N/A

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

Default Value: N/A

sort_by

No

String

Definition: Sorting field.

Constraints: N/A

Range

  • CREATE_TIME: Creation time.

  • UPDATE_TIME: Update time.

Default Value: CREATE_TIME

order_by

No

String

Definition: Sorting method.

Constraints: N/A

Range

  • ASC: Ascending order.

  • DESC: Descending order.

Default Value: DESC.

tenantId

No

String

Definition: Tenant ID, which is used to identify a tenant. You can obtain the tenant ID through IAM or the console. For details, see Obtaining Account, IAM User, Project, User Group, Region, and Agency Information.

Constraints: N/A

Range: N/A

Default Value: N/A

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

Definition: User token. It is obtained by calling the Obtaining an IAM User Token API.

Constraints: N/A

Range: Up to 65,534 characters. Only letters, digits, and special characters are allowed. The token format is defined by IAM. For details about the character set, see the IAM documentation.

Default Value: N/A

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total

Integer

Definition: Total number of custom image version records.

Range: 0 to 100,000.

image_versions

Array of V2ImageVersionInfo objects

Definition: Image version list, where each element is a V2ImageVersionInfo object containing the image version ID, version number, image category, architecture, status, and other information.

Table 5 V2ImageVersionInfo

Parameter

Type

Description

version_id

String

Definition: Image version ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

image_version

String

Definition: Image version.

Range: 2 to 32 characters. Only letters, digits, periods (.), slashes (/), colons (:), underscores (_), and hyphens (-) are allowed.

category

String

Definition: Image category.

Range

  • RAY_BASIC: Custom image built on Ray.

  • SPARK_JOB: Custom image built on SparkJob.

  • SPARK_SQL: Custom image built on SparkSql.

  • FLINK_JOB: Custom image built on FlinkJob.

  • AURA_JOB: Custom image built on AuraJobV2.

image_registry

String

Definition: Image domain name.

Range: 0 to 255 characters. Only letters, digits, periods (.), and hyphens (-) are allowed.

image_namespace

String

Definition: Image namespace.

Range: 0 to 64 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

image_name

String

Definition: Image name.

Range: 0 to 128 characters. Only letters, digits, hyphens (-), and underscores (_) are allowed.

architectures

Array of strings

Definition: List of supported image architectures. Available values: x86_64 (x86 architecture) and aarch64 (Arm architecture).

container_softwares

Array of ContainerSoftware objects

Definition: Image software list, where each element is a ContainerSoftware object containing the software name and version.

status

String

Definition: Image version status.

Range

  • AVAILABLE: Available.

  • UNAVAILABLE: Unavailable.

  • UNKNOWN: Unknown.

type

String

Definition: Image version type.

Range

  • STABLE: Stable version.

  • RECOMMEND: Recommended version.

  • BETA: Beta version.

visibility

String

Definition: Image version visibility.

Range

  • PRIVATE: Private. The image is visible only within the workspace.

  • PUBLIC: Public. The image is visible to all workspaces.

create_time

String

Definition: Custom image version creation time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00.

Range: N/A

update_time

String

Definition: Custom image version update time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00.

Range: N/A

description

String

Definition: Image version description.

Range: 0 to 2,000 characters. Only letters, digits, and common symbols are allowed. Characters such as exclamation mark (!), less-than sign (<), greater-than sign (>), equal sign (=), ampersand (&), double quotation marks ("), and single quotation marks (') are not allowed.

base_image_id

String

Definition: ID of the associated preset base image.

Range: 0 to 64 characters. Only letters, digits, and hyphens (-) are allowed.

base_image_version_id

String

Definition: Version ID of the associated preset base image.

Range: 0 to 64 characters. Only letters, digits, and hyphens (-) are allowed.

image_snapshot

V2ImageSnapshotInfo object

Definition: Matched image snapshot information. If no snapshot is matched, null is returned.

Table 6 ContainerSoftware

Parameter

Type

Description

name

String

Definition: Software name.

Range: 2 to 32 characters. Only letters, digits, periods (.), underscores (_), and hyphens (-) are allowed.

version

String

Definition: Software version.

Range: 2 to 32 characters. Only letters, digits, periods (.), underscores (_), and hyphens (-) are allowed.

Table 7 V2ImageSnapshotInfo

Parameter

Type

Description

id

String

Definition: Image snapshot record ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

image_id

String

Definition: Image ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

image_version_id

String

Definition: Image version ID.

Range: 32 to 36 characters. Only letters, digits, and hyphens (-) are allowed.

name

String

Definition: Image snapshot name (user-specified).

Range: 1 to 190 characters. Only lowercase letters, digits, and hyphens (-) are allowed. It must start with a lowercase letter and end with a lowercase letter or digit.

image_address

String

Definition: Full image address (including registry/namespace/name:version).

Range: 0 to 1,024 characters. Only letters, digits, periods (.), colons (:), slashes (/), and hyphens (-) are allowed.

image_name

String

Definition: Image name.

Range: 0 to 128 characters. Only letters, digits, periods (.), slashes (/), colons (:), underscores (_), and hyphens (-) are allowed.

image_version

String

Definition: Image version.

Range: 0 to 1,024 characters. Only letters, digits, periods (.), colons (:), underscores (_), and hyphens (-) are allowed.

status

String

Definition: Image snapshot status.

Range

  • Creating: Creating.

  • Available: Available.

  • Unavailable: Unavailable.

image_snapshot_size

Integer

Definition: Snapshot size, in GiB.

Range: 20 to 400.

creation_mode

String

Definition: Creation method.

Range

  • Created: Direct creation.

  • Associated: Associated with an existing CCI snapshot.

reserved_days

Integer

Definition: Image snapshot retention period, in days. The snapshot automatically expires after the retention period. 0 indicates permanent retention.

Range: 0 to 65,536.

expire_time

String

Definition: Image snapshot expiration time. A null value indicates permanent validity. The time is in UTC, in ISO 8601 format (yyyy-MM-dd'T'HH:mm:ss.SSSXXX), for example, 2025-01-10T03:37:12.000+00:00.

Range: N/A

failed_message

String

Definition: Message indicating why the image snapshot is invalid.

Range: 0 to 65,535 characters. Only letters, digits, and common symbols are allowed.

create_time

String

Definition: Creation time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00.

Range: N/A

update_time

String

Definition: Update time, in UTC format, ISO 8601: yyyy-MM-dd'T'HH:mm:ss.SSSXXX. Example: 2025-01-10T03:37:12.000+00:00.

Range: N/A

Status code: 400

Table 8 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 401

Table 9 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 403

Table 10 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Status code: 500

Table 11 Response body parameters

Parameter

Type

Description

error_code

String

Definition: Error code.

Range: 8 to 36 characters.

error_msg

String

Definition: Error description.

Range: 2 to 512 characters.

solution_msg

String

Definition: Solution.

Range: 0 to 4,096 characters.

Example Requests

Query all versions of an image.

GET /v2/images/{image_id}/versions

Example Responses

Status code: 200

{
  "total" : 1,
  "image_versions" : [ {
    "version_id" : "7a8b9c0d-1e2f-3a4b-5c6d-7e8f9a0b1c2d",
    "category" : "AURA_JOB",
    "architectures" : [ "x86_64" ],
    "container_softwares" : [ {
      "name" : "jdk",
      "version" : "21"
    } ],
    "image_registry" : "swr.cn-north-4.example.com",
    "image_namespace" : "test-namespace",
    "image_name" : "test-image",
    "image_version" : "v1.0.0",
    "status" : "AVAILABLE",
    "type" : "STABLE",
    "visibility" : "PRIVATE",
    "create_time" : "2025-01-10T03:37:12.000+00:00",
    "update_time" : "2025-01-10T03:37:12.000+00:00",
    "description" : "Test image version."
  } ]
}

Status code: 400

{
  "error_code" : "AIDataLake.00010151",
  "error_msg" : "Parameter value is invalid.",
  "solution_msg" : "Please input valid parameter value."
}

Status code: 401

{
  "error_code" : "APIGW.0301",
  "error_msg" : "Incorrect IAM authentication information: decrypt token fail.",
  "solution_msg" : "Check whether the IAM authentication information is correct."
}

Status code: 403

{
  "error_code" : "AIDataLake.00010150",
  "error_msg" : "The operation is not allowed.",
  "solution_msg" : "Check whether the operation is allowed in the current status."
}

Status code: 500

{
  "error_code" : "AIDataLake.00011001",
  "error_msg" : "Internal error.",
  "solution_msg" : "Contact technical support or try again later."
}

Status Codes

Status Code

Description

200

Request succeeded.

400

Invalid request parameters.

401

Unauthorized.

403

Access denied.

500

Internal server error.