Updated on 2026-11-06 GMT+08:00

Listing Custom Images

Function

This API is used to list custom images. You can query the created custom images. This API is synchronous. There are no accompanying APIs or specific scenarios.

Calling Method

For details, see Calling APIs.

URI

GET /v2/images

Table 1 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Definition: Page offset.

Constraints: N/A

Range: 0 to 10000.

Default Value: 0.

limit

No

Integer

Definition: Page size.

Constraints: N/A

Range: 1 to 1000.

Default Value: 100.

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.

id

No

String

Definition: Filter by 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

category

No

String

Definition: Filter by custom image category.

Constraints: N/A

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.

Default Value: N/A

namespace

No

String

Definition: Search by image namespace.

Constraints: N/A

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

Default Value: N/A

name

No

String

Definition: Search by image name.

Constraints: N/A

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

Default Value: N/A

visibility

No

String

Definition: Visibility search parameter.

Constraints: N/A

Range

  • PRIVATE: Private, created by users.

  • PUBLIC: Query all public objects, including those created by other users.

  • ALL: All.

Default Value: If left empty, no filtering is applied. Images under the current workspace include PRIVATE and PUBLIC, excluding those created by other users.

Request Parameters

Table 2 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 3 Response body parameters

Parameter

Type

Description

total

Integer

Definition: Total number of matching records.

Range: 0 to 10000.

images

Array of V2ImageInfo objects

Definition: Custom image list, where each element is a V2ImageInfo object. The array length cannot exceed 10,000.

Table 4 V2ImageInfo

Parameter

Type

Description

id

String

Definition: Image ID.

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

image_name

String

Definition: Image name.

Range: 0 to 128 characters. Only letters, digits, hyphens (-), and underscores (_) 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.

version_count

Integer

Definition: Number of image versions.

Range: The value must be greater than or equal to 0.

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

visibility

String

Definition: Visibility.

Range

  • PRIVATE: Private, created by users.

  • PUBLIC: Query all public objects, including those created by other users.

description

String

Definition: Image 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.

instruction

String

Definition: Public image usage description.

Range: 0 to 20,000 characters. Only letters, digits, and common symbols are allowed.

Status code: 400

Table 5 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 6 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 7 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: 404

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: 408

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: 500

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.

Example Requests

List custom images. View all registered custom images of the current tenant.

GET /v2/images

Example Responses

Status code: 200

{
  "total" : 1,
  "images" : [ {
    "id" : "90a827a1-ca72-4f3a-9e2d-774f945f22ac",
    "image_name" : "test-image",
    "category" : "RAY_BASIC",
    "image_registry" : "xxx.cn-north-4.example.com",
    "image_namespace" : "test-namespace",
    "version_count" : 3,
    "create_time" : "2025-01-10T03:37:12.000+00:00",
    "update_time" : "2025-01-11T03:37:12.000+00:00",
    "visibility" : "PRIVATE",
    "description" : "test image"
  } ]
}

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: 404

{
  "error_code" : "AIDataLake.00010009",
  "error_msg" : "No resources found.",
  "solution_msg" : "Ensure the requested resource exists and the parameters are correct."
}

Status code: 408

{
  "error_code" : "common.00000408",
  "error_msg" : "timeout exception occurred",
  "solution_msg" : "Try again later. If the problem persists, contact technical support."
}

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.

404

Resource not found.

408

Request timeout.

500

Internal server error.