doc-exports/docs/ecs/api-ref/en-us_topic_0065962598.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

105 lines
7.8 KiB
HTML

<a name="EN-US_TOPIC_0065962598"></a><a name="EN-US_TOPIC_0065962598"></a>
<h1 class="topictitle1">Associating an FPGA Image with an ECS Image</h1>
<div id="body1499692511539"><div class="section" id="EN-US_TOPIC_0065962598__section43795230211632"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0065962598__p47554188211632">This API is used to create a mapping between an FPGA image and an ECS image.</p>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section28033540211632"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0065962598__p53736847103512">POST /v1/{project_id}/cloudservers/fpga_image/{fpga_image_id}/association</p>
<p id="EN-US_TOPIC_0065962598__p57561622153115"><a href="#EN-US_TOPIC_0065962598__table28107133211632">Table 1</a> describes the parameters in the URI.</p>
<div class="tablenoborder"><a name="EN-US_TOPIC_0065962598__table28107133211632"></a><a name="table28107133211632"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065962598__table28107133211632" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="EN-US_TOPIC_0065962598__row19177941211632"><th align="left" class="cellrowborder" valign="top" width="19.42%" id="mcps1.3.2.4.2.4.1.1"><p id="EN-US_TOPIC_0065962598__p7707213">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.349999999999998%" id="mcps1.3.2.4.2.4.1.2"><p id="EN-US_TOPIC_0065962598__p20304554">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="63.23%" id="mcps1.3.2.4.2.4.1.3"><p id="EN-US_TOPIC_0065962598__p34056167">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065962598__row33377558211632"><td class="cellrowborder" valign="top" width="19.42%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0065962598__p53863828211632">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0065962598__p47645557211632">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="63.23%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0065962598__p37593705">Specifies the project ID.</p>
</td>
</tr>
<tr id="EN-US_TOPIC_0065962598__row176964211632"><td class="cellrowborder" valign="top" width="19.42%" headers="mcps1.3.2.4.2.4.1.1 "><p id="EN-US_TOPIC_0065962598__p48913232211632">fpga_image_id</p>
</td>
<td class="cellrowborder" valign="top" width="17.349999999999998%" headers="mcps1.3.2.4.2.4.1.2 "><p id="EN-US_TOPIC_0065962598__p66905560211632">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="63.23%" headers="mcps1.3.2.4.2.4.1.3 "><p id="EN-US_TOPIC_0065962598__p5594788211632">Specifies the FPGA image ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section3313651211632"><h4 class="sectiontitle">Request</h4><div class="p" id="EN-US_TOPIC_0065962598__p3206154419312"><a href="#EN-US_TOPIC_0065962598__table41782128362">Table 2</a> describes the request parameters.
<div class="tablenoborder"><a name="EN-US_TOPIC_0065962598__table41782128362"></a><a name="table41782128362"></a><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065962598__table41782128362" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="EN-US_TOPIC_0065962598__row17178181253615"><th align="left" class="cellrowborder" valign="top" width="19.36%" id="mcps1.3.3.2.2.2.5.1.1"><p id="EN-US_TOPIC_0065962598__p3178612173615">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.469999999999999%" id="mcps1.3.3.2.2.2.5.1.2"><p id="EN-US_TOPIC_0065962598__p2017861210364">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.68%" id="mcps1.3.3.2.2.2.5.1.3"><p id="EN-US_TOPIC_0065962598__p1775122317363">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.49%" id="mcps1.3.3.2.2.2.5.1.4"><p id="EN-US_TOPIC_0065962598__p71791812113610">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065962598__row817971293614"><td class="cellrowborder" valign="top" width="19.36%" headers="mcps1.3.3.2.2.2.5.1.1 "><p id="EN-US_TOPIC_0065962598__p54426520364">image</p>
</td>
<td class="cellrowborder" valign="top" width="13.469999999999999%" headers="mcps1.3.3.2.2.2.5.1.2 "><p id="EN-US_TOPIC_0065962598__p12442185213364">Object</p>
</td>
<td class="cellrowborder" valign="top" width="17.68%" headers="mcps1.3.3.2.2.2.5.1.3 "><p id="EN-US_TOPIC_0065962598__p16442195218369">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="49.49%" headers="mcps1.3.3.2.2.2.5.1.4 "><p id="EN-US_TOPIC_0065962598__p15444145213368">Specifies the ECS image.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0065962598__table39016918211632" frame="border" border="1" rules="all"><caption><b>Table 3 </b><strong id="EN-US_TOPIC_0065962598__b662091219479">image</strong> field description</caption><thead align="left"><tr id="EN-US_TOPIC_0065962598__row31417811211632"><th align="left" class="cellrowborder" valign="top" width="19.36%" id="mcps1.3.3.3.2.5.1.1"><p id="EN-US_TOPIC_0065962598__p13501148211632">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.530000000000001%" id="mcps1.3.3.3.2.5.1.2"><p id="EN-US_TOPIC_0065962598__p32752343211632">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.11%" id="mcps1.3.3.3.2.5.1.3"><p id="EN-US_TOPIC_0065962598__p47957996211632">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="50%" id="mcps1.3.3.3.2.5.1.4"><p id="EN-US_TOPIC_0065962598__p51666370211632">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="EN-US_TOPIC_0065962598__row22126978211632"><td class="cellrowborder" valign="top" width="19.36%" headers="mcps1.3.3.3.2.5.1.1 "><p id="EN-US_TOPIC_0065962598__p24226259211632">id</p>
</td>
<td class="cellrowborder" valign="top" width="13.530000000000001%" headers="mcps1.3.3.3.2.5.1.2 "><p id="EN-US_TOPIC_0065962598__p42610398211632">String</p>
</td>
<td class="cellrowborder" valign="top" width="17.11%" headers="mcps1.3.3.3.2.5.1.3 "><p id="EN-US_TOPIC_0065962598__p27767370211632">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="50%" headers="mcps1.3.3.3.2.5.1.4 "><p id="EN-US_TOPIC_0065962598__p57026368211632">Specifies the ECS image ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section727655211632"><h4 class="sectiontitle">Response</h4><p id="EN-US_TOPIC_0065962598__p55138791211632">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section47627159211632"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="EN-US_TOPIC_0065962598__screen3640164183718">POST https://{endpoint}/v1/{project_id}/cloudservers/fpga_image/{fpga_image_id}/association</pre>
<pre class="screen" id="EN-US_TOPIC_0065962598__screen11780527163214">{
"image": {
"id": "18efee75-e058-4c52-a49c-9e3ba4d1c8de"
}
}</pre>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section186865517285"><h4 class="sectiontitle">Example Response</h4><p id="EN-US_TOPIC_0065962598__p186277910287">None</p>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section3477250491225"><h4 class="sectiontitle">Returned Values</h4><p id="EN-US_TOPIC_0065962598__p6510945291225">See <a href="en-us_topic_0022067716.html">Returned Values for General Requests</a>.</p>
</div>
<div class="section" id="EN-US_TOPIC_0065962598__section85821649202813"><h4 class="sectiontitle">Error Codes</h4><p id="EN-US_TOPIC_0065962598__p7233105282813">See <a href="en-us_topic_0022067717.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0065962596.html">FPGA Logical File Management</a></div>
</div>
</div>