镜像服务 IMS-查询镜像元数据(OpenStack原生v1--已废弃,不推荐使用):响应消息

时间:2024-11-13 14:59:38

响应消息

  • 响应参数

    参数

    参数类型

    描述

    Status

    String

    镜像状态

    Virtual_size

    Integer

    镜像虚拟大小

    Name

    String

    镜像名称

    Deleted

    Boolean

    镜像是否已删除

    Container_format

    String

    镜像容器类型

    Created_at

    String

    镜像创建时间

    Disk_format

    String

    镜像文件类型

    Updated_at

    String

    镜像更新时间

    Property

    Object

    镜像属性

    Owner

    String

    镜像所属租户

    Protected

    Boolean

    镜像是否受保护

    Min_ram

    Integer

    运行镜像所需最小内存,单位MB

    Checksum

    String

    镜像校验和,上传镜像文件后存在

    Min_disk

    Integer

    运行镜像所需最小磁盘,单位GB

    Is_public

    Boolean

    是否为公共镜像

    Deleted_at

    String

    镜像删除时间

    Id

    String

    镜像UUID

    Size

    Integer

    镜像大小,上传镜像文件后存在

    上述响应参数在HTTP响应消息的header中返回。

  • 响应样例
    HTTP/1.1 200 OK
     1
     2
     3
     4
     5
     6
     7
     8
     9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    Content-Type: text/html; charset=UTF-8
    Content-Length: 0
    X-Image-Meta-Id: 3c3d1d01-b48a-4639-8a88-08be3b9b5d78
    X-Image-Meta-Deleted: False
    X-Image-Meta-Container_format: bare
    X-Image-Meta-Checksum: 64d7c1cd2b6f60c92c14662941cb7913
    X-Image-Meta-Protected: False
    X-Image-Meta-Min_disk: 0
    X-Image-Meta-Created_at: 2016-05-22T06:04:20.425843
    X-Image-Meta-Size: 13167616
    X-Image-Meta-Status: active
    X-Image-Meta-Is_public: True
    X-Image-Meta-Min_ram: 0
    X-Image-Meta-Owner: 23f4cb75768d4febb39542ef6fe169f3
    X-Image-Meta-Updated_at: 2016-05-22T06:04:22.719791
    X-Image-Meta-Disk_format: qcow2
    X-Image-Meta-Name: cirros
    Etag: 64d7c1cd2b6f60c92c14662941cb7913
    X-Openstack-Request-Id: req-7123ca83-da23-4f4e-9ed6-accd3707d333
    Date: Mon, 23 May 2016 02:29:54 GMT
    
support.huaweicloud.com/api-ims/ims_03_0709.html