调用DescribeImageCaches查询镜像缓存信息。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
RegionId String cn-beijing

地域ID。

Action String DescribeImageCaches

系统规定参数。取值:DescribeImageCaches。

Image String registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.3

根据镜像名查寻包含它的镜像cache。

ImageCacheId String imc-2zebxkiifuyzzlhl199f

镜像缓存ID。

ImageCacheName String liu-test-cache2

镜像缓存名称。

SnapshotId String s-2zec5oj8e1yhxijtkfrr

快照名ID。

返回数据

名称 类型 示例值 描述
ImageCaches Array

镜像缓存列表信息,单次查询最多返回20条。

ContainerGroupId String eci-bp18oq3m15prd9jbcznm

容器组ID。

CreationTime String 2019-11-10T10:21:13Z

创建时间。

Events Array

事件列表。

Count Integer 1

计数。

FirstTimestamp String 2019-11-12T14:52:56Z

开始时间。

LastTimestamp String 2019-11-12T14:52:56Z

结束时间。

Message String Success pull image nginx

消息。

Name String nginx

名称。

Type String Normal

类型。

ExpireDateTime String 2019-11-10T09:00:48Z

到期时间。

ImageCacheId String imc-2zebxkiifuyzzlhl199f

镜像缓存ID。

ImageCacheName String liu-test-cache1

镜像缓存名称。

Images List registry-vpc.cn-beijing.aliyuncs.com/eci_open/busybox:1.3

镜像列表。

Progress String 100%

进展完成度。

SnapshotId String s-2zec5oj8e1yhxijtkfrr

快照ID。

Status String Ready

镜像缓存状态。

RequestId String B34CDB47-2F2B-41F5-B6A2-9DE802C22C83

请求ID,唯一标识。

示例

请求示例


http(s)://eci.aliyuncs.com/?Action=DescribeImageCaches
&RegionId=cn-beijing
&<公共请求参数>

正常返回示例

XML 格式

<ImageCaches>
    <CreationTime>2019-09-19T09:12:52Z</CreationTime>
    <Status>Failed</Status>
    <ContainerGroupId>eci-uf6amgvixmldxely9bn8</ContainerGroupId>
    <ImageCacheId>imc-uf6amgvixmldxely9bn8</ImageCacheId>
    <ImageCacheName>liu-test-cache</ImageCacheName>
    <SnapshotId/>
    <ExpireDateTime/>
    <Images>registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7</Images>
    <Images>registry-vpc.cn-beijing.aliyuncs.com/eci_open/jenkins:2.60.3</Images>
    <Images>registry-vpc.cn-beijing.aliyuncs.com/liumi/redis:1.0</Images>
    <Progress>0%</Progress>
</ImageCaches>
<ImageCaches>
    <CreationTime>2019-09-18T12:39:57Z</CreationTime>
    <Status>Ready</Status>
    <ContainerGroupId>eci-uf69bpjhcmcot7kjkj9d</ContainerGroupId>
    <ImageCacheId>mc-uf69bpjhcmcot7kjkj9d</ImageCacheId>
    <ImageCacheName>liu-test-cache</ImageCacheName>
    <SnapshotId>s-uf60qp141knaik8ps6ra</SnapshotId>
    <ExpireDateTime/>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/eci_open/centos:7</Images>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/eci_open/jenkins:2.60.3</Images>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/liumi/redis:1.0</Images>
    <Progress>100%</Progress>
</ImageCaches>
<ImageCaches>
    <CreationTime>2019-09-19T01:56:33Z</CreationTime>
    <Status>Failed</Status>
    <ContainerGroupId>eci-uf6csmmw6sf9zp9lnhu5</ContainerGroupId>
    <ImageCacheId>mc-uf6csmmw6sf9zp9lnhu5</ImageCacheId>
    <ImageCacheName>liu-test-cache</ImageCacheName>
    <SnapshotId/>
    <ExpireDateTime/>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/eci_open/centos:7</Images>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/eci_open/jenkins:2.60.3</Images>
    <Images>registry-vpc.cn-shanghai.aliyuncs.com/liumi/redis:1.0</Images>
    <Progress>0%</Progress>
</ImageCaches>
<RequestId>C09C4B30-6EB3-4621-9F24-7267D753E928</RequestId>

JSON 格式

{
	"ImageCaches":[
		{
			"CreationTime":"2019-09-19T09:12:52Z",
			"ContainerGroupId":"eci-uf6amgvixmldxely9bn8",
			"Status":"Failed",
			"ImageCacheId":"imc-uf6amgvixmldxely9bn8",
			"ImageCacheName":"liu-test-cache",
			"SnapshotId":"",
			"Events":[],
			"Images":[
				"registry-vpc.cn-beijing.aliyuncs.com/eci_open/centos:7",
				"registry-vpc.cn-beijing.aliyuncs.com/eci_open/jenkins:2.60.3",
				"registry-vpc.cn-beijing.aliyuncs.com/liumi/redis:1.0"
			],
			"ExpireDateTime":"",
			"Progress":"0%"
		},
		{
			"CreationTime":"2019-09-18T12:39:57Z",
			"ContainerGroupId":"eci-uf69bpjhcmcot7kjkj9d",
			"Status":"Ready",
			"ImageCacheId":"mc-uf69bpjhcmcot7kjkj9d",
			"ImageCacheName":"liu-test-cache",
			"SnapshotId":"s-uf60qp141knaik8ps6ra",
			"Events":[],
			"Images":[
				"registry-vpc.cn-shanghai.aliyuncs.com/eci_open/centos:7",
				"registry-vpc.cn-shanghai.aliyuncs.com/eci_open/jenkins:2.60.3",
				"registry-vpc.cn-shanghai.aliyuncs.com/liumi/redis:1.0"
			],
			"ExpireDateTime":"",
			"Progress":"100%"
		},
		{
			"CreationTime":"2019-09-19T01:56:33Z",
			"ContainerGroupId":"eci-uf6csmmw6sf9zp9lnhu5",
			"Status":"Failed",
			"ImageCacheId":"mc-uf6csmmw6sf9zp9lnhu5",
			"ImageCacheName":"liu-test-cache",
			"SnapshotId":"",
			"Events":[],
			"Images":[
				"registry-vpc.cn-shanghai.aliyuncs.com/eci_open/centos:7",
				"registry-vpc.cn-shanghai.aliyuncs.com/eci_open/jenkins:2.60.3",
				"registry-vpc.cn-shanghai.aliyuncs.com/liumi/redis:1.0"
			],
			"ExpireDateTime":"",
			"Progress":"0%"
		}
	],
	"RequestId":"C09C4B30-6EB3-4621-9F24-7267D753E928"
}

错误码

HttpCode 错误码 错误信息 描述
400 Account.Arrearage Your account has an outstanding payment. 账号已经欠费。
400 DryRunOperation Request validation has been passed with DryRun flag set. 此次DryRun预检请求合格。
403 Forbidden.SubUser The specified action is not available for you. 当前用户无法执行该操作
403 Forbidden.UserBussinessStatus This operation is not allowed, because you have overdue bills. Pay the overdue bill and try again. 用户处于欠费状态不允许创建,请充值后再尝试。
403 Forbidden.UserNotRealNameAuthentication This operation is not allowed, because you have not passed the real-name verification. 操作被禁止,因为用户还未进行实名认证。
400 ServiceNotEnabled %s 该次请求所依赖的服务没有开通,请开通后再试。
403 NoPermission The RAM role does not belong to ECS. RAM role不属于ecs

访问错误中心查看更多错误码。