1. 查询容器公共镜像列表
本接口用于查询容器公共镜像列表。
- 本接口返回发布给访问用户的所有镜像信息。
- 本接口不是分页接口,可以一次性获取所有发布给访问用户的镜像信息。
本页所有接口都用到可用区信息,可用区具体说明详见 可用区, 本页不再重复说明
1.1. 接口说明
本接口所属服务类型为 ack_product
本接口操作类型为 DescribeACKPublicImages
1.1.1. 请求路径
POST {baseUrl}/v3/product/DescribeImages
1.1.2. 返回内容
{
"code": 200,
"message": "容器云公共镜像查询成功",
"data": [{
"imageUuid": "ackci-00x2qxvx",
"imageName": "PyTorch-20.12-Py3",
"imageType": "custom",
"imageOs": "Ubuntu",
"imageVersion": "22.04",
"imageArch": "64bit",
"imageDesc": "测试容器镜像",
"vhostType": "rtx3090",
"platformName": "PyTorch",
"platformVersion": "1.8.0a0+1606899",
"createdTime": "Feb 21, 2024 10:12:55 AM",
"updatedTime": "Apr 16, 2024 5:59:12 PM"
}, {
"imageUuid": "ackci-0000qxv15",
"imageName": "PyTorch-22.02-py3",
"imageType": "custom",
"imageOs": "Ubuntu",
"imageVersion": "20.04",
"imageArch": "64bit",
"vhostType": "rtx4090",
"platformName": "PyTorch",
"platformVersion": "1.11.0a0+17540c5c",
"createdTime": "Mar 28, 2024 6:22:13 PM",
"updatedTime": "Apr 16, 2024 5:59:13 PM"
}]
}
返回内容说明
属性名 | 属性类型 | 说明 |
---|---|---|
code | Integer | 返回码。正常返回 200,异常返回500或其他业务错误码 |
message | String | 返回信息 |
data | Array | 发布给该用户镜像规格信息列表 |
镜像信息列表
属性名 | 属性类型 | 说明 |
---|---|---|
imageUuid | String | 镜像id |
imageName | String | 镜像名称 |
imageType | String | 镜像类型。目前只有一个值 custom |
imageOs | String | 镜像的操作系统名称 |
imageVersion | String | 镜像版本 |
imageArch | String | 镜像支持的架构 |
imageDesc | String | 镜像描述信息 |
vhostType | String | 镜像支持的云服务器规格类型。逗号分割 |
platformName | String | 镜像支持的框架类型 |
platformVersion | String | 镜像支持的框架版本 |
zone | Zone | 镜像规格所属可用区信息 |