获取BEC虚机镜像列表
所有文档

          边缘计算节点 BEC

          获取BEC虚机镜像列表

          接口描述

          本接口用于获取BEC虚机自定义镜像列表/公共镜像列表。

          请求结构

          GET /v1/vm/image HTTP/1.1
          Host: bec.baidubce.com
          Content-Type: application/json; charset=utf-8
          Authorization: authorization string

          请求头域

          除公共头域外,无其它特殊头域。

          请求参数

          参数名称 类型 是否必需 参数位置 描述
          pageNo int Query参数 第几页,默认值1,最小值1
          pageSize int Query参数 每页个数,默认值1000,最小1,最大1000
          keywordType String Query参数 查询类型(imageId,name)
          keyword String Query参数 查询的关键字
          order String Query参数 排序asc,desc
          orderBy String Query参数 排序字段(createTime,systemDisk)
          status String Query参数 状态筛选(SUCCEEDED,IMAGING)
          osName String Query参数 操作系统名称筛(CentOS,Ubuntu,Debian,opensuse)
          type String Query参数 镜像类型(becCommon公共镜像,becCustom私有镜像)

          响应头域

          除公共头域外,无其它特殊头域。

          响应参数

          参数名称 类型 描述
          result List<VmImageVo> 列表数据
          orderBy String 排序字段
          order String 排序顺序
          pageNo int 第几页
          pageSize int 每页个数
          totalCount int 总数

          错误码

          请参照前文的统一错误码和平台错误码。

          请求示例

          GET /v1/vm/service HTTP/1.1
          Host: bec.baidubce.com
          Content-Type: application/json; charset=utf-8
          Authorization: bce-auth-v1/f81d3b34e48048fbb2634dc7882d7e21/2015-08-11T04:17:29Z/3600/host/74c506f68c65e26c633bfa104c863fffac5190fdec1ec24b7c03eb5d67d2e1de

          响应示例

          HTTP/1.1 200 OK
          Content-Type: application/json;charset=UTF-8
          Date: Wed, 08 Jul 2015 03:28:11 GMT
          x-bce-request-id: d8752367-38e8-45e4-b4c7-e53be3137ce5
          Server: BWS
          
          {
          "result": [
              {
                  "imageId": "im-xxcpxrci-1-m-hangzhou",
                  "status": "IMAGING",
                  "bccImageId": "m-xx0rMRY5",
                  "name": "name4",
                  "accountId": "ea6a29c5f48f42fe92f6e002925f79c0",
                  "imageType": "becCustom",
                  "systemDisk": 40,
                  "osType": "linux",
                  "osVersion": "16.04 LTS",
                  "osName": "Ubuntu",
                  "osBuild": "2020111300",
                  "osLang": "ENG",
                  "osArch": "i386 (32bit)",
                  "createTime": "2020-12-28T10:54:26Z",
                  "updateTime": "2020-12-28T10:54:26Z"
              },
              {
                  "imageId": "im-xxk59qlk-1-m-hangzhou",
                  "status": "IMAGING",
                  "bccImageId": "m-xx0rMRY5",
                  "name": "name3",
                  "accountId": "ea6a29c5f48f42fe92f6e002925f79c0",
                  "imageType": "becCustom",
                  "systemDisk": 60,
                  "osType": "linux",
                  "osVersion": "16.04 LTS",
                  "osName": "Ubuntu",
                  "osBuild": "2020111300",
                  "osLang": "ENG",
                  "osArch": "i386 (32bit)",
                  "createTime": "2020-12-28T06:31:15Z",
                  "updateTime": "2020-12-28T07:09:57Z"
              },
              {
                  "imageId": "im-xxhjnzkm-1-m-hangzhou",
                  "status": "SUCCEEDED",
                  "bccImageId": "m-xx0rMRY5",
                  "name": "name2",
                  "accountId": "ea6a29c5f48f42fe92f6e002925f79c0",
                  "imageType": "becCustom",
                  "systemDisk": 50,
                  "osType": "linux",
                  "osVersion": "16.04 LTS",
                  "osName": "Ubuntu",
                  "osBuild": "2020111300",
                  "osLang": "ENG",
                  "osArch": "i386 (32bit)",
                  "createTime": "2020-12-28T06:31:10Z",
                  "updateTime": "2020-12-28T06:44:32Z"
              },
              {
                  "imageId": "im-xxz678w0-1-m-hangzhou",
                  "status": "SUCCEEDED",
                  "bccImageId": "m-xx0rMRY5",
                  "name": "name1",
                  "accountId": "ea6a29c5f48f42fe92f6e002925f79c0",
                  "imageType": "becCustom",
                  "systemDisk": 40,
                  "osType": "linux",
                  "osVersion": "16.04 LTS",
                  "osName": "Ubuntu",
                  "osBuild": "2020111300",
                  "osLang": "ENG",
                  "osArch": "i386 (32bit)",
                  "createTime": "2020-12-28T06:30:28Z",
                  "updateTime": "2020-12-28T06:44:23Z"
              }
          ],
          "orders": null,
          "orderBy": "createTime",
          "order": "desc",
          "pageNo": 1,
          "pageSize": 1000,
          "totalCount": 4
          }

          Model对象定义

          VmImageVo

          参数名称 类型 描述
          imageId String 虚机镜像ID
          name String 虚机镜像名称
          status String 虚机镜像状态(IMAGING,SUCCEEDED)
          bccImageId String 基准镜像ID
          accountId String 用户ID
          imageType String 镜像类型
          systemDisk int 系统盘大小
          osType String 操作系统类型
          osVersion String 操作系统版本
          osBuild String 基准镜像构建时间
          osLang String 操作系统语言
          osArch String 操作系统处理器架构
          createTime String 创建时间
          updateTime String 更新时间
          上一篇
          创建BEC虚机镜像
          下一篇
          更新BEC虚机镜像