ListImageCaches
Queries the details of image caches.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
acc:ListImageCaches |
list |
*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 |
| 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.