forked from docs/doc-exports
move doc sources to other location Reviewed-by: OpenTelekomCloud Bot <None>
6.6 KiB
6.6 KiB
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 Image Metadata (Native OpenStack API)".
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.
Request
None
Response
Table 2 describes the response parameters.
Example Request
GET https://{endpoint}/v2/9c53a566cb3443ab910cf0daebca90c4/images/17a1890b-0fa4-485e-8505-14e294017988/metadata 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" } }
Returned Values
Parent topic: Image Management (OpenStack Nova APIs)