我的镜像列表接口

1.接口描述

接口请求地址:GET /v1/open/image/personal/getList

2.输入参数

参数名称 描述 是否必选 类型 Location
Finovy-Access-Token 令牌-口令 yes string header
imageName 镜像名 no string Params
imageType 镜像系统类型 no string Params
datacenterKey 数据中心 no string Params
status 镜像状态(0创建中,1可使用,2创建失败,3已过期) no string Params

3.输出参数

参数名称 描述 类型 备注
id id string 后续如用到镜像id,取该id使用
imageId 镜像ID Long
imageType 镜像系统类型 String
imageName 镜像名 String
imageSize 镜像大小 String
datacenterKey 数据中心 String
status 镜像状态(0创建中,1可使用,2创建失败,3已过期) Integer
createTime 创建时间 Timestamp

4.示例

示例1:请求成功示例

输入示例

GET https://client.xuandashi.com/v1/PveMachine/image/getList?imageType=Windows&imageName=aaaaaaaa&status=1&from=2024-01-31 16:00:00&to=2024-03-31 15:59:59&page=1&pageSize=20
Host: client.xuandashi.com
Content-Type: application/json
Finovy-Access-Token: 4vL4rcNGNcgx5v0RLCcFew
<公共请求参数>

输出示例

{
    "code": 0,
    "success": true,
    "data": {
        "data": [
            {
                "id": "7sEdkaZ0T8",
                "imageId": 164471562,
                "imageType": "Windows",
                "imageName": "aaaaaaaa",
                "imageSize": "128.00",
                "datacenterKey": "HZ",
                "status": 1,
                "createTime": 1708330251000
            }
        ],
        "totalCounts": 1
    },
    "msg": "success",
    "traceId": "1d54261079ac4063b7e97f2548b18510.3561.17083313961692799"
}

5.错误码

状态码 描述
0 接口调用成功
401 身份认证失败