forked from laiweijian4/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com> Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
86 lines
11 KiB
HTML
86 lines
11 KiB
HTML
<a name="rds_05_0026"></a><a name="rds_05_0026"></a>
|
|
|
|
<h1 class="topictitle1">Starting an Instance</h1>
|
|
<div id="body0000001372466429"><div class="section" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_section4850156117316"><h4 class="sectiontitle">Function</h4><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p5753583532">This API is used to start a DB instance. You can stop your instance temporarily to save money. After stopping your instance, you can restart it to begin using it again.</p>
|
|
<ul id="rds_05_0026__en-us_topic_0293125646_ul12259155218373"><li id="rds_05_0026__en-us_topic_0293125646_en-us_topic_0110967248_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_05_0026__en-us_topic_0293125646_en-us_topic_0110967248_li1991981933613">Before calling this API, obtain the required <a href="https://docs.otc.t-systems.com/en-us/endpoint/index.html" target="_blank" rel="noopener noreferrer">region and endpoint</a>.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_section8749123851810"><h4 class="sectiontitle">Constraints</h4><ul id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_ul034553812137"><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001269177305_li11986203514101">This API is supported for MySQL and PostgreSQL DB engines.</li><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li5345123810134">If you start a primary instance, read replicas (if there are any) will also be started.</li><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li934553815134">Only instances in <strong id="rds_05_0026__en-us_topic_0000001270093533_b9877174418187">Stopped</strong> state can be started.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_ul53354139141429"><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li1270098217262">URI format<p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p66079617141421"><a name="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li1270098217262"></a><a name="en-us_topic_0000001270093533_en-us_topic_0000001255144633_li1270098217262"></a>POST https://{<em id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_i86129260155">Endpoint</em>}/v3/{project_id}/instances/{instance_id}/action/startup</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_ul49831254144655"><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li15430535">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_row60083059"><th align="left" class="cellrowborder" valign="top" width="20.979999999999997%" id="mcps1.3.3.3.1.1.2.4.1.1"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p34889605"><strong id="rds_05_0026__en-us_topic_0000001270093533_b66991758192">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.55%" id="mcps1.3.3.3.1.1.2.4.1.2"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p7485743"><strong id="rds_05_0026__en-us_topic_0000001270093533_b72662718190">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.470000000000006%" id="mcps1.3.3.3.1.1.2.4.1.3"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p2365466"><strong id="rds_05_0026__en-us_topic_0000001270093533_b155669841911">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_row57385070"><td class="cellrowborder" valign="top" width="20.979999999999997%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p17679057">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.55%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p22717550">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.470000000000006%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p28182251">Project ID of a tenant in a region.</p>
|
|
<p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p181691757183820">For details about how to obtain the project ID, see <a href="rds_03_0002.html">Obtaining a Project ID</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_row2864326155157"><td class="cellrowborder" valign="top" width="20.979999999999997%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p41557789155220">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.55%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p10737742155220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.470000000000006%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p981962520456">Instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__en-us_topic_0000001255144633_section3074340117316"><h4 class="sectiontitle">Request</h4><ul id="rds_05_0026__en-us_topic_0000001255144633_ul19618193651111"><li id="rds_05_0026__en-us_topic_0000001255144633_li16189364119">Parameter description<p id="rds_05_0026__en-us_topic_0000001255144633_p185221257337"><a name="rds_05_0026__en-us_topic_0000001255144633_li16189364119"></a><a name="en-us_topic_0000001255144633_li16189364119"></a>None</p>
|
|
</li><li id="rds_05_0026__en-us_topic_0000001255144633_li4411135064210">Example<p id="rds_05_0026__en-us_topic_0000001255144633_p1454414211213"><a name="rds_05_0026__en-us_topic_0000001255144633_li4411135064210"></a><a name="en-us_topic_0000001255144633_li4411135064210"></a>POST https://rds.eu-de.otc.t-systems.com/v3/054ea741f700d4a32f1bc00f5c80dd4c/instances/5b409baece064984a1b3eef6addae50cin01/action/startup</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0026__en-us_topic_0000001255144633_ul9619143618117"><li id="rds_05_0026__en-us_topic_0000001255144633_li461923631120">Request example<pre class="codeblock" id="rds_05_0026__en-us_topic_0000001255144633_codeblock06198367118">{}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_section28521534113742"><h4 class="sectiontitle">Response</h4><ul id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_ul5817813181213"><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li17817513161216">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_table32267243" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_row9230088"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.5.2.1.1.2.4.1.1"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p9439626"><strong id="rds_05_0026__en-us_topic_0000001270093533_b1888911588198">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.5.2.1.1.2.4.1.2"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p26412257"><strong id="rds_05_0026__en-us_topic_0000001270093533_b529640152011">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.5.2.1.1.2.4.1.3"><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p59018101"><strong id="rds_05_0026__en-us_topic_0000001270093533_b8648176192015">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_row15736877"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p66727538">job_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p36221483">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_p48259009">Job ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_ul1595619589111"><li id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_li13817101381220">Example normal response<pre class="codeblock" id="rds_05_0026__en-us_topic_0000001270093533_en-us_topic_0000001255144633_codeblock314170531760">{
|
|
"job_id": "2b414788a6004883a02390e2eb0ea227"
|
|
}</pre>
|
|
</li></ul>
|
|
<ul id="rds_05_0026__en-us_topic_0000001270093533_ul26818564"><li id="rds_05_0026__en-us_topic_0000001270093533_li33014451514">Abnormal response<p id="rds_05_0026__en-us_topic_0110967248_p014165512396"><a name="rds_05_0026__en-us_topic_0000001270093533_li33014451514"></a><a name="en-us_topic_0000001270093533_li33014451514"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_05_0026__en-us_topic_0032347778_ul7858132212142"><li id="rds_05_0026__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_05_0026__en-us_topic_0032347778_p1040982941020"><a name="rds_05_0026__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_05_0026__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_05_0026__en-us_topic_0032347778_p0723374409"><a name="rds_05_0026__en-us_topic_0032347778_li11583183218149"></a><a name="en-us_topic_0032347778_li11583183218149"></a>For details, see <a href="en-us_topic_0032488240.html">Status Codes</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0026__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_05_0026__en-us_topic_0032347778_p19357163913406">For details, see <a href="en-us_topic_0032488241.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0056887470.html">DB Instance Management</a></div>
|
|
</div>
|
|
</div>
|
|
|