forked from docs/doc-exports
Reviewed-by: Pristromskaia, Margarita <margarita.pristromskaia@t-systems.com> Co-authored-by: Zaoxu, Li <lizaoxu@huawei.com> Co-committed-by: Zaoxu, Li <lizaoxu@huawei.com>
426 lines
52 KiB
HTML
426 lines
52 KiB
HTML
<a name="EN-US_TOPIC_0092380109"></a><a name="EN-US_TOPIC_0092380109"></a>
|
|
|
|
<h1 class="topictitle1">Creating a Full-ECS Image</h1>
|
|
<div id="body1515497753952"><div class="section" id="EN-US_TOPIC_0092380109__section29995926"><h4 class="sectiontitle">Function</h4><p id="EN-US_TOPIC_0092380109__p10968358101413">This API is used to create a full-ECS image from an ECS, Cloud Server Backup Service (CSBS) backup, or Cloud Backup and Recovery (CBR) backup. The API is an asynchronous one. If it is successfully called, the cloud system receives the request to create a full-ECS image. However, you need to use the asynchronous job query API to query the image creation status. For details, see <a href="en-us_topic_0022473688.html">Querying the Status of an Asynchronous Job</a>.</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section192601957181516"><h4 class="sectiontitle">Constraints (Creating a Full-ECS Image Using an <span id="EN-US_TOPIC_0092380109__text17599123014165"></span><span id="EN-US_TOPIC_0092380109__text149972314168">ECS</span>)</h4><ul id="EN-US_TOPIC_0092380109__ul21885286144834"><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_li945905513710">When creating a full-ECS image from an ECS, ensure that the <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text10459155510373"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text1546015512378">ECS</span> has been properly configured, or the image creation may fail.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_li23037069105057">A Windows <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text19631426171120"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text8963526141112">ECS</span> used to create a full-ECS image cannot have a spanned volume, or data may be lost when <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text1396422691112"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text17964112619119">ECS</span>s are created from that image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_li3766879110576">A Linux <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text123483113171"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text5341931171713">ECS</span> used to create a full-ECS image cannot have a disk group or logical disk that contains multiple physical disks, or data may be lost when <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text751844014175"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text551810403171">ECS</span>s are created from that image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_li42551659182719">A full-ECS image cannot be exported or replicated.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li18948163162920">When creating a full-ECS image from a Windows <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text376319268196"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text7764182631913">ECS</span>, you need to change the SAN policy of the <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text1375731201914"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text1751131141918">ECS</span> to OnlineAll. Otherwise, EVS disks attached to the ECSs created from the image may be offline.<p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p969813349290">Windows has three types of SAN policies: <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b1600156182918">OnlineAll</strong>, <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b116014569291">OfflineShared</strong>, and <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b20602175613296">OfflineInternal</strong>.</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_table615679113016" frame="border" border="1" rules="all"><caption><b>Table 1 </b><span class="keyword" id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_keyword151430096191450">SAN policies</span> in Windows</caption><thead align="left"><tr id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_row1115619943013"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.2.2.5.6.2.3.1.1"><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p6156139123011"><strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b842352706201211">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.2.2.5.6.2.3.1.2"><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p4156149133011"><strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b842352706105039">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_row151561899304"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p111566915309">OnlineAll</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p191569916308">All newly detected disks are automatically brought online.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_row16156149183018"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p141568914305">OfflineShared</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p2015609163015">All disks on sharable buses, such as iSCSI and FC, are left offline by default, while disks on non-sharable buses are kept online.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_row41567943014"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.2.2.5.6.2.3.1.1 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p131561497304">OfflineInternal</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.2.2.5.6.2.3.1.2 "><p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p13156149173012">All newly detected disks are left offline.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<ol id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_ol950621673116"><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li176341516368">Execute <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b15356160193016">cmd.exe</strong> and run the following command to query the current SAN policy of the <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text769305314198"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text1669345320196">ECS</span>:<p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p155101230375"><strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_b133717349374">diskpart</strong></p>
|
|
</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li1150616167312">Run the following command to view the SAN policy of the <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text198611856181912"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text4861175613191">ECS</span>:<div class="p" id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_p17625145845016"><strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_b6531630103118">san</strong><ul id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_ul1854735093214"><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li8547175017325">If the SAN policy is <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b84235270611592">OnlineAll</strong>, run the <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b84235270611596">exit</strong> command to exit DiskPart.</li></ul>
|
|
</div>
|
|
<ul id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_ul1354718502324"><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li145471350133210">If the SAN policy is not <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b1152423938115951">OnlineAll</strong>, go to <a href="#EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li15110228143312">3</a>.</li></ul>
|
|
</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li15110228143312"><a name="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_li15110228143312"></a><a name="en-us_topic_0116125142_en-us_topic_0089178278_li15110228143312"></a>Run the following command to change the SAN policy of the <span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text18228190112011"></span><span id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_text152290017202">ECS</span> to <strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_b274263644215">OnlineAll</strong>:<p id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_p18712193418299"><strong id="EN-US_TOPIC_0092380109__en-us_topic_0116125142_en-us_topic_0089178278_b1316133512335">san policy=onlineall</strong></p>
|
|
</li></ol>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section2912711202014"><h4 class="sectiontitle">Constraints (Creating a Full-ECS Image Using a CSBS Backup)</h4><ul id="EN-US_TOPIC_0092380109__ul65524378248"><li id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_li16792259144834">When creating a full-ECS image from a CSBS backup, ensure that the source ECS of the CSBS backup has been properly configured, or the image creation may fail.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_li67131212259">If an ECS is in <strong id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_en-us_topic_0116125142_b4574123444510">Stopped</strong> state, do not start it when you are using it to create a full-ECS image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_li102796251791">A CSBS backup used to create a full-ECS image cannot have shared disks.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_li11456868144834">Only an available CSBS backup can be used to create a full-ECS image. A CSBS backup can be used to create only one full-ECS image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0093344231_li42551659182719">A full-ECS image cannot be exported or replicated.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section1131312297157"><h4 class="sectiontitle">Constraints (Creating a Full-ECS Image Using a CBR Backup)</h4><ul id="EN-US_TOPIC_0092380109__ul5548173861612"><li id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_li16792259144834">When creating a full-ECS image from a <span id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_text178225516556">CBR</span> backup, ensure that the source <span id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_text718645463314">ECS</span><span id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_text1318655412338"></span> of the <span id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_text95881120153411">CBR</span> backup has been properly configured, or the image creation may fail.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_li11456868144834">A <span id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_text983411116559">CBR</span> backup can be used to create only one full-ECS image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_li67131212259">If an ECS is in <strong id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_en-us_topic_0116125142_b4574123444510">Stopped</strong> state, do not start it when you are using it to create a full-ECS image.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_li17307174354719">A full-ECS image created from a CBR backup can be shared with other tenants. However, if it is a shared CBR backup, the full-ECS image created from it cannot be shared.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0176812699_li42551659182719">A full-ECS image cannot be exported or replicated.</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section1527883"><h4 class="sectiontitle">URI</h4><p id="EN-US_TOPIC_0092380109__p22881586111515">POST /v1/cloudimages/wholeimages/action</p>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section13750947"><h4 class="sectiontitle">Request</h4><ul id="EN-US_TOPIC_0092380109__ul38847270"><li id="EN-US_TOPIC_0092380109__li1731919311128">Parameters for creating a full-ECS image using an <span id="EN-US_TOPIC_0092380109__text18135113102419"></span><span id="EN-US_TOPIC_0092380109__text713523120249">ECS</span>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0092380109__table62551043151553" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0092380109__row63356413151553"><th align="left" class="cellrowborder" valign="top" width="18.8%" id="mcps1.3.6.2.1.3.1.5.1.1"><p id="EN-US_TOPIC_0092380109__p41292683151745"><strong id="EN-US_TOPIC_0092380109__b24725868162658">Parameter</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.6%" id="mcps1.3.6.2.1.3.1.5.1.2"><p id="EN-US_TOPIC_0092380109__p51323166151745"><strong id="EN-US_TOPIC_0092380109__b84235270616551">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="15.229999999999999%" id="mcps1.3.6.2.1.3.1.5.1.3"><p id="EN-US_TOPIC_0092380109__p36943663151745">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.370000000000005%" id="mcps1.3.6.2.1.3.1.5.1.4"><p id="EN-US_TOPIC_0092380109__p16401653151745">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0092380109__row58293752151553"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p24173439151553">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p11891563151553">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p23692580151553">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p40050833151553">Specifies the image name. For detailed description, see <a href="en-us_topic_0020091562.html#EN-US_TOPIC_0020091562__section61598810155254">Image Attributes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row57744127151553"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p46762671151553">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p29679979151553">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p55268124151553">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p47533098151553">Provides supplementary information about the image. For detailed description, see <a href="en-us_topic_0020091562.html#EN-US_TOPIC_0020091562__section61598810155254">Image Attributes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row44108176111744"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p17224683111759">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p53022050111759">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p66927678111759">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p52432871111759">Lists the image tags. This parameter is left blank by default.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p20992085173243">Use either <strong id="EN-US_TOPIC_0092380109__b84235270693042">tags</strong> or <strong id="EN-US_TOPIC_0092380109__b84235270693044">image_tags</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row34501036184256"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p21354848113521">image_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p29922489113521">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p56528150113521">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p58098807113521">Lists the image tags. This parameter is left blank by default.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p19190125113278">Use either <strong id="EN-US_TOPIC_0092380109__b1875031287">tags</strong> or <strong id="EN-US_TOPIC_0092380109__b391379843">image_tags</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row64339672194146"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p46228041194154">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p53483863194154">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p37225621194154">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p62485291194154">Specifies the <span id="EN-US_TOPIC_0092380109__text18466173712420"></span><span id="EN-US_TOPIC_0092380109__text1646653782418">ECS</span> ID. This parameter is required when an <span id="EN-US_TOPIC_0092380109__text1175534192418"></span><span id="EN-US_TOPIC_0092380109__text17558419248">ECS</span> is used to create a full-ECS image.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p188578234320">To obtain the <span id="EN-US_TOPIC_0092380109__text7967637181111"></span><span id="EN-US_TOPIC_0092380109__text496753717119">ECS</span> ID, perform the following operations:</p>
|
|
<ol id="EN-US_TOPIC_0092380109__ol388062213448"><li id="EN-US_TOPIC_0092380109__li5880172212448">Log in to management console.</li><li id="EN-US_TOPIC_0092380109__li17881112214446">Under <strong id="EN-US_TOPIC_0092380109__b2076333910118">Computing</strong>, click <strong id="EN-US_TOPIC_0092380109__b117778398119">Elastic Cloud Server</strong>.</li><li id="EN-US_TOPIC_0092380109__li9881162219442">In the <span id="EN-US_TOPIC_0092380109__text1524519316253"></span><span id="EN-US_TOPIC_0092380109__text1624511362513">ECS</span> list, click the name of the <span id="EN-US_TOPIC_0092380109__text19262135415117"></span><span id="EN-US_TOPIC_0092380109__text1126255420116">ECS</span> and view its ID.</li></ol>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row1760801711315"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p1757718236314">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p45772238312">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p1457752317316">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p10305182217584">Specifies the enterprise project that the image belongs to.</p>
|
|
<ul id="EN-US_TOPIC_0092380109__ul76914342313"><li id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li06911382318">If the value is <strong id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_b842352706111949">0</strong> or left blank, the image belongs to the default enterprise project.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li186911342317">If the value is a UUID, the image belongs to the enterprise project corresponding to the UUID.<p id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_p13705743174014"><a name="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li186911342317"></a><a name="en-us_topic_0133188204_li186911342317"></a>For more information about enterprise projects and how to obtain enterprise project IDs, see <em id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_i119223321415">Enterprise Management User Guide</em>.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row1703703091128"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p3782220891128">max_ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p4369999891128">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p5003895391128">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p2662336891128">Specifies the maximum memory of the image in the unit of MB. This parameter is not configured by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row246785619125"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p528064539125">min_ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p494643019125">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p471854589125">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p639257399125">Specifies the minimum memory of the image in the unit of MB. The default value is <strong id="EN-US_TOPIC_0092380109__b84235270617155">0</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row95711988352"><td class="cellrowborder" valign="top" width="18.8%" headers="mcps1.3.6.2.1.3.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p85720810353">vault_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.6%" headers="mcps1.3.6.2.1.3.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p1857215815351">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.6.2.1.3.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p2572168163516">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.1.3.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p31220539487">Specifies the ID of the vault to which an <span id="EN-US_TOPIC_0092380109__text18567549182616"></span><span id="EN-US_TOPIC_0092380109__text3567549152617">ECS</span> is to be added or has been added.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p7355132910375">To create a full-ECS image from an ECS, create a backup from the ECS and then use the backup to create a full-ECS image. If a CBR backup is created, <strong id="EN-US_TOPIC_0092380109__b2793841175610">vault_id</strong> is mandatory. If a CSBS backup is created, <strong id="EN-US_TOPIC_0092380109__b1179517412566">vault_id</strong> is optional.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p1034181012293">You can obtain the vault ID from the CBR console or section "Querying the Vault List" in <em id="EN-US_TOPIC_0092380109__en-us_topic_0036994323_i361910498486">Cloud Backup and Recovery API Reference</em>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0092380109__li45508185194359">Parameters in the request body when a CSBS backup or CBR backup is used to create a full-ECS image
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0092380109__table6920488194359" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0092380109__row39939980194359"><th align="left" class="cellrowborder" valign="top" width="17.86%" id="mcps1.3.6.2.2.1.1.5.1.1"><p id="EN-US_TOPIC_0092380109__p13912942194359">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.91%" id="mcps1.3.6.2.2.1.1.5.1.2"><p id="EN-US_TOPIC_0092380109__p53206504194359">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="17.86%" id="mcps1.3.6.2.2.1.1.5.1.3"><p id="EN-US_TOPIC_0092380109__p14759587194359">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.370000000000005%" id="mcps1.3.6.2.2.1.1.5.1.4"><p id="EN-US_TOPIC_0092380109__p54675911194359">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0092380109__row66672634194359"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p31774311194359">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p23582388194359">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p31125257194359">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p38117903194359">Specifies the image name. For detailed description, see <a href="en-us_topic_0020091562.html#EN-US_TOPIC_0020091562__section61598810155254">Image Attributes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row58911100194359"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p7069805194359">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p35783334194359">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p12768976194359">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p27654163194359">Provides supplementary information about the image. For detailed description, see <a href="en-us_topic_0020091562.html#EN-US_TOPIC_0020091562__section61598810155254">Image Attributes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row47560877194359"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p27225799194359">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p57806093194359">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p51781993194359">Array of strings</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p187265217338">Lists the image tags. This parameter is left blank by default.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p672662143316">Use either <strong id="EN-US_TOPIC_0092380109__b109911545">tags</strong> or <strong id="EN-US_TOPIC_0092380109__b896207539">image_tags</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row14362188103319"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p15525181013316">image_tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p13525141093317">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p15525101013313">Array of objects</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p1552671016330">Lists the image tags. This parameter is left blank by default.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p1252611043314">Use either <strong id="EN-US_TOPIC_0092380109__b521025933317">tags</strong> or <strong id="EN-US_TOPIC_0092380109__b7211559183313">image_tags</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row38983230194359"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p46832185194431">backup_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p35310613194431">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p41587430194431">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p8871345154812">Specifies the CSBS backup ID or CBR backup ID.</p>
|
|
<div class="p" id="EN-US_TOPIC_0092380109__p96251131795">To obtain the CSBS backup ID, perform the following operations:<ol id="EN-US_TOPIC_0092380109__ol2385105535715"><li id="EN-US_TOPIC_0092380109__li13625031793">Log in to the management console.</li><li id="EN-US_TOPIC_0092380109__li16268311991">Under <strong id="EN-US_TOPIC_0092380109__b05263113304">Storage</strong>, click <strong id="EN-US_TOPIC_0092380109__b19997121713300">Cloud Server Backup Service</strong>.</li><li id="EN-US_TOPIC_0092380109__li1762620316915">In the backup list, expand details of the backup to obtain its ID.</li></ol>
|
|
</div>
|
|
<div class="p" id="EN-US_TOPIC_0092380109__p2052311410485">To obtain the CBR backup ID, perform the following operations:<ol id="EN-US_TOPIC_0092380109__ol857614611587"><li id="EN-US_TOPIC_0092380109__li8664429185119">Log in to the management console.</li><li id="EN-US_TOPIC_0092380109__li1664029155111">Under <strong id="EN-US_TOPIC_0092380109__b78532303118">Storage</strong>, click <strong id="EN-US_TOPIC_0092380109__b1586519353116">Cloud Backup and Recovery</strong>.</li><li id="EN-US_TOPIC_0092380109__li9664329105113">On the displayed <strong id="EN-US_TOPIC_0092380109__b4938635123312">Cloud Server Backup</strong> page, click the <strong id="EN-US_TOPIC_0092380109__b14359124703317">Backups</strong> tab and obtain the backup ID from the backup list.</li></ol>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row1123332233112"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p1374915258312">enterprise_project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p12749132511312">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p1774982510311">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p271614104011">Specifies the enterprise project that the image belongs to.</p>
|
|
<ul id="EN-US_TOPIC_0092380109__ul1210427122312"><li id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li06911382318_1">If the value is <strong id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_b842352706111949_1">0</strong> or left blank, the image belongs to the default enterprise project.</li><li id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li186911342317_1">If the value is a UUID, the image belongs to the enterprise project corresponding to the UUID.<p id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_p13705743174014_1"><a name="EN-US_TOPIC_0092380109__en-us_topic_0133188204_li186911342317_1"></a><a name="en-us_topic_0133188204_li186911342317_1"></a>For more information about enterprise projects and how to obtain enterprise project IDs, see <em id="EN-US_TOPIC_0092380109__en-us_topic_0133188204_i119223321415_1">Enterprise Management User Guide</em>.</p>
|
|
</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row98737391719"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p1286840291719">max_ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p3570762791719">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p663667391719">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p2403410391919">Specifies the maximum memory of the image in the unit of MB. This parameter is not configured by default.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row5694598992137"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p4922241692137">min_ram</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p2759277292137">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p2042202392137">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p4357120492137">Specifies the minimum memory of the image in the unit of MB. The default value is <strong id="EN-US_TOPIC_0092380109__b716193325">0</strong>, indicating that the memory is not restricted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row1754234783916"><td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.1 "><p id="EN-US_TOPIC_0092380109__p1454314763913">whole_image_type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.91%" headers="mcps1.3.6.2.2.1.1.5.1.2 "><p id="EN-US_TOPIC_0092380109__p954354710398">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="17.86%" headers="mcps1.3.6.2.2.1.1.5.1.3 "><p id="EN-US_TOPIC_0092380109__p154394717390">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.370000000000005%" headers="mcps1.3.6.2.2.1.1.5.1.4 "><p id="EN-US_TOPIC_0092380109__p754324718398">Specifies the method of creating a full-ECS image.</p>
|
|
<ul id="EN-US_TOPIC_0092380109__ul821018579100"><li id="EN-US_TOPIC_0092380109__li5210857191019">If a CBR backup is used to create a full-ECS image, this parameter is mandatory and the value must be <strong id="EN-US_TOPIC_0092380109__b139419303221">CBR</strong>. In this case, <strong id="EN-US_TOPIC_0092380109__b47331643102216">backup_id</strong> is the CBR backup ID.</li><li id="EN-US_TOPIC_0092380109__li19210657151016">If a CSBS backup is used to create a full-ECS image, this parameter can be left blank and the default value <strong id="EN-US_TOPIC_0092380109__b175261224152719">CSBS</strong> will be used. In this case, <strong id="EN-US_TOPIC_0092380109__b16497833122714">backup_id</strong> is the CSBS backup ID.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section18565113383114"><h4 class="sectiontitle">Example Request</h4><ul id="EN-US_TOPIC_0092380109__ul38095259194445"><li id="EN-US_TOPIC_0092380109__li1066710611747">Creating a full-ECS image with parameter <strong id="EN-US_TOPIC_0092380109__b5945528206">tags</strong> using an <span id="EN-US_TOPIC_0092380109__text16958122152012"></span><span id="EN-US_TOPIC_0092380109__text1296342142018">ECS</span> (ID: 877a2cda-ba63-4e1e-b95f-e67e48b6129a)<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0092380109__screen18854655194746"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span>
|
|
<span class="normal">11</span>
|
|
<span class="normal">12</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">POST</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{Endpoint}/v1/cloudimages/wholeimages/action</span>
|
|
<span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"name"</span><span class="p">:</span><span class="w"> </span><span class="s">"instance_whole_image"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"description"</span><span class="p">:</span><span class="w"> </span><span class="s">"creating an image from an ECS"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"instance_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"877a2cda-ba63-4e1e-b95f-e67e48b6129a"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"vault_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"de9fcf45-11b2-432c-8562-5c5428574600"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"tags"</span><span class="p">:</span><span class="w"> </span><span class="o">[</span>
|
|
<span class="w"> </span><span class="s">"aaa.111"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"bbb.333"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"ccc.444"</span>
|
|
<span class="w"> </span><span class="o">]</span>
|
|
<span class="p">}</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0092380109__li3312043147">Creating a full-ECS image with parameter <strong id="EN-US_TOPIC_0092380109__b1048892182115">image_tags</strong> using an <span id="EN-US_TOPIC_0092380109__text164891210219"></span><span id="EN-US_TOPIC_0092380109__text74897212213">ECS</span> (ID: 877a2cda-ba63-4e1e-b95f-e67e48b6129a)<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0092380109__screen20919642142329"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</span>
|
|
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">POST</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{Endpoint}/v1/cloudimages/wholeimages/action</span>
|
|
<span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"name"</span><span class="p">:</span><span class="w"> </span><span class="s">"instance_whole_image"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"description"</span><span class="p">:</span><span class="w"> </span><span class="s">"creating an image from an ECS"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"instance_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"877a2cda-ba63-4e1e-b95f-e67e48b6129a"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"vault_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"de9fcf45-11b2-432c-8562-5c5428574600"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"image_tags"</span><span class="p">:</span><span class="w"> </span><span class="o">[</span><span class="p">{</span><span class="s">"key"</span><span class="p">:</span><span class="s">"key2"</span><span class="p">,</span><span class="s">"value"</span><span class="p">:</span><span class="s">"value2"</span><span class="p">},{</span><span class="s">"key"</span><span class="p">:</span><span class="s">"key1"</span><span class="p">,</span><span class="s">"value"</span><span class="p">:</span><span class="s">"value1"</span><span class="p">}</span><span class="o">]</span>
|
|
<span class="p">}</span><span class="w"> </span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0092380109__li48641640195114">Creating a full-ECS image with parameter <strong id="EN-US_TOPIC_0092380109__b1785125017214">tags</strong> using aCSBS backup or CBR backup (ID: 9b27efab-4a17-4c06-bfa2-3e0cf021d3c3)<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0092380109__screen47590609195514"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal"> 1</span>
|
|
<span class="normal"> 2</span>
|
|
<span class="normal"> 3</span>
|
|
<span class="normal"> 4</span>
|
|
<span class="normal"> 5</span>
|
|
<span class="normal"> 6</span>
|
|
<span class="normal"> 7</span>
|
|
<span class="normal"> 8</span>
|
|
<span class="normal"> 9</span>
|
|
<span class="normal">10</span>
|
|
<span class="normal">11</span>
|
|
<span class="normal">12</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">POST</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{Endpoint}/v1/cloudimages/wholeimages/action</span>
|
|
<span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"name"</span><span class="p">:</span><span class="w"> </span><span class="s">"backup_whole_image"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"description"</span><span class="p">:</span><span class="w"> </span><span class="s">"Creating a full-ECS image from a CBR backup"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"backup_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"9b27efab-4a17-4c06-bfa2-3e0cf021d3c3"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"whole_image_type"</span><span class="p">:</span><span class="w"> </span><span class="s">"CBR"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"tags"</span><span class="p">:</span><span class="w"> </span><span class="o">[</span>
|
|
<span class="w"> </span><span class="s">"aaa.111"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"bbb.333"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"ccc.444"</span>
|
|
<span class="w"> </span><span class="o">]</span>
|
|
<span class="p">}</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0092380109__li14129371442">Creating a full-ECS image with parameter <strong id="EN-US_TOPIC_0092380109__b184281825220">image_tags</strong> using aCSBS backup or CBR backup (ID: 9b27efab-4a17-4c06-bfa2-3e0cf021d3c3)<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0092380109__screen16707609142329"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span>
|
|
<span class="normal">4</span>
|
|
<span class="normal">5</span>
|
|
<span class="normal">6</span>
|
|
<span class="normal">7</span>
|
|
<span class="normal">8</span></pre></div></td><td class="code"><div><pre><span></span><span class="n">POST</span><span class="w"> </span><span class="n">https</span><span class="p">:</span><span class="c1">//{Endpoint}/v1/cloudimages/wholeimages/action</span>
|
|
<span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"name"</span><span class="p">:</span><span class="w"> </span><span class="s">"backup_whole_image"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"description"</span><span class="p">:</span><span class="w"> </span><span class="s">"Creating a full-ECS image from a CBR backup"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"backup_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"9b27efab-4a17-4c06-bfa2-3e0cf021d3c3"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"whole_image_type"</span><span class="p">:</span><span class="w"> </span><span class="s">"CBR"</span><span class="p">,</span>
|
|
<span class="w"> </span><span class="s">"image_tags"</span><span class="p">:</span><span class="w"> </span><span class="o">[</span><span class="p">{</span><span class="s">"key"</span><span class="p">:</span><span class="s">"key2"</span><span class="p">,</span><span class="s">"value"</span><span class="p">:</span><span class="s">"value2"</span><span class="p">},{</span><span class="s">"key"</span><span class="p">:</span><span class="s">"key1"</span><span class="p">,</span><span class="s">"value"</span><span class="p">:</span><span class="s">"value1"</span><span class="p">}</span><span class="o">]</span>
|
|
<span class="p">}</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section56649665"><h4 class="sectiontitle">Response</h4><ul id="EN-US_TOPIC_0092380109__ul5650340811159"><li id="EN-US_TOPIC_0092380109__li3876862611159">Response parameters
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0092380109__table1337332211159" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0092380109__row1133156911159"><th align="left" class="cellrowborder" valign="top" width="23.84%" id="mcps1.3.8.2.1.1.1.4.1.1"><p id="EN-US_TOPIC_0092380109__p4544189211159">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="19.97%" id="mcps1.3.8.2.1.1.1.4.1.2"><p id="EN-US_TOPIC_0092380109__p556206921988">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="56.19%" id="mcps1.3.8.2.1.1.1.4.1.3"><p id="EN-US_TOPIC_0092380109__p5691464411159">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0092380109__row4668343211159"><td class="cellrowborder" valign="top" width="23.84%" headers="mcps1.3.8.2.1.1.1.4.1.1 "><p id="EN-US_TOPIC_0092380109__p2326164111159">job_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="19.97%" headers="mcps1.3.8.2.1.1.1.4.1.2 "><p id="EN-US_TOPIC_0092380109__p89821791988">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="56.19%" headers="mcps1.3.8.2.1.1.1.4.1.3 "><p id="EN-US_TOPIC_0092380109__p514473411159">Specifies the asynchronous job ID.</p>
|
|
<p id="EN-US_TOPIC_0092380109__p19968122117312">For details, see <a href="en-us_topic_0022473688.html">Querying the Status of an Asynchronous Job</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="EN-US_TOPIC_0092380109__li4519872011242">Example response<pre class="codeblock" id="EN-US_TOPIC_0092380109__codeblock6641838292551">STATUS CODE 200</pre>
|
|
<div class="codecoloring" codetype="Java" id="EN-US_TOPIC_0092380109__screen57817692534"><div class="highlight"><table class="highlighttable"><tr><td class="linenos"><div class="linenodiv"><pre><span class="normal">1</span>
|
|
<span class="normal">2</span>
|
|
<span class="normal">3</span></pre></div></td><td class="code"><div><pre><span></span><span class="p">{</span>
|
|
<span class="w"> </span><span class="s">"job_id"</span><span class="p">:</span><span class="w"> </span><span class="s">"4010a32b5f909853015f90aaa24b0015"</span>
|
|
<span class="p">}</span>
|
|
</pre></div></td></tr></table></div>
|
|
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="EN-US_TOPIC_0092380109__section40084941"><h4 class="sectiontitle">Returned Values</h4><ul id="EN-US_TOPIC_0092380109__ul4445458"><li id="EN-US_TOPIC_0092380109__li40009126">Normal<p id="EN-US_TOPIC_0092380109__p24537816"><a name="EN-US_TOPIC_0092380109__li40009126"></a><a name="li40009126"></a>200</p>
|
|
</li><li id="EN-US_TOPIC_0092380109__li19513753">Abnormal
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="EN-US_TOPIC_0092380109__table1069408417333" frame="border" border="1" rules="all"><thead align="left"><tr id="EN-US_TOPIC_0092380109__row4772021317333"><th align="left" class="cellrowborder" valign="top" width="46.54%" id="mcps1.3.9.2.2.1.1.3.1.1"><p id="EN-US_TOPIC_0092380109__p4013206717333">Returned Value</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="53.459999999999994%" id="mcps1.3.9.2.2.1.1.3.1.2"><p id="EN-US_TOPIC_0092380109__p2947196917333">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="EN-US_TOPIC_0092380109__row3841925517333"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p2495195017333">400 Bad Request</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p784206117333">Request error. For details about the returned error code, see <a href="en-us_topic_0022473689.html">Error Codes</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row3122722917333"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p4637763817333">401 Unauthorized</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p6560116717333">Authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row5353959117333"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p4173958717333">403 Forbidden</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p2546341217333">You do not have the rights to perform the operation.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row5197513192250"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p21898657192252">404 Not Found</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p28960832192252">The requested resource was not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row2784412417333"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p4078159117333">500 Internal Server Error</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p1497458717333">Internal service error.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="EN-US_TOPIC_0092380109__row55355517333"><td class="cellrowborder" valign="top" width="46.54%" headers="mcps1.3.9.2.2.1.1.3.1.1 "><p id="EN-US_TOPIC_0092380109__p4483799017333">503 Service Unavailable</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="53.459999999999994%" headers="mcps1.3.9.2.2.1.1.3.1.2 "><p id="EN-US_TOPIC_0092380109__p799858217333">The service is unavailable.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0135460761.html">Image</a></div>
|
|
</div>
|
|
</div>
|
|
|