• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Image Management
  6. Querying the Metadata of a Specified Image (Discarded)

Querying the Metadata of a Specified Image (Discarded)

Function Description

This interface is used to obtain the metadata of the specified image.

URI

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

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.

image_id

Yes

Specifies the image ID.

Constraints

  • This API will be discarded. You are advised to use the IMS interface "Querying Images".

Request

N/A

Response

Response parameters

Table 2 describes the response parameters.

Table 2 Response parameter

Parameter

Type

Description

User customization

String

Specifies the key pair of the metadata.

Examples

  • Example request
    GET /v2/9c53a566cb3443ab910cf0daebca90c4/images/17a1890b-0fa4-485e-8505-14e294017988/metadata
    GET /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"
        }
    }

Returned Values

See General Request Returned Values.