查询自定义镜像
描述
查询自定义镜像列表。
请求参数
| 参数名 | 参数类型 | 是否必填 | 参数说明 |
|---|---|---|---|
| Action | String | 是 | 操作方法:ListCloudPhoneCustomImage,此参数为公共参数,不必放body里面 |
| Region | String | 是 | 机房标识,取值参见地域列表 |
| Key | String | 否 | 关键字查询,可以查询镜像名称、镜像ID、镜像UUID |
| RootImageId | String | 否 | 原始镜像ID |
| Status | String | 否 | 镜像状态 NORMAL:正常 CREATING:创建中 CREATE_FAIL:创建失败 |
| CreateStartTime | Integer | 否 | 创建开始时间戳,精确到毫秒,如1591344325000 |
| CreateEndTime | Integer | 否 | 创建结束时间戳,精确到毫秒,如1591344325000 |
| PageNo | Integer | 否 | 页码,默认第1页,PageNo和PageSize都不传返回全部数据 |
| PageSize | Integer | 否 | 每页数量,默认10条 |
| ProductModelIds | Array | 否 | 产品型号数组 |
返回参数
| 名称 | 类型 | 说明 |
|---|---|---|
| Page | Page | 由Page组成的数组格式,返回分页信息,PageNo和PageSize都不传时不会返回该信息 |
| List | List | 由List组成的数组格式,返回自定义镜像列表信息 |
Page
分页信息的数据类型
| 名称 | 类型 | 说明 |
|---|---|---|
| PageSize | Integer | 页面总数 |
| CurrentPageNo | Integer | 当前分页数 |
| TotalPage | Integer | 总页数 |
| TotalCount | Integer | 总数 |
List
自定义镜像列表的数据类型
| 名称 | 类型 | 说明 |
|---|---|---|
| Id | String | 镜像ID |
| Uuid | String | 镜像UUID |
| Name | String | 镜像名称 |
| RootImageId | String | 原始镜像ID |
| RootImageName | String | 原始镜像名称 |
| ProductModelIds | Array | 产品型号ID列表 |
| Storage | Integer | 存储大小,单位GB |
| IsRoot | Integer | 是否root 0否 1是 |
| Description | String | 镜像描述 |
| Status | String | 镜像状态 NORMAL:正常 CREATING:创建中 CREATE_FAIL:创建失败 |
| CreateTime | Integer | 创建时间戳,精确到毫秒 |
| UpdateTime | Integer | 修改时间戳,精确到毫秒 |
请求示例
post https://api.chinac.com/v2/?Action=ListCloudPhoneCustomImage&其他公共参数
返回示例
{
"code": 10000,
"message": "",
"data": {
"Page": {
"PageSize": 10,
"CurrentPageNo": 1,
"TotalPage": 1,
"TotalCount": 3
},
"List":[{
"Id": "aaaaaa",
"Uuid": "f5f72a07-5de3-4328-8863-537433c7042d",
"Name": "A2004210005",
"RootImageId": "bbbbb",
"RootImageName": "ccccc",
"ProductModelIds": [805013, 805014, 805015],
"Storage": 40,
"IsRoot": 1,
"Description": "xxxxx",
"Status": "NORMAL",
"CreateTime": 1591344325000,
"UpdateTime": 1591344325000
}, {
"Id": "bbbbbb",
"Uuid": "f5f72a07-5de3-4328-8863-537433c7042e",
"Name": "A2004210006",
"RootImageId": "bbbbb",
"RootImageName": "ccccc",
"ProductModelIds": [805013, 805014, 805015],
"Storage": 40,
"IsRoot": 1,
"Description": "xxxxx",
"Status": "NORMAL",
"CreateTime": 1591344325000,
"UpdateTime": 1591344325000
}]
}
}