查询指定公共镜像或自定义镜像相关信息。
下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。
| 参数 | 类型 | 是否必选 | 示例值 | 描述 |
|---|---|---|---|---|
| Action | String | 是 | ListImage | 接口名称。当前 API 的名称为 ListImage。 |
| Version | String | 是 | 2023-10-30 | 接口版本。当前 API 的版本为 2023-10-30。 |
| AccountId | String | 是 | 21000xxxx | 火山引擎账号 ID。 |
| ImageId | String | 否 | img-xxxxx1 | 镜像 ID。可以指定单个需要查询的镜像。 |
| ImageIdList | String | 否 | img-xxxxx2,img-xxxxx3 | 镜像 ID 列表,可以指定多个需要查询的镜像,以英文逗号","分割。 |
| ImageName | String | 否 | image-1459450162840xxxxxx | 镜像名称 |
AospVersion | String | 否 |
| 镜像版本,包含以下取值:
|
IsPublic | Boolean | 否 |
| 是否查找公共镜像,包含以下取值:
|
ImageStatus | Integer | 否 |
| 镜像状态,包含以下取值:
|
Offset | Long | 否 |
| 查询结果的起始位置,用于指定从哪一条记录开始返回数据。例如,若 说明 可与 |
Count | Long | 否 |
| 单次查询返回的最大记录数,用于控制每次查询返回的数据量。例如,若 说明 可与 |
ExpandScope | Boolean | 否 |
| 是否查询未发布的公共镜像,包含以下取值:
|
| ProductId | String | 否 | 1591495366954xxxxxx | 业务 ID,可在「云手机控制台-业务管理-业务详情」中获取。 |
下表仅列出本接口特有的返回参数。更多信息请参见返回结构。
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| Row | Array of Image | - | 镜像信息列表,参看 Image 数据结构。 |
| Total | Long | 1 | 查询结果总数。 |
| 参数 | 类型 | 示例值 | 描述 |
|---|---|---|---|
| ImageId | String | img-15xxxxxx | 镜像 ID。 |
| CreateAt | Long | 1722978531 | 构建任务创建时间戳。 |
| UpdateAt | Long | 1722978531 | 构建任务更新时间戳。 |
| ImageName | String | img-15xxxxxx-AOSP10-2100xxxxxx-自定义镜像 | 镜像名称。 |
| ImageSize | Long | 808861901 | 镜像大小,单位 byte。 |
| AospVersion | String | 10 | 镜像版本。 |
| ImageRemark | String | test | 镜像描述。 |
| ImageStatus | Integer | 11 | 镜像状态。 |
PreheatStatus | Integer |
| 镜像预热状态,包含以下取值:
|
| ImageStatusStr | String | BUILT | 镜像状态描述。 |
| AospVersionName | String | AOSP10 | 镜像版本名称。 |
ImageDownloadUrl | String |
| 镜像下载地址。 |
ImageResourceType | String |
| 镜像对应的适配架构类型。包含以下取值:
|
UploadImageStatus | Integer |
| 镜像上传状态。
|
GET https://open.volcengineapi.com?Action=ListImage&Version=2023-10-30&AccountId=21000xxxx&ImageId=img-xxxxx1&ImageIdList=img-xxxxx2,img-xxxxx3&ImageName=image-1459450162840xxxxxx&AospVersion=10&IsPublic=false&ImageStatus=11&Offset=0&Count=10&ExpandScope=false&ProductId=1591495366954xxxxxx
{ "ResponseMetadata": { "Action": "ListImage", "Region": "cn-north-1", "Service": "ACEP", "Version": "2023-10-30", "RequestId": "20230604110420****100232280022D31" }, "Result": { "Row": [ { "ImageId": "img-15xxxxxx", "CreateAt": 1722978531, "UpdateAt": 1722978531, "ImageName": "img-15xxxxxx-AOSP10-2100xxxxxx-自定义镜像", "ImageSize": 808861901, "AospVersion": "10", "ImageRemark": "test", "ImageStatus": 11, "PreheatStatus": 0, "ImageStatusStr": "BUILT", "AospVersionName": "AOSP10", "ImageDownloadUrl": "huanan-xxxxxx.tos-cn-xxxx.volces.com-xxxxxxxxxxxx", "ImageResourceType": "ARM_SoC", "UploadImageStatus": 0 } ], "Total": 1 } }
您可访问公共错误码,获取更多错误码信息。