镜像服务 IMS-查询镜像视图(OpenStack原生):响应消息

时间:2025-02-12 15:00:33

响应消息

  • 响应参数

    参数

    参数类型

    描述

    additionalProperties

    Object

    附加属性。

    详情请参见表1

    name

    String

    视图名称。

    links

    Array of objects

    视图链接。

    详情请参见表2

    properties

    Object

    镜像属性说明,主要是对基础属性的说明,包含每个属性的取值类型、用途。

    具体参数说明可参考镜像属性

    表1 additionalProperties字段说明

    参数

    参数类型

    描述

    type

    String

    类型

    表2 links字段说明

    参数

    参数类型

    描述

    href

    String

    域名

    rel

    String

    域名描述

  • 响应样例
    STATUS CODE 200
      1  2  3  4  5  6  7  8  9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193
    {    "additionalProperties": {        "type": "string"    },    "name": "image",    "links": [        {            "href": "{self}",            "rel": "self"        },        {            "href": "{file}",            "rel": "enclosure"        },        {            "href": "{schema}",            "rel": "describedby"        }    ],    "properties": {        "status": {            "enum": [                "queued",                "saving",                "active",                "killed",                "deleted",                "pending_delete"            ],            "type": "string",            "description": "Status of the image (READ-ONLY)"        },        "tags": {            "items": {                "type": "string",                "maxLength": 255            },            "type": "array",            "description": "List of strings related to the image"        },        "kernel_id": {            "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",            "type": "string",            "description": "ID of image stored in Glance that should be used as the kernel when booting an AMI-style image.",            "is_base": false        },        "container_format": {            "enum": [                "ami",                "ari",                "aki",                "bare",                "ovf",                "ova"            ],            "type": "string",            "description": "Format of the container"        },        "min_ram": {            "type": "integer",            "description": "Amount of ram (in MB) required to boot image."        },        "ramdisk_id": {            "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",            "type": "string",            "description": "ID of image stored in Glance that should be used as the ramdisk when booting an AMI-style image.",            "is_base": false        },        "locations": {            "items": {                "required": [                    "url",                    "metadata"                ],                "type": "object",                "properties": {                    "url": {                        "type": "string",                        "maxLength": 255                    },                    "metadata": {                        "type": "object"                    }                }            },            "type": "array",            "description": "A set of URLs to access the image file kept in external store"        },        "visibility": {            "enum": [                "public",                "private"            ],            "type": "string",            "description": "Scope of image accessibility"        },        "updated_at": {            "type": "string",            "description": "Date and time of the last image modification (READ-ONLY)"        },        "owner": {            "type": "string",            "description": "Owner of the image",            "maxLength": 255        },        "file": {            "type": "string",            "description": "(READ-ONLY)"        },        "min_disk": {            "type": "integer",            "description": "Amount of disk space (in GB) required to boot image."        },        "virtual_size": {            "type": "integer",            "description": "Virtual size of image in bytes (READ-ONLY)"        },        "id": {            "pattern": "^([0-9a-fA-F]){8}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){4}-([0-9a-fA-F]){12}$",            "type": "string",            "description": "An identifier for the image"        },        "size": {            "type": "integer",            "description": "Size of image file in bytes (READ-ONLY)"        },        "instance_uuid": {            "type": "string",            "description": "ID of instance used to create this image.",            "is_base": false        },        "os_distro": {            "type": "string",            "description": "Common name of operating system distribution as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",            "is_base": false        },        "name": {            "type": "string",            "description": "Descriptive name for the image",            "maxLength": 255        },        "checksum": {            "type": "string",            "description": "md5 hash of image contents. (READ-ONLY)",            "maxLength": 32        },        "created_at": {            "type": "string",            "description": "Date and time of image registration (READ-ONLY)"        },        "disk_format": {            "enum": [                "ami",                "ari",                "aki",                "vhd",                "vmdk",                "raw",                "qcow2",                "vdi",                "iso"            ],            "type": "string",            "description": "Format of the disk"        },        "os_version": {            "type": "string",            "description": "Operating system version as specified by the distributor",            "is_base": false        },        "protected": {            "type": "boolean",            "description": "If true, image will not be deletable."        },        "architecture": {            "type": "string",            "description": "Operating system architecture as specified in http://docs.openstack.org/trunk/openstack-compute/admin/content/adding-images.html",            "is_base": false        },        "direct_url": {            "type": "string",            "description": "URL to access the image file kept in external store (READ-ONLY)"        },        "self": {            "type": "string",            "description": "(READ-ONLY)"        },        "schema": {            "type": "string",            "description": "(READ-ONLY)"        }    }}
support.huaweicloud.com/api-ims/ims_03_0715.html