forked from docs/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>
123 lines
11 KiB
HTML
123 lines
11 KiB
HTML
<a name="en-us_topic_0037365603"></a><a name="en-us_topic_0037365603"></a>
|
|
|
|
<h1 class="topictitle1">Changing DB Instance Specifications</h1>
|
|
<div id="body1473237538157"><div class="section" id="en-us_topic_0037365603__section4850156117316"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0037365603__p3631239417316">This API is used to change DB instance specifications.</p>
|
|
<div class="notice" id="en-us_topic_0037365603__note1582824921410"><span class="noticetitle"><img src="public_sys-resources/notice_3.0-en-us.png"> </span><div class="noticebody"><p id="en-us_topic_0037365603__p757016191831">Services will be interrupted for 5 to 10 minutes when you change DB instance specifications. Exercise caution when performing this operation.</p>
|
|
</div></div>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0037365603__section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="en-us_topic_0037365603__ul3084351717316"><li id="en-us_topic_0037365603__li915620217316">URI format<p id="en-us_topic_0037365603__p2567371617050"><a name="en-us_topic_0037365603__li915620217316"></a><a name="li915620217316"></a>PATH: /rds/v1/{project_id}/instances/{instanceId}/action</p>
|
|
<p id="en-us_topic_0037365603__p26369847154634">Method: POST</p>
|
|
</li><li id="en-us_topic_0037365603__li15430535">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0037365603__table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0037365603__row60083059"><th align="left" class="cellrowborder" valign="top" width="21.3%" id="mcps1.3.2.2.2.1.2.4.1.1"><p id="en-us_topic_0037365603__p34889605"><strong id="en-us_topic_0037365603__b842352706102328_1">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="28.08%" id="mcps1.3.2.2.2.1.2.4.1.2"><p id="en-us_topic_0037365603__p7485743"><strong id="en-us_topic_0037365603__b842352706102346_1">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="50.62%" id="mcps1.3.2.2.2.1.2.4.1.3"><p id="en-us_topic_0037365603__p2365466"><strong id="en-us_topic_0037365603__b842352706163417_1">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0037365603__row57385070"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="en-us_topic_0037365603__p17679057">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.08%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="en-us_topic_0037365603__p22717550">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.62%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="en-us_topic_0037365603__p57877484163525">Specifies the project ID of a tenant in a region.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="en-us_topic_0037365603__row2864326155157"><td class="cellrowborder" valign="top" width="21.3%" headers="mcps1.3.2.2.2.1.2.4.1.1 "><p id="en-us_topic_0037365603__p41557789155220">instanceId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="28.08%" headers="mcps1.3.2.2.2.1.2.4.1.2 "><p id="en-us_topic_0037365603__p10737742155220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="50.62%" headers="mcps1.3.2.2.2.1.2.4.1.3 "><p id="en-us_topic_0037365603__p7417132564016">Specifies the primary node ID of the DB instance.</p>
|
|
<div class="note" id="en-us_topic_0037365603__note18250133224019"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="en-us_topic_0037365603__p142501332164011">This field is not the DB instance ID. You are advised to use API v3 and the DB instance ID to perform related operations.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li><li id="en-us_topic_0037365603__li61827782155332">Restrictions<ol id="en-us_topic_0037365603__ol51058783111130"><li id="en-us_topic_0037365603__li44896577111130">The new specifications cannot be the same as the original specifications.</li><li id="en-us_topic_0037365603__li34047477213920">The instance class can be modified only for DB instances whose status is <strong id="en-us_topic_0037365603__b842352706978">Available</strong>.</li></ol>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0037365603__section3074340117316"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0037365603__ul5099287616954"><li id="en-us_topic_0037365603__li5628270116954">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0037365603__table3678226816954" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0037365603__row1340482316954"><th align="left" class="cellrowborder" valign="top" width="24.122412241224122%" id="mcps1.3.3.2.1.1.2.4.1.1"><p id="en-us_topic_0037365603__p1204887716954"><strong id="en-us_topic_0037365603__b842352706102328_3">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.544254425442546%" id="mcps1.3.3.2.1.1.2.4.1.2"><p id="en-us_topic_0037365603__p3643495116954"><strong id="en-us_topic_0037365603__b842352706164541_1">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.2.1.1.2.4.1.3"><p id="en-us_topic_0037365603__p6554990116954"><strong id="en-us_topic_0037365603__b842352706163417_5">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0037365603__row794180116954"><td class="cellrowborder" valign="top" width="24.122412241224122%" headers="mcps1.3.3.2.1.1.2.4.1.1 "><p id="en-us_topic_0037365603__p3930611216954">resize</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.544254425442546%" headers="mcps1.3.3.2.1.1.2.4.1.2 "><p id="en-us_topic_0037365603__p2967852416954">Dictionary data structure. For details, see <a href="#en-us_topic_0037365603__table5971833216954">Table 3</a>.</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.2.1.1.2.4.1.3 "><p id="en-us_topic_0037365603__p3798745816954">Specifies the information about the returned parameter <strong id="en-us_topic_0037365603__b842352706113940">flavorRef</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="en-us_topic_0037365603__table5971833216954"></a><a name="table5971833216954"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0037365603__table5971833216954" frame="border" border="1" rules="all"><caption><b>Table 3 </b>resize field data structure description</caption><thead align="left"><tr id="en-us_topic_0037365603__row3797548116954"><th align="left" class="cellrowborder" valign="top" width="24.5%" id="mcps1.3.3.2.1.2.2.4.1.1"><p id="en-us_topic_0037365603__p5611509816954"><strong id="en-us_topic_0037365603__b842352706102328_5">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.17%" id="mcps1.3.3.2.1.2.2.4.1.2"><p id="en-us_topic_0037365603__p4902912116954"><strong id="en-us_topic_0037365603__b842352706164541_3">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33%" id="mcps1.3.3.2.1.2.2.4.1.3"><p id="en-us_topic_0037365603__p1193582716954"><strong id="en-us_topic_0037365603__b842352706163417_7">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0037365603__row2727794616954"><td class="cellrowborder" valign="top" width="24.5%" headers="mcps1.3.3.2.1.2.2.4.1.1 "><p id="en-us_topic_0037365603__p23854016161336">flavorRef</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.17%" headers="mcps1.3.3.2.1.2.2.4.1.2 "><p id="en-us_topic_0037365603__p5837783016954">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33%" headers="mcps1.3.3.2.1.2.2.4.1.3 "><p id="en-us_topic_0037365603__p50035813161416">Specifies the specification ID (<strong id="en-us_topic_0037365603__b84235270621110">flavors.id</strong> in the response message in section <a href="en-us_topic_0032347783.html">Obtaining All DB Instance Specifications</a>).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0037365603__ul1041877316954"><li id="en-us_topic_0037365603__li2666010016954">Request example<pre class="codeblock" id="en-us_topic_0037365603__codeblock57848163174212">{
|
|
"resize":{
|
|
"flavorRef":"0d922098-553c-4123-80df-e627a1d41a0d"
|
|
}
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0037365603__section28521534113742"><h4 class="sectiontitle">Normal Response</h4><ul id="en-us_topic_0037365603__ul12573920"><li id="en-us_topic_0037365603__li46056421">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0037365603__table32267243" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Parameter description</caption><thead align="left"><tr id="en-us_topic_0037365603__row9230088"><th align="left" class="cellrowborder" valign="top" width="24.122412241224122%" id="mcps1.3.4.2.1.1.2.4.1.1"><p id="en-us_topic_0037365603__p9439626"><strong id="en-us_topic_0037365603__b842352706102328_7">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="42.544254425442546%" id="mcps1.3.4.2.1.1.2.4.1.2"><p id="en-us_topic_0037365603__p26412257"><strong id="en-us_topic_0037365603__b842352706164541_5">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.4.2.1.1.2.4.1.3"><p id="en-us_topic_0037365603__p59018101"><strong id="en-us_topic_0037365603__b842352706163417_9">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="en-us_topic_0037365603__row15736877"><td class="cellrowborder" valign="top" width="24.122412241224122%" headers="mcps1.3.4.2.1.1.2.4.1.1 "><p id="en-us_topic_0037365603__p66727538">jobId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="42.544254425442546%" headers="mcps1.3.4.2.1.1.2.4.1.2 "><p id="en-us_topic_0037365603__p36221483">List data structure</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.4.2.1.1.2.4.1.3 "><p id="en-us_topic_0037365603__p48259009">Indicates the jobId information.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="en-us_topic_0037365603__ul16665627"><li id="en-us_topic_0037365603__li15772917">Response example<pre class="codeblock" id="en-us_topic_0037365603__codeblock660937479172">{
|
|
"jobId": [
|
|
"ff8080815703e6de015703e98504001a"
|
|
]
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="en-us_topic_0037365603__section51597550"><h4 class="sectiontitle">Abnormal Response</h4><p id="en-us_topic_0037365603__p28475059">For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rds_06_0016.html">DB Instance Management</a></div>
|
|
</div>
|
|
</div>
|
|
|