Help Center/ Elastic Cloud Server/ API Reference/ Out-of-Date APIs/ Image Management (OpenStack Nova APIs)/ Querying the Metadata of a Specified Image (Discarded)
Updated on 2022-09-23 GMT+08:00

Querying the Metadata of a Specified Image (Discarded)

Function

This API is used to query the metadata of the specified image.

This API has been discarded. Use the API described in Querying Images (Native OpenStack API).

URI

GET /v2.1/{project_id}/images/{image_id}/metadata

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

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

For details about how to obtain the ID, see Obtaining a Project ID.

image_id

Yes

Specifies the image ID.

Request

None

Response

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

User customization

String

Specifies the key pair of the metadata.

Example Request

GET https://{endpoint}/v2.1/9c53a566cb3443ab910cf0daebca90c4/images/17a1890b-0fa4-485e-8505-14e294017988/metadata

Example Response

{
    "metadata": {
        "__os_version": "Suse Linux Enterprise 12.2 64bit",
        "__image_source_type": "uds",
        "__imagetype": "gold",
        "__os_bit": "64",
        "__os_type": "Suse",
        "__isregistered": "true",
        "__image_location": "192.168.80.11:5080:pcsimsbeta:suse12.2-addx710-05-11",
        "virtual_env_type": "Ironic",
        "__platform": "Suse",
        "__support_o3s": "true"
    }
}