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>
117 lines
12 KiB
HTML
117 lines
12 KiB
HTML
<a name="rds_05_0015"></a><a name="rds_05_0015"></a>
|
|
|
|
<h1 class="topictitle1">Migrating a Standby DB Instance</h1>
|
|
<div id="body32001227"><div class="section" id="rds_05_0015__en-us_topic_0231893215_section10502114133410"><h4 class="sectiontitle">Function</h4><p id="rds_05_0015__en-us_topic_0231893215_p19142153232816">This API is used to migrate a standby DB instance based on service requirements.</p>
|
|
<ul id="rds_05_0015__en-us_topic_0231893215_ul12259155218373"><li id="rds_05_0015__en-us_topic_0231893215_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_0015__en-us_topic_0231893215_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_0015__en-us_topic_0231893215_section9207631102915"><h4 class="sectiontitle">Constraints</h4><ul id="rds_05_0015__en-us_topic_0231893215_ul1475927123418"><li id="rds_05_0015__en-us_topic_0231893215_li446114114503">This API is supported for MySQL and PostgreSQL.</li><li id="rds_05_0015__en-us_topic_0231893215_li086315304342">This API is supported for primary/standby DB instances only.</li><li id="rds_05_0015__en-us_topic_0231893215_li747532753417">The standby DB instance cannot be migrated if the primary DB instance is in any of the following statuses: creating, rebooting, upgrading, changing instance class, changing port, creating users, or deleting users.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0015__en-us_topic_0231893215_section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="rds_05_0015__en-us_topic_0231893215_ul53354139141429"><li id="rds_05_0015__en-us_topic_0231893215_li1270098217262">URI format<p id="rds_05_0015__en-us_topic_0231893215_p30251930154721"><a name="rds_05_0015__en-us_topic_0231893215_li1270098217262"></a><a name="en-us_topic_0231893215_li1270098217262"></a>POST https://{<em id="rds_05_0015__en-us_topic_0231893215_i2475051121512">Endpoint</em>}/v3/{<em id="rds_05_0015__en-us_topic_0231893215_i148911057155316">project_id</em>}/instances/{<em id="rds_05_0015__en-us_topic_0231893215_i923712547">instance_id</em>}/migrateslave</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0015__en-us_topic_0231893215_ul49831254144655"><li id="rds_05_0015__en-us_topic_0231893215_li15430535">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0015__en-us_topic_0231893215_table4657088" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0015__en-us_topic_0231893215_row60083059"><th align="left" class="cellrowborder" valign="top" width="20.93%" id="mcps1.3.3.3.1.1.2.4.1.1"><p id="rds_05_0015__en-us_topic_0231893215_p34889605"><strong id="rds_05_0015__en-us_topic_0231893215_b67141229389">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="16.6%" id="mcps1.3.3.3.1.1.2.4.1.2"><p id="rds_05_0015__en-us_topic_0231893215_p7485743"><strong id="rds_05_0015__en-us_topic_0231893215_b196010215381">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_0015__en-us_topic_0231893215_p2365466"><strong id="rds_05_0015__en-us_topic_0231893215_b93781331389">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0015__en-us_topic_0231893215_row57385070"><td class="cellrowborder" valign="top" width="20.93%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_05_0015__en-us_topic_0231893215_p17679057">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.6%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_05_0015__en-us_topic_0231893215_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_0015__en-us_topic_0231893215_p28182251">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_05_0015__en-us_topic_0231893215_p14611855135510">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_0015__en-us_topic_0231893215_row2864326155157"><td class="cellrowborder" valign="top" width="20.93%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_05_0015__en-us_topic_0231893215_p41557789155220">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="16.6%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_05_0015__en-us_topic_0231893215_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_0015__en-us_topic_0231893215_p64450739155220">Specifies the DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0015__en-us_topic_0231893215_section3074340117316"><h4 class="sectiontitle">Request</h4><ul id="rds_05_0015__en-us_topic_0231893215_ul5099287616954"><li id="rds_05_0015__en-us_topic_0231893215_li5628270116954">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0015__en-us_topic_0231893215_table11236435" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_05_0015__en-us_topic_0231893215_row61525259"><th align="left" class="cellrowborder" valign="top" width="18.110000000000003%" id="mcps1.3.4.2.1.1.2.5.1.1"><p id="rds_05_0015__en-us_topic_0231893215_p17490046"><strong id="rds_05_0015__en-us_topic_0231893215_b16822201120386">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.500000000000004%" id="mcps1.3.4.2.1.1.2.5.1.2"><p id="rds_05_0015__en-us_topic_0231893215_p7407659"><strong id="rds_05_0015__en-us_topic_0231893215_b414711120381">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="18.71%" id="mcps1.3.4.2.1.1.2.5.1.3"><p id="rds_05_0015__en-us_topic_0231893215_p63149496"><strong id="rds_05_0015__en-us_topic_0231893215_b1748581216381">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44.68%" id="mcps1.3.4.2.1.1.2.5.1.4"><p id="rds_05_0015__en-us_topic_0231893215_p14835533"><strong id="rds_05_0015__en-us_topic_0231893215_b1085341216388">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0015__en-us_topic_0231893215_row60827539"><td class="cellrowborder" valign="top" width="18.110000000000003%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="rds_05_0015__en-us_topic_0231893215_p28083633">nodeId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.500000000000004%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="rds_05_0015__en-us_topic_0231893215_p60181840">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.71%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="rds_05_0015__en-us_topic_0231893215_p42890904">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.68%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="rds_05_0015__en-us_topic_0231893215_p0789883117">Specifies the ID of the standby DB instance.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_05_0015__en-us_topic_0231893215_row2960720264"><td class="cellrowborder" valign="top" width="18.110000000000003%" headers="mcps1.3.4.2.1.1.2.5.1.1 "><p id="rds_05_0015__en-us_topic_0231893215_p396082152616">azCode</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.500000000000004%" headers="mcps1.3.4.2.1.1.2.5.1.2 "><p id="rds_05_0015__en-us_topic_0231893215_p89605222613">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="18.71%" headers="mcps1.3.4.2.1.1.2.5.1.3 "><p id="rds_05_0015__en-us_topic_0231893215_p496032142617">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44.68%" headers="mcps1.3.4.2.1.1.2.5.1.4 "><p id="rds_05_0015__en-us_topic_0231893215_p10960132112616">Specifies the code of the AZ to which the standby DB instance is to be migrated.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_05_0015__ul2061312524356"><li id="rds_05_0015__li4411135064210">Example<p id="rds_05_0015__p1454414211213"><a name="rds_05_0015__li4411135064210"></a><a name="li4411135064210"></a>POST https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/instances/dsfae23fsfdsae3435in01/migrateslave</p>
|
|
</li></ul>
|
|
<ul id="rds_05_0015__en-us_topic_0231893215_ul18318676175816"><li id="rds_05_0015__en-us_topic_0231893215_li30650356175816">Request example<pre class="codeblock" id="rds_05_0015__en-us_topic_0231893215_codeblock26701898174649">{
|
|
"nodeId": "0119b1068b874cb4a5202989a06b6094no01",
|
|
"azCode": "az2xahz"
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_05_0015__en-us_topic_0231893215_section28521534113742"><h4 class="sectiontitle">Response</h4><ul id="rds_05_0015__en-us_topic_0231893215_ul12573920"><li id="rds_05_0015__en-us_topic_0231893215_li46056421">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_05_0015__en-us_topic_0231893215_table394616341361" frame="border" border="1" rules="all"><thead align="left"><tr id="rds_05_0015__en-us_topic_0231893215_row69478341366"><th align="left" class="cellrowborder" valign="top" width="25.1%" id="mcps1.3.5.2.1.1.1.3.1.1"><p id="rds_05_0015__en-us_topic_0231893215_p69471134123611"><strong id="rds_05_0015__en-us_topic_0231893215_b102614812415">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="74.9%" id="mcps1.3.5.2.1.1.1.3.1.2"><p id="rds_05_0015__en-us_topic_0231893215_p159479347366"><strong id="rds_05_0015__en-us_topic_0231893215_b34298972413">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_05_0015__en-us_topic_0231893215_row14947193443620"><td class="cellrowborder" valign="top" width="25.1%" headers="mcps1.3.5.2.1.1.1.3.1.1 "><p id="rds_05_0015__en-us_topic_0231893215_p1994703413361">workflowId</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="74.9%" headers="mcps1.3.5.2.1.1.1.3.1.2 "><p id="rds_05_0015__en-us_topic_0231893215_p2947934123610">Indicates the workflow ID.</p>
|
|
<p id="rds_05_0015__p1145784310228">For details about how to query this parameter, see <a href="rds_01_0009.html">Obtaining Task Information</a>.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="rds_05_0015__en-us_topic_0231893215_ul16665627"><li id="rds_05_0015__en-us_topic_0231893215_li15772917">Example normal response<pre class="codeblock" id="rds_05_0015__en-us_topic_0231893215_codeblock314170531760">{
|
|
"workflowId":"7b55d6ca-dc8e-4844-a9da-6c53a1506db3"
|
|
}</pre>
|
|
</li><li id="rds_05_0015__en-us_topic_0231893215_li68218279114">Abnormal response<p id="rds_05_0015__en-us_topic_0231893215_p28475059"><a name="rds_05_0015__en-us_topic_0231893215_li68218279114"></a><a name="en-us_topic_0231893215_li68218279114"></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_0015__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_05_0015__en-us_topic_0032347778_ul7858132212142"><li id="rds_05_0015__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_05_0015__en-us_topic_0032347778_p1040982941020"><a name="rds_05_0015__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_05_0015__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_05_0015__en-us_topic_0032347778_p0723374409"><a name="rds_05_0015__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_0015__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_05_0015__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>
|
|
|