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>
91 lines
9.1 KiB
HTML
91 lines
9.1 KiB
HTML
<a name="rds_05_0005"></a><a name="rds_05_0005"></a>
|
|
|
|
<h1 class="topictitle1">Changing a DB Instance Name</h1>
|
|
<div id="body32001227"><div class="section" id="rds_05_0005__en-us_topic_0293125646_section4850156117316"><h4 class="sectiontitle">Function</h4><p id="rds_05_0005__en-us_topic_0293125646_p5753583532">This API is used to change a DB instance name.</p>
|
|
<ul id="rds_05_0005__en-us_topic_0293125646_ul12259155218373"><li id="rds_05_0005__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_0005__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_0005__en-us_topic_0293125646_section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="rds_05_0005__en-us_topic_0293125646_ul53354139141429"><li id="rds_05_0005__en-us_topic_0293125646_li1270098217262">URI format<p id="rds_05_0005__en-us_topic_0293125646_p66079617141421"><a name="rds_05_0005__en-us_topic_0293125646_li1270098217262"></a><a name="en-us_topic_0293125646_li1270098217262"></a>PUT https://{<em id="rds_05_0005__en-us_topic_0293125646_i86129260155">Endpoint</em>}/v3/{project_id}/instances/{instance_id}/name</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0005__en-us_topic_0293125646_ul49831254144655"><li id="rds_05_0005__en-us_topic_0293125646_li15430535">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0005__en-us_topic_0293125646_table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0005__en-us_topic_0293125646_row60083059"><th align="left" class="cellrowborder" valign="top" width="20.979999999999997%" id="mcps1.3.2.3.1.1.2.4.1.1"><p id="rds_05_0005__en-us_topic_0293125646_p34889605">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.55%" id="mcps1.3.2.3.1.1.2.4.1.2"><p id="rds_05_0005__en-us_topic_0293125646_p7485743">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="62.470000000000006%" id="mcps1.3.2.3.1.1.2.4.1.3"><p id="rds_05_0005__en-us_topic_0293125646_p2365466">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0005__en-us_topic_0293125646_row57385070"><td class="cellrowborder" valign="top" width="20.979999999999997%" headers="mcps1.3.2.3.1.1.2.4.1.1 "><p id="rds_05_0005__en-us_topic_0293125646_p17679057">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.55%" headers="mcps1.3.2.3.1.1.2.4.1.2 "><p id="rds_05_0005__en-us_topic_0293125646_p22717550">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.470000000000006%" headers="mcps1.3.2.3.1.1.2.4.1.3 "><p id="rds_05_0005__en-us_topic_0293125646_p28182251">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_05_0005__en-us_topic_0293125646_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_0005__en-us_topic_0293125646_row2864326155157"><td class="cellrowborder" valign="top" width="20.979999999999997%" headers="mcps1.3.2.3.1.1.2.4.1.1 "><p id="rds_05_0005__en-us_topic_0293125646_p41557789155220">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.55%" headers="mcps1.3.2.3.1.1.2.4.1.2 "><p id="rds_05_0005__en-us_topic_0293125646_p10737742155220">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="62.470000000000006%" headers="mcps1.3.2.3.1.1.2.4.1.3 "><p id="rds_05_0005__en-us_topic_0293125646_p981962520456">Specifies the DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0005__en-us_topic_0293125646_section3074340117316"><h4 class="sectiontitle">Request</h4><ul id="rds_05_0005__en-us_topic_0293125646_ul5099287616954"><li id="rds_05_0005__en-us_topic_0293125646_li5628270116954">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0005__en-us_topic_0293125646_table11236435" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0005__en-us_topic_0293125646_row61525259"><th align="left" class="cellrowborder" valign="top" width="18.110000000000003%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="rds_05_0005__en-us_topic_0293125646_p17490046">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.500000000000004%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="rds_05_0005__en-us_topic_0293125646_p7407659">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.71%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="rds_05_0005__en-us_topic_0293125646_p63149496">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.68%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="rds_05_0005__en-us_topic_0293125646_p14835533">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0005__en-us_topic_0293125646_row60827539"><td class="cellrowborder" valign="top" width="18.110000000000003%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="rds_05_0005__en-us_topic_0293125646_p28083633">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.500000000000004%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="rds_05_0005__en-us_topic_0293125646_p60181840">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.71%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="rds_05_0005__en-us_topic_0293125646_p42890904">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.68%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="rds_05_0005__en-us_topic_0293125646_p13882179385">Specifies the DB instance name.</p>
|
|
<p id="rds_05_0005__en-us_topic_0293125646_p51611184">DB instances of the same type can have same names under the same tenant.</p>
|
|
<p id="rds_05_0005__p199821312919">The parameter must be 4 to 64 characters long, start with a letter, and contain only letters (case-sensitive), digits, hyphens (-), and underscores (_).</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_05_0005__ul97561628142314"><li id="rds_05_0005__li4411135064210">Example<p id="rds_05_0005__p1454414211213"><a name="rds_05_0005__li4411135064210"></a><a name="li4411135064210"></a>PUT https://rds.eu-de.otc.t-systems.com/v3/054ea741f700d4a32f1bc00f5c80dd4c/instances/5b409baece064984a1b3eef6addae50cin01/name</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0005__en-us_topic_0293125646_ul18318676175816"><li id="rds_05_0005__en-us_topic_0293125646_li30650356175816">Request example<pre class="codeblock" id="rds_05_0005__en-us_topic_0293125646_codeblock26701898174649">{
|
|
"name": "Test_2345674"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0005__en-us_topic_0293125646_section28521534113742"><h4 class="sectiontitle">Response</h4><ul id="rds_05_0005__en-us_topic_0293125646_ul12573920"><li id="rds_05_0005__en-us_topic_0293125646_li46056421">Normal response<p id="rds_05_0005__en-us_topic_0293125646_p4989115420592"><a name="rds_05_0005__en-us_topic_0293125646_li46056421"></a><a name="en-us_topic_0293125646_li46056421"></a>None</p>
|
|
</li></ul>
|
|
</div>
|
|
<ul id="rds_05_0005__en-us_topic_0293125646_ul16665627"><li id="rds_05_0005__en-us_topic_0293125646_li15772917">Example normal response<p id="rds_05_0005__en-us_topic_0293125646_p97052464108"><a name="rds_05_0005__en-us_topic_0293125646_li15772917"></a><a name="en-us_topic_0293125646_li15772917"></a>None</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0005__en-us_topic_0293125646_ul26818564"><li id="rds_05_0005__en-us_topic_0293125646_li33014451514">Abnormal response<p id="rds_05_0005__en-us_topic_0293125646_en-us_topic_0110967248_p014165512396"><a name="rds_05_0005__en-us_topic_0293125646_li33014451514"></a><a name="en-us_topic_0293125646_li33014451514"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
<div class="section" id="rds_05_0005__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_05_0005__en-us_topic_0032347778_ul7858132212142"><li id="rds_05_0005__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_05_0005__en-us_topic_0032347778_p1040982941020"><a name="rds_05_0005__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_05_0005__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_05_0005__en-us_topic_0032347778_p0723374409"><a name="rds_05_0005__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_0005__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_05_0005__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>
|
|
|