doc-exports/docs/ecs/api-ref/en-us_topic_0065817698.html
Artem Goncharov 3196b64bfc
move doc sources to other location (#3)
move doc sources to other location

Reviewed-by: OpenTelekomCloud Bot <None>
2022-04-27 16:24:25 +00:00

87 lines
6.6 KiB
HTML

<a name="EN-US_TOPIC_0065817698"></a><a name="EN-US_TOPIC_0065817698"></a>
<h1 class="topictitle1">Querying the Metadata of a Specified Image (Discarded)</h1>
<div id="body1499652824861"><div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section36530619"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_p45676910">This API is used to query the metadata of the specified image.</p>
<p id="EN-US_TOPIC_0065817698__p6509142812448">This API has been discarded. Use the API described in "Querying Image Metadata (Native OpenStack API)".</p>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section60340116"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0065817698__p38061741143717">GET /v2/{project_id}/images/{image_id}/metadata</p>
<p id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_p17835728145012">GET /v2.1/{project_id}/images/{image_id}/metadata</p>
<div class="p" id="EN-US_TOPIC_0065817698__p88461540135313"><a href="#EN-US_TOPIC_0065817698__table5587311174112">Table 1</a> describes the parameters in the URI.
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817698__table5587311174112"></a><a name="table5587311174112"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817698__table5587311174112" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065817698__row1458719116419"><th align="left" class="cellrowborder" valign="top" width="22.55225522552255%" id="mcps1.3.2.4.2.2.4.1.1"><p id="EN-US_TOPIC_0065817698__p1540416188414">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="19.321932193219325%" id="mcps1.3.2.4.2.2.4.1.2"><p id="EN-US_TOPIC_0065817698__p6404101816414">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="58.12581258125813%" id="mcps1.3.2.4.2.2.4.1.3"><p id="EN-US_TOPIC_0065817698__p1640431874110">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065817698__row15881611124111"><td class="cellrowborder" valign="top" width="22.55225522552255%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817698__p540491814118">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="19.321932193219325%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817698__p104040184413">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="58.12581258125813%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817698__p640416183411">Specifies the project ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0065817698__row13588411174113"><td class="cellrowborder" valign="top" width="22.55225522552255%" headers="mcps1.3.2.4.2.2.4.1.1 "><p id="EN-US_TOPIC_0065817698__p44041018154119">image_id</p>
</td>
<td class="cellrowborder" valign="top" width="19.321932193219325%" headers="mcps1.3.2.4.2.2.4.1.2 "><p id="EN-US_TOPIC_0065817698__p11404101814112">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="58.12581258125813%" headers="mcps1.3.2.4.2.2.4.1.3 "><p id="EN-US_TOPIC_0065817698__p15404918194116">Specifies the image ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section31639158"><h4 class="sectiontitle">Request</h4><p id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_p29206682">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section16316966"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0065817698__p1922393010576"><a href="#EN-US_TOPIC_0065817698__table10666498410">Table 2</a> describes the response parameters.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0065817698__table10666498410"></a><a name="table10666498410"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065817698__table10666498410" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0065817698__row767144944111"><th align="left" class="cellrowborder" valign="top" width="24.782478247824784%" id="mcps1.3.4.3.2.4.1.1"><p id="EN-US_TOPIC_0065817698__p4716951134116">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="29.17291729172917%" id="mcps1.3.4.3.2.4.1.2"><p id="EN-US_TOPIC_0065817698__p18716155120412">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="46.044604460446045%" id="mcps1.3.4.3.2.4.1.3"><p id="EN-US_TOPIC_0065817698__p20716851204119">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065817698__row176710491412"><td class="cellrowborder" valign="top" width="24.782478247824784%" headers="mcps1.3.4.3.2.4.1.1 "><p id="EN-US_TOPIC_0065817698__p20716651144111">User customization</p>
</td>
<td class="cellrowborder" valign="top" width="29.17291729172917%" headers="mcps1.3.4.3.2.4.1.2 "><p id="EN-US_TOPIC_0065817698__p127161251164119">String</p>
</td>
<td class="cellrowborder" valign="top" width="46.044604460446045%" headers="mcps1.3.4.3.2.4.1.3 "><p id="EN-US_TOPIC_0065817698__p17161551104113">Specifies the key pair of the metadata.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section12634966"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0065817698__screen1583017135916">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</pre>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__section78953122313"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="EN-US_TOPIC_0065817698__screen121785316236">{
"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"
}
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_section41491842"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0065817698__en-us_topic_0057973119_en-us_topic_0057972976_p5693111841619">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0065817680.html">Image Management (OpenStack Nova APIs)</a></div>
</div>
</div>