ListImages

Updated at:

Retrieves a list of images.

Operation description

  1. DataWorks Basic Edition or later is required.

  2. Before you call this operation, make sure that the service-linked role AliyunServiceRoleForDataWorks is created.

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

dataworks:ListImages

list

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

Name

string

No

The image name used for fuzzy match.

image

Statuses

array

No

The list of image statuses to query.

string

No

The image status. Valid values:

  • Disabled: The image is disabled.

  • Expired: The image has expired.

  • Available: The image is available.

  • ReadOnly: The image is read-only.

Valid values:

  • ReadOnly :

    Read-only.

  • Available :

    Available.

  • Expired :

    Expired.

  • Disabled :

    Disabled.

Enabled

Stages

array

No

The list of image publishing stages to query.

string

No

The publishing status. Valid values:

  • Untest: The image is not tested.

  • Testing: The image is being tested.

  • TestFailed: The image test failed.

  • Unpublished: The image is unpublished.

  • Publishing: The image is being published.

  • Published: The image is published.

  • PublishFailed: The image publishing failed.

  • Building: The image is being built.

  • BuildSuccess: The image build succeeded.

Valid values:

  • Building :

    Building.

  • TestFailed :

    Test failed.

  • Accelerating :

    Accelerating.

  • BuildSuccess :

    Build succeeded.

  • BuildFailed :

    Build failed.

  • PublishFailed :

    Publish failed.

  • AccelerateSuccess :

    Acceleration succeeded.

  • Publishing :

    Publishing.

  • Unpublished :

    Unpublished.

  • Published :

    Published.

  • AccelerateFailed :

    Acceleration failed.

  • Untest :

    Untested.

  • Testing :

    Testing.

Published

Accessibility

string

No

The accessibility of the image. Valid values:

  • Public: The image is visible to all users.

  • Private: The image is visible only to the creator.

Public

ProjectIds

array

No

The list of workspace IDs.

integer

No

The workspace ID.

10001

SupportedModules

array

No

The list of supported modules.

string

No

The supported module. Valid values:

  • Scheduler: the scheduling module.

Valid values:

  • Scheduler :

    Scheduling.

Scheduler

SupportedTaskTypes

array

No

The list of supported task types.

string

No

The supported task type. Valid values:

  • Shell

  • Python

  • ServerIDE

  • Notebook

  • PyODPS 2

  • PyODPS 3

Shell

ProviderTypes

array

No

The list of image reference data types.

string

No

The image reference data type. Valid values:

  • ACR: ACR image repository.

  • DataWorks: DataWorks official image.

Valid values:

  • ACR :

    Container Registry.

  • MaxCompute :

    MaxCompute

  • PAI :

    Platform for AI.

  • DataWorks :

    DataWorks

ACR

PageSize

integer

No

The number of entries per page.

10

PageNumber

integer

No

The page number.

1

SortBy

string

No

The list of sort fields. Fields such as scheduled time and start time are supported. The format is "sort field + sort order (Desc/Asc)". Asc can be omitted. Valid values for sort fields:

  • CreateTime (Desc/Asc): creation time.

  • Name (Desc/Asc): image name. Default value: CreateTime Asc.

CreatedTime Desc

SearchAll

boolean

No

Specifies whether to search for all images.

Official

boolean

No

Specifies whether the image is an official image.

Response elements

Element

Type

Description

Example

object

Schema of Response

Success

boolean

Indicates whether the request is successful.

true

PagingInfo

object

The paginated list.

ImageList

array<object>

The list of retrieved image details.

array<object>

The image details.

Id

string

The image ID.

Custom_image_xxxx_xxxx

Name

string

The image name.

dataworks_image

Version

string

The image version.

1

Description

string

The image description.

Test image created by xxx

Creator

string

The ID of the creator.

123

Modifier

string

The ID of the modifier.

123

CreatedTime

integer

The creation time. This value is a 64-bit timestamp.

1727055811000

LastModifiedTime

integer

The last modification time. This value is a 64-bit timestamp.

1727055811000

Official

boolean

Specifies whether the image is an official image.

true

Accessibility

string

The accessibility of the image. Valid values:

  • Public: The image is visible to all users.

  • Private: The image is visible only to the creator.

Valid values:

  • Project :

    Project.

  • Tenant :

    Tenant.

  • Public :

    Public.

Public

Status

string

The image status. Valid values:

  • Disabled: The image is disabled.

  • Expired: The image has expired.

  • Available: The image is available.

  • ReadOnly: The image is read-only.

Available

PublishStage

string

The publishing status. Valid values:

  • Untest: Not tested.

  • Testing: Testing.

  • TestFailed: Test failed.

  • Unpublished: Unpublished.

  • Publishing: Publishing.

  • Published: Published.

  • PublishFailed: Publish failed.

  • Building: Building.

  • BuildSuccess: Build succeeded.

  • BuildFailed: Build failed.

  • Accelerating: Accelerating.

  • AccelerateSuccess: Acceleration succeeded.

  • AccelerateFailed: Acceleration failed.

Published

Supported

object

The supported modules and task types.

Module

string

The supported module. Valid values:

  • Scheduler: the scheduling module.

Scheduler

TaskTypes

array

The list of supported task types.

string

The supported task type. Valid values:

  • Shell

  • Python

  • ServerIDE

  • Notebook

  • PyODPS 2

  • PyODPS 3

Shell

IsDefault

boolean

Indicates whether the image is the default image.

false

EnableSyncMaxCompute

boolean

Indicates whether MaxCompute synchronization is enabled.

false

ProviderType

string

The image reference data type. Valid values:

  • ACR: ACR image repository.

  • DataWorks: DataWorks official image.

ACR

ProviderImageId

string

The image ID of the image provider.

acr_image_id

ImageUri

string

The image URI.

registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag

Namespace

string

The namespace.

namespace

Size

string

The image size.

1GB

AcrInstanceId

string

The ACR instance ID.

cri-xxx

ImageTag

string

The image tag.

v1.0.0

RepositoryName

string

The repository name.

repo_name

ImageVpcUri

string

The image VPC URI.

registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag

AcrEndpoint

string

ACR Endpoint

registry.cn-hangzhou.aliyuncs.com

AcrAssociatedVpcId

string

The ID of the VPC associated with the ACR instance.

vpc-xxx

BuildConfig

object

The image build configuration.

BuildType

string

The build type.

PackageInstallation

PackageInstallationScripts

array<object>

The list of pre-installation execution scripts.

object

The pre-installation execution script.

Type

string

The script type.

Python3

Content

string

The script content. If the content consists of installation package names, separate the names with commas (,).

requests

PageNumber

integer

The page number.

1

PageSize

integer

The number of entries per page.

10

TotalCount

integer

The total number of data entries.

10

RequestId

string

The ID of the request, which is used to locate logs and troubleshoot issues.

6A6CBE87-9F91-1323-B680-E7A7065XXXXX

Examples

Success response

JSON format

{
  "Success": true,
  "PagingInfo": {
    "ImageList": [
      {
        "Id": "Custom_image_xxxx_xxxx",
        "Name": "dataworks_image",
        "Version": "1",
        "Description": "Test image created by xxx",
        "Creator": "123",
        "Modifier": "123",
        "CreatedTime": 1727055811000,
        "LastModifiedTime": 1727055811000,
        "Official": true,
        "Accessibility": "Public",
        "Status": "Available",
        "PublishStage": "Published",
        "Supported": {
          "Module": "Scheduler",
          "TaskTypes": [
            "Shell"
          ]
        },
        "IsDefault": false,
        "EnableSyncMaxCompute": false,
        "ProviderType": "ACR",
        "ProviderImageId": "acr_image_id",
        "ImageUri": "registry.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
        "Namespace": "namespace",
        "Size": "1GB",
        "AcrInstanceId": "cri-xxx",
        "ImageTag": "v1.0.0",
        "RepositoryName": "repo_name",
        "ImageVpcUri": "registry-vpc.cn-hangzhou.aliyuncs.com/xxx/xxx:tag",
        "AcrEndpoint": "registry.cn-hangzhou.aliyuncs.com",
        "AcrAssociatedVpcId": "vpc-xxx",
        "BuildConfig": {
          "BuildType": "PackageInstallation",
          "PackageInstallationScripts": [
            {
              "Type": "Python3",
              "Content": "requests"
            }
          ]
        }
      }
    ],
    "PageNumber": 1,
    "PageSize": 10,
    "TotalCount": 10
  },
  "RequestId": "6A6CBE87-9F91-1323-B680-E7A7065XXXXX"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.