ListImageCaches

Updated at:

Queries the details of image caches.

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

acc:ListImageCaches

list

*ImageCache

acs:acc:{#regionId}:{#accountId}:imagecache/*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

cn-hangzhou

ImageCacheName

string

No

The name of the image cache.

my-imc

Image

string

No

The container image.

egs-registry.cn-hangzhou.cr.aliyuncs.com/egs/vllm:0.9.0.1-pytorch2.7-cu128-20250612

Status

string

No

The cache status of the image cache.

Valid values:

  • Ready :

    Ready

  • Failed :

    Failed

  • Pending :

    Pending

Ready

ResourceGroupId

string

No

The ID of the resource group.

rg-aekzh43v*****

Tags

array<object>

No

The tags of the image cache. You can specify up to 20 tags.

object

No

The tag of the image cache.

Key

string

No

The tag key of the image cache.

imc

Value

string

No

The tag value of the image cache.

test

NextToken

string

No

The pagination token. Set the value to the NextToken value returned from the previous API call.

AAAAAdDWBF*****

MaxResults

integer

No

The maximum number of results to return for a single request.

30

Response elements

Element

Type

Description

Example

object

The response parameters.

RequestId

string

The request ID.

0E234675-3465-4CC3-9D0F-9A864BC*****

ImageCaches

array<object>

The image cache information.

object

The image cache.

ImageCacheId

string

The ID of the image cache.

imc-bp1dj*****

ImageCacheName

string

The name of the image cache.

my-imc

Status

string

The cache status of the image cache.

Ready

Images

array

The container images in the image cache.

string

The name of the container image.

registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1

Size

integer

The size of the image cache. Unit: GiB. Minimum value: 1.

8

CreateTime

string

The time when the image cache was created. The time follows the ISO 8601 standard and is displayed in UTC.

2025-**-**T07:55:25Z

ReadyTime

string

Available time when the image cache became available. Available time follows the ISO 8601 standard and is displayed in UTC.

2025-**-**T07:58:25Z

ResourceGroupId

string

The ID of the resource group.

rg-aekzh43v*****

NextToken

string

The pagination token returned for this call.

AAAAAdDWBF*****

TotalCount

integer

The total number of results returned.

20

MaxResults

integer

The maximum number of results to return for a single request.

30

Examples

Success response

JSON format

{
  "RequestId": "0E234675-3465-4CC3-9D0F-9A864BC*****",
  "ImageCaches": [
    {
      "ImageCacheId": "imc-bp1dj*****",
      "ImageCacheName": "my-imc",
      "Status": "Ready",
      "Images": [
        "registry-vpc.cn-hangzhou.aliyuncs.com/*****/*****:v1"
      ],
      "Size": 8,
      "CreateTime": "2025-**-**T07:55:25Z",
      "ReadyTime": "2025-**-**T07:58:25Z",
      "ResourceGroupId": "rg-aekzh43v*****"
    }
  ],
  "NextToken": "AAAAAdDWBF*****",
  "TotalCount": 20,
  "MaxResults": 30
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidParameter %s. Invalid parameter
400 InvalidParameter.LengthExceeded %s. Array parameter exceeds maximum length
400 InvalidParameter.ValueExceeded %s. Parameter exceeds upper value limit
400 MissingParameter %s. Missing parameter
400 InvalidParameter.NotFound %s. The specific parameter does not exist.
403 EntityNotExist.ResourceId The resource does not exist. The resource does not exist
403 EntityNotExist.ResourceGroup The resource group does not exist. The resource group does not exist
403 RegionNotSupport The specified Region is not supported. The specified Region is not supported

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.