Help Center/ Image Management Service/ API Reference/ Historical APIs/ Image (Native OpenStack APIs)/ Querying Image Details (Native OpenStack API V2, Deprecated)
Updated on 2026-07-07 GMT+08:00

Querying Image Details (Native OpenStack API V2, Deprecated)

Function

This API is used to query details about a public or private image.

This API has been deprecated. You are advised to use the API in Querying Images.

Windows images can no longer be queried.

URI

GET /v2/images/{image_id}

Table 1 lists the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Type

Description

image_id

Yes

String

Image ID.

Request

Request parameters

None

Example Request

Querying details of an image

GET https://{Endpoint}/v2/images/33ad552d-1149-471c-8190-ff6776174a00

Response

  • Response parameters

    Parameter

    Type

    Description

    file

    String

    URL for uploading and downloading an image file.

    owner

    String

    Tenant that an image belongs to.

    id

    String

    Image ID.

    size

    Long

    This is a reserved field.

    self

    String

    Image URL.

    schema

    String

    Image schema.

    status

    String

    Image status. The value can be one of the following:

    • queued: indicates that the image metadata has already been created, and it is ready for the image file to upload.
    • saving: indicates that the image file is being uploaded to the backend storage.
    • deleted: indicates that the image has been deleted.
    • killed: indicates that an error occurs on the image uploading.
    • active: indicates that the image is available for use.

    tags

    Array of strings

    Image tags. With tags, you can manage private images in your own way. You can use the image tag API to add different tags to each image and filter images by tag.

    visibility

    String

    Whether an image is visible to other tenants. The value can be:

    • private: private image
    • public: public image
    • shared: shared image

    name

    String

    Image name. For details about name, see Image Attributes.

    checksum

    String

    This is a reserved field.

    protected

    Boolean

    Whether an image is protected. A protected image cannot be deleted. The value can be true or false.

    container_format

    String

    Container type.

    min_ram

    Integer

    Minimum memory (MB) required for running an image. The parameter value depends on the ECS specifications. Generally, the value is 0.

    max_ram

    String

    Maximum memory (MB) supported by an image. You can set this parameter based on the ECS specifications. Generally, you do not need to set this parameter.

    updated_at

    String

    Image update time. The value is in UTC format.

    __os_bit

    String

    OS bitness. Generally, the value is 32 or 64.

    __os_version

    String

    OS version.

    __description

    String

    Image description. For detailed description, see Image Attributes.

    disk_format

    String

    Image format. The value can be zvhd2, vhd, zvhd, raw, iso, or qcow2. The default value is zvhd2 for a non-ISO image.

    __isregistered

    String

    Whether an image is registered. The value can be true or false.

    __platform

    String

    Image platform. The value can be Windows, Ubuntu, Red Hat, SUSE, CentOS, Debian, OpenSUSE, Oracle Linux, Fedora, CoreOS, EulerOS, or Other.

    __os_type

    String

    OS type. The value can be Linux, Windows, or Other.

    __system__cmkid

    String

    ID of the key used for image encryption.

    min_disk

    Integer

    Minimum disk space (GB) required for running an image. For Linux, the value ranges from 10 GB to 1,024 GB. For Windows, the value ranges from 20 GB to 1,024 GB.

    virtual_env_type

    String

    Environment where an image is used. The value can be FusionCompute, Ironic, DataImage, or IsoImage.

    • For an ECS image (system disk image), the value is FusionCompute.
    • For a data disk image, the value is DataImage.
    • For a BMS image, the value is Ironic.
    • For an ISO image, the value is IsoImage.

    __image_source_type

    String

    Image backend storage type. Only UDS is supported currently.

    __imagetype

    String

    Image type. The following types are supported:

    • Public image: The value is gold.
    • Private image: The value is private.
    • Shared image: The value is shared.
    • KooGallery image: The value is market.

    created_at

    String

    Image creation time. The value is in UTC format.

    virtual_size

    Integer

    This is a reserved field.

    __originalimagename

    String

    Parent image ID.

    If the image is a public image or created from an image file, this value is left empty.

    __backup_id

    String

    Backup ID. To create an image using a backup, set the value to the backup ID. Otherwise, this value is left empty.

    __productcode

    String

    Product ID of a KooGallery image.

    __image_size

    String

    Image file size, in bytes. The value is greater than 0.

    __data_origin

    String

    Image source.

    If the image is a public image, this parameter is left empty.

    __root_origin

    String

    Origin of an image. The value is file.

    __lazyloading

    String

    Whether an image supports lazy loading. The value can be true, false, True, or False.

    active_at

    String

    Time when the image status became active.

    __os_feature_list

    String

    Additional image attributes. The value is a list (in JSON format) of advanced features supported by the image.

    __sequence_num

    String

    This parameter is unavailable currently.

    __support_kvm

    String

    Whether an image supports KVM. If yes, the value is true. Otherwise, this parameter is not required.

    __support_xen

    String

    Whether an image supports Xen. If yes, the value is true. Otherwise, this parameter is not required.

    __support_largememory

    String

    Whether an image supports large memory. If an image supports large memory, the value is true. Otherwise, this parameter is not required.

    For details, see OSs Supported by Different Types of ECSs.

    __support_diskintensive

    String

    Whether an image supports intensive storage. If an image supports intensive storage, the value is true. Otherwise, this parameter is not required.

    __support_highperformance

    String

    Whether an image supports high-performance computing. If an image supports high-performance computing, the value is true. Otherwise, this parameter is not required.

    __support_xen_gpu_type

    String

    Whether an image supports GPUs on the Xen platform. See Table 2 for its value. If an image does not support GPUs on the Xen platform, this parameter is not required. This parameter cannot co-exist with __support_xen or __support_kvm.

    __support_kvm_gpu_type

    String

    Whether an image supports GPUs on the KVM platform. See Table 3 for its value.

    If an image does not support GPUs on the KVM platform, this parameter is not required. This parameter cannot co-exist with __support_xen or __support_kvm.

    __support_xen_hana

    String

    If an image supports HANA on the Xen platform, the value is true. Otherwise, this parameter is not required.

    This parameter cannot co-exist with __support_xen or __support_kvm.

    __support_kvm_infiniband

    String

    If an image supports InfiniBand NICs on the KVM platform, the value is true. Otherwise, this parameter is not required.

    This attribute cannot co-exist with __support_xen.

    __support_fc_inject

    String

    Whether an image supports password/private key injection with Cloud-Init. The value can be true or false.

    true indicates password/private key injection using Cloud-Init is not supported. Other values indicate the injection is supported.

    NOTE:

    This parameter is valid only for ECS system disk images.

    enterprise_project_id

    String

    Enterprise project that an image belongs to.

    • If the value is 0 or left blank, the image belongs to the default enterprise project.
    • If the value is a UUID, the image belongs to the enterprise project corresponding to the UUID.

    __is_offshelved

    String

    Whether the KooGallery image has been taken offline.

    • true: The image has been taken offline.
    • false: The image has not been taken offline.

    hw_firmware_type

    String

    ECS boot mode. Available values include:

    • bios indicates the BIOS boot mode.
    • uefi indicates the UEFI boot mode.

    hw_vif_multiqueue_enabled

    String

    Whether an image supports NIC multi-queue. The value can be true or false.

    __support_arm

    String

    Whether the image architecture is Arm. The value can be true or false.

    __support_agent_list

    String

    Agents configured for an image.

    • hss: server security
    • ces: server monitoring

    Example value:

    "__support_agent_list": "hss,ces"

    NOTE:

    If the response does not contain this field, the HSS or host monitoring agents are not configured for the image.

    __account_code

    String

    Image charging flag.

    __image_location

    String

    Image storage location.

    __is_config_init

    String

    Whether initial configuration is completed. The value can be true or false.

    __support_amd

    String

    Whether the image architecture is AMD. The value can be true or false.

  • Example response
    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
    {
          "schema": "/v2/schemas/image",
          "min_disk": 100,
          "created_at": "2018-09-06T14:03:27Z",
          "__image_source_type": "uds",
          "container_format": "bare",
          "file": "/v2/images/bc6bed6e-ba3a-4447-afcc-449174a3eb52/file",
          "updated_at": "2018-09-06T15:17:33Z",
          "protected": true,
          "checksum": "d41d8cd98f00b204e9800998ecf8427e",
          "id": "bc6bed6e-ba3a-4447-afcc-449174a3eb52",
          "__isregistered": "true",
          "min_ram": 2048,
          "__lazyloading": "true",
          "owner": "1bed856811654c1cb661a6ca845ebc77",
          "__os_type": "Linux",
          "__imagetype": "gold",
          "visibility": "public",
          "virtual_env_type": "FusionCompute",
          "tags": [],
          "__platform": "CentOS",
          "size": 0,
          "__os_bit": "64",
          "__os_version": "CentOS 7.3 64bit",
          "name": "CentOS 7.3 64bit vivado",
          "self": "/v2/images/bc6bed6e-ba3a-4447-afcc-449174a3eb52",
          "disk_format": "zvhd2",
          "virtual_size": null,
          "status": "active"
    }
    

Returned Values

  • Normal

    200

  • Abnormal

    Returned Value

    Description

    400 Bad Request

    Request error.

    401 Unauthorized

    Authentication failed.

    403 Forbidden

    You do not have the rights to perform the operation.

    404 Not Found

    The requested resource was not found.

    500 Internal Server Error

    Internal service error.

    503 Service Unavailable

    The service is unavailable.