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>
488 lines
35 KiB
HTML
488 lines
35 KiB
HTML
<a name="rds_01_0009"></a><a name="rds_01_0009"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining Task Information</h1>
|
|
<div id="body1535613843473"><div class="section" id="rds_01_0009__section6603527917262"><h4 class="sectiontitle">Function</h4><p id="rds_01_0009__p4725737717262">This API is used to obtain task information of the task center.</p>
|
|
<ul id="rds_01_0009__ul12259155218373"><li id="rds_01_0009__en-us_topic_0240111818_li836513175363">Before calling an API, you need to understand the API in <a href="rds_03_0001.html">Authentication</a>.</li><li id="rds_01_0009__en-us_topic_0240111818_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_01_0009__section1995103535418"><h4 class="sectiontitle">Constraints</h4><ul id="rds_01_0009__ul66159397195852"><li id="rds_01_0009__li10368133064214">RDS jobs are asynchronous. After a job is generated, it takes several seconds to query the job ID.</li><li id="rds_01_0009__li2772628195851">This API is used to query only asynchronous tasks in the task center within one month.</li><li id="rds_01_0009__li0583183318127">Information of the following asynchronous tasks can be obtained: creating single or primary/standby DB instances, creating read replicas, changing single DB instances to primary/standby instances, switching primary/standby DB instances, scaling up storage space, and binding or unbinding EIPs.</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_01_0009__section47568069103438"><h4 class="sectiontitle">URI</h4><ul id="rds_01_0009__ul16391217184115"><li id="rds_01_0009__li363951734111">URI format<p id="rds_01_0009__p1363971724110"><a name="rds_01_0009__li363951734111"></a><a name="li363951734111"></a>GET https://{<em id="rds_01_0009__i155911241191710">Endpoint</em>}/v3/{project_id}/jobs?id={id}</p>
|
|
</li></ul>
|
|
<ul id="rds_01_0009__ul27808384103438"><li id="rds_01_0009__li48916315103438">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table37593651103438" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="rds_01_0009__row58913670103438"><th align="left" class="cellrowborder" valign="top" width="23.45%" id="mcps1.3.3.3.1.1.2.4.1.1"><p id="rds_01_0009__p7277976103438"><strong id="rds_01_0009__b755175182210">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="29.360000000000003%" id="mcps1.3.3.3.1.1.2.4.1.2"><p id="rds_01_0009__p52645207103438"><strong id="rds_01_0009__b75614522215">Mandatory</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.19%" id="mcps1.3.3.3.1.1.2.4.1.3"><p id="rds_01_0009__p36403370103438"><strong id="rds_01_0009__b1056115192216">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row62991866103438"><td class="cellrowborder" valign="top" width="23.45%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_01_0009__p902364145258">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.360000000000003%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_01_0009__p5982632145258">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.19%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_01_0009__p14831209145258">Specifies the project ID of a tenant in a region.</p>
|
|
<p id="rds_01_0009__p19455113121011">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_01_0009__row64285464517"><td class="cellrowborder" valign="top" width="23.45%" headers="mcps1.3.3.3.1.1.2.4.1.1 "><p id="rds_01_0009__p74292461953">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.360000000000003%" headers="mcps1.3.3.3.1.1.2.4.1.2 "><p id="rds_01_0009__p60181840">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.19%" headers="mcps1.3.3.3.1.1.2.4.1.3 "><p id="rds_01_0009__p16429184614514">Specifies the task ID.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_01_0009__section3074340117316"><h4 class="sectiontitle">Request</h4><ul id="rds_01_0009__ul1183180183717"><li id="rds_01_0009__li1283110163719">Request parameters<p id="rds_01_0009__p848415163614"><a name="rds_01_0009__li1283110163719"></a><a name="li1283110163719"></a>None</p>
|
|
</li></ul>
|
|
<ul id="rds_01_0009__ul1082714265612"><li id="rds_01_0009__li4411135064210">Example<p id="rds_01_0009__p1454414211213"><a name="rds_01_0009__li4411135064210"></a><a name="li4411135064210"></a>GET https://rds.eu-de.otc.t-systems.com/v3/0483b6b16e954cb88930a360d2c4e663/jobs?id=a9767ede-fe0f-4888-9003-e843a4c90514</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_01_0009__section4828447917262"><h4 class="sectiontitle">Response</h4><ul id="rds_01_0009__ul1872869017262"><li id="rds_01_0009__li3434049017262">Normal response
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table54571314103317" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="rds_01_0009__row3459121463318"><th align="left" class="cellrowborder" valign="top" width="25%" id="mcps1.3.5.2.1.1.2.4.1.1"><p id="rds_01_0009__p91816414334"><strong id="rds_01_0009__b0591253228">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.5.2.1.1.2.4.1.2"><p id="rds_01_0009__p123216414335"><strong id="rds_01_0009__b19591650227">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45%" id="mcps1.3.5.2.1.1.2.4.1.3"><p id="rds_01_0009__p440144113310"><strong id="rds_01_0009__b1593518220">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row16459161403314"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p12459414153315">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p945941483315">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p10459614163315">Indicates the task ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row2367713135211"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p2036712135529">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p1136761311525">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p3367141316527">Indicates the task name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row98211748533"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p11821164185319">status</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p178212410537">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p20821194165310">Indicates the task execution status.</p>
|
|
<div class="p" id="rds_01_0009__p12167194625317">Value:<ul id="rds_01_0009__ul1116724610533"><li id="rds_01_0009__li4183164614535"><strong id="rds_01_0009__b84235270616558">Running</strong>: The task is being executed.</li><li id="rds_01_0009__li6183146185311"><strong id="rds_01_0009__b842352706165522">Completed</strong>: The task is successfully executed.</li><li id="rds_01_0009__li17183746115312"><strong id="rds_01_0009__b842352706165534">Failed</strong>: The task fails to be executed.</li></ul>
|
|
</div>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row8137184445520"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p1137944165511">created</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p10137164414554">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p740512805712">Indicates the creation time in the "yyyy-mm-ddThh:mm:ssZ" format.</p>
|
|
<p id="rds_01_0009__p174057816579"><strong id="rds_01_0009__b8621751222">T</strong> is the separator between the calendar and the hourly notation of time. <strong id="rds_01_0009__b262105192214">Z</strong> indicates the time zone offset. </p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row113911711165717"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p183911211105719">process</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p1839115119578">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p739131112579">Indicates the task execution progress.</p>
|
|
<div class="note" id="rds_01_0009__note93961953175813"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="rds_01_0009__p11412175314581">The execution progress (such as 60%) is displayed only when the task is being executed. Otherwise, <strong id="rds_01_0009__b842352706173440">""</strong> is returned.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row38251071027"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p782547326">instance</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p12825171522">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p148251371722">Indicates information of the DB instance on which the task is executed.</p>
|
|
<p id="rds_01_0009__p176261414190">For details, see <a href="#rds_01_0009__table4062895917262">Table 3</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row5281748549"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p15281144816414">entities</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p828117481940">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p152810481047">The displayed information varies depending on the tasks.</p>
|
|
<p id="rds_01_0009__p597415316194">Refer to the following:</p>
|
|
<ul id="rds_01_0009__ul3554342192"><li id="rds_01_0009__li57932367194"><a href="#rds_01_0009__table1014617554138">Table 4</a></li><li id="rds_01_0009__li204114397194"><a href="#rds_01_0009__table7391102412203">Table 7</a></li><li id="rds_01_0009__li10971640191913"><a href="#rds_01_0009__table148754542012">Table 9</a></li><li id="rds_01_0009__li105573416191"><a href="#rds_01_0009__table2098817407217">Table 10</a></li></ul>
|
|
<div class="note" id="rds_01_0009__note1546714962017"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="rds_01_0009__p9467189102011">For asynchronous tasks without the <strong id="rds_01_0009__b842352706173418">entities</strong> field description, <strong id="rds_01_0009__b842352706173445">{}</strong> is returned.</p>
|
|
</div></div>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row135472431958"><td class="cellrowborder" valign="top" width="25%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="rds_01_0009__p1954711436518">fail_reason</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="rds_01_0009__p95478437512">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="rds_01_0009__p1654711431756">Indicates the error information displayed when a task failed.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table4062895917262"></a><a name="table4062895917262"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table4062895917262" frame="border" border="1" rules="all"><caption><b>Table 3 </b>instances field data structure description</caption><thead align="left"><tr id="rds_01_0009__row2045312717262"><th align="left" class="cellrowborder" valign="top" width="23.527647235276476%" id="mcps1.3.5.2.1.2.2.4.1.1"><p id="rds_01_0009__p4609059717262"><strong id="rds_01_0009__b16735172217">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.36686331366863%" id="mcps1.3.5.2.1.2.2.4.1.2"><p id="rds_01_0009__p4235091617262"><strong id="rds_01_0009__b12682552217">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.1054894510549%" id="mcps1.3.5.2.1.2.2.4.1.3"><p id="rds_01_0009__p787220417262"><strong id="rds_01_0009__b26816562217">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row3366877217262"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_01_0009__p4281598817262">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_01_0009__p4554301317262">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_01_0009__p6510543817262">Indicates the DB instance ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row964613217262"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.2.2.4.1.1 "><p id="rds_01_0009__p4313926117262">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.2.2.4.1.2 "><p id="rds_01_0009__p461925817262">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.2.2.4.1.3 "><p id="rds_01_0009__p3861563617262">Indicates the DB instance name.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table1014617554138"></a><a name="table1014617554138"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table1014617554138" frame="border" border="1" rules="all"><caption><b>Table 4 </b>entities field data structure description (creating DB instances, changing single DB instances to primary/standby, or creating read replicas)</caption><thead align="left"><tr id="rds_01_0009__row81461455201310"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.5.2.1.3.2.4.1.1"><p id="rds_01_0009__p1014655516139"><strong id="rds_01_0009__b76975192219">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.5.2.1.3.2.4.1.2"><p id="rds_01_0009__p4162655101313"><strong id="rds_01_0009__b1170850226">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44%" id="mcps1.3.5.2.1.3.2.4.1.3"><p id="rds_01_0009__p12162105561317"><strong id="rds_01_0009__b117016542211">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row9162185517134"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.3.2.4.1.1 "><p id="rds_01_0009__p616225516136">instance</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.3.2.4.1.2 "><p id="rds_01_0009__p01623557138">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.3.2.4.1.3 "><p id="rds_01_0009__p1716255591313">Indicates the DB instance information to be implemented by a task.</p>
|
|
<p id="rds_01_0009__p34731051101811">For details, see <a href="#rds_01_0009__table975183423611">Table 5</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row1516215514138"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.3.2.4.1.1 "><p id="rds_01_0009__p71781255151318">resource_ids</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.3.2.4.1.2 "><p id="rds_01_0009__p817875511311">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.3.2.4.1.3 "><p id="rds_01_0009__p7178155521312">Indicates the resource ID involved in a task.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table975183423611"></a><a name="table975183423611"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table975183423611" frame="border" border="1" rules="all"><caption><b>Table 5 </b>entities.instance field data structure description</caption><thead align="left"><tr id="rds_01_0009__row576603417366"><th align="left" class="cellrowborder" valign="top" width="23.762376237623766%" id="mcps1.3.5.2.1.4.2.4.1.1"><p id="rds_01_0009__p15782934123618"><strong id="rds_01_0009__b1672255228">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="29.7029702970297%" id="mcps1.3.5.2.1.4.2.4.1.2"><p id="rds_01_0009__p1978243473620"><strong id="rds_01_0009__b37219592211">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="46.53465346534653%" id="mcps1.3.5.2.1.4.2.4.1.3"><p id="rds_01_0009__p19782113413362"><strong id="rds_01_0009__b187205202213">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row14782133414367"><td class="cellrowborder" valign="top" width="23.762376237623766%" headers="mcps1.3.5.2.1.4.2.4.1.1 "><p id="rds_01_0009__p1079713453618">endpoint</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.7029702970297%" headers="mcps1.3.5.2.1.4.2.4.1.2 "><p id="rds_01_0009__p1279743463620">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.53465346534653%" headers="mcps1.3.5.2.1.4.2.4.1.3 "><p id="rds_01_0009__p1379773419364">Indicates the DB instance connection address.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row127971434193613"><td class="cellrowborder" valign="top" width="23.762376237623766%" headers="mcps1.3.5.2.1.4.2.4.1.1 "><p id="rds_01_0009__p138135341363">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.7029702970297%" headers="mcps1.3.5.2.1.4.2.4.1.2 "><p id="rds_01_0009__p68130343364">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.53465346534653%" headers="mcps1.3.5.2.1.4.2.4.1.3 "><p id="rds_01_0009__p17813163410363">The value is <strong id="rds_01_0009__b16732552214">Single</strong>, <strong id="rds_01_0009__b573155162210">Ha</strong>, or <strong id="rds_01_0009__b77312514228">Replica</strong>, indicating the single DB instance, primary/standby DB instances, and read replica, respectively.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row765018449559"><td class="cellrowborder" valign="top" width="23.762376237623766%" headers="mcps1.3.5.2.1.4.2.4.1.1 "><p id="rds_01_0009__p106501444165514">datastore</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.7029702970297%" headers="mcps1.3.5.2.1.4.2.4.1.2 "><p id="rds_01_0009__p156507445552">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.53465346534653%" headers="mcps1.3.5.2.1.4.2.4.1.3 "><p id="rds_01_0009__p1261414318189">Data structure. For details, see <a href="#rds_01_0009__table173094268581">Table 6</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row065719580010"><td class="cellrowborder" valign="top" width="23.762376237623766%" headers="mcps1.3.5.2.1.4.2.4.1.1 "><p id="rds_01_0009__p7657125811020">replica_of</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="29.7029702970297%" headers="mcps1.3.5.2.1.4.2.4.1.2 "><p id="rds_01_0009__p5657058607">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="46.53465346534653%" headers="mcps1.3.5.2.1.4.2.4.1.3 "><p id="rds_01_0009__p181921914311">Indicates the primary DB instance ID. This parameter is returned only when a read replica is created.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table173094268581"></a><a name="table173094268581"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table173094268581" frame="border" border="1" rules="all"><caption><b>Table 6 </b>datastore field data structure description</caption><thead align="left"><tr id="rds_01_0009__row153243260580"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.5.2.1.5.2.4.1.1"><p id="rds_01_0009__p11324142645814"><strong id="rds_01_0009__b187512582217">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.5.2.1.5.2.4.1.2"><p id="rds_01_0009__p1533910267583"><strong id="rds_01_0009__b19759582216">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44%" id="mcps1.3.5.2.1.5.2.4.1.3"><p id="rds_01_0009__p3339526125813"><strong id="rds_01_0009__b157514532219">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row0339102625817"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.5.2.4.1.1 "><p id="rds_01_0009__p1833918260580">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.5.2.4.1.2 "><p id="rds_01_0009__p3356182625820">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.5.2.4.1.3 "><p id="rds_01_0009__p163562026185813">Indicates the DB engine.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row1335614267583"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.5.2.4.1.1 "><p id="rds_01_0009__p16356132625815">version</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.5.2.4.1.2 "><p id="rds_01_0009__p3356162665817">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.5.2.4.1.3 "><p id="rds_01_0009__p1437111268582">Indicates the database version.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table7391102412203"></a><a name="table7391102412203"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table7391102412203" frame="border" border="1" rules="all"><caption><b>Table 7 </b>entities field data structure description (resizing a DB instance)</caption><thead align="left"><tr id="rds_01_0009__row83911224122019"><th align="left" class="cellrowborder" valign="top" width="23.527647235276476%" id="mcps1.3.5.2.1.6.2.4.1.1"><p id="rds_01_0009__p15391192422011"><strong id="rds_01_0009__b207775122211">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.36686331366863%" id="mcps1.3.5.2.1.6.2.4.1.2"><p id="rds_01_0009__p164051024152015"><strong id="rds_01_0009__b18773552220">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.1054894510549%" id="mcps1.3.5.2.1.6.2.4.1.3"><p id="rds_01_0009__p16405132422010"><strong id="rds_01_0009__b3771354222">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row54055240202"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.6.2.4.1.1 "><p id="rds_01_0009__p54054245204">volume</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.6.2.4.1.2 "><p id="rds_01_0009__p10405142432016">Object</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.6.2.4.1.3 "><p id="rds_01_0009__p9422824202013">Indicates the resized disk information.</p>
|
|
<p id="rds_01_0009__p149159521756">For details, see <a href="#rds_01_0009__table624912591398">Table 8</a>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row94221324102019"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.6.2.4.1.1 "><p id="rds_01_0009__p237213231997">resource_ids</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.6.2.4.1.2 "><p id="rds_01_0009__p9372102310911">List<String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.6.2.4.1.3 "><p id="rds_01_0009__p537218231798">Indicates the resource ID involved in a task.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table624912591398"></a><a name="table624912591398"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table624912591398" frame="border" border="1" rules="all"><caption><b>Table 8 </b>volume field data structure description</caption><thead align="left"><tr id="rds_01_0009__row1526545915917"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.5.2.1.7.2.4.1.1"><p id="rds_01_0009__p026555914920"><strong id="rds_01_0009__b879850229">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="32%" id="mcps1.3.5.2.1.7.2.4.1.2"><p id="rds_01_0009__p22657595911"><strong id="rds_01_0009__b3801358225">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="44%" id="mcps1.3.5.2.1.7.2.4.1.3"><p id="rds_01_0009__p20280125917911"><strong id="rds_01_0009__b1280115122216">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row628020591792"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.7.2.4.1.1 "><p id="rds_01_0009__p122803593917">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.7.2.4.1.2 "><p id="rds_01_0009__p229719593916">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.7.2.4.1.3 "><p id="rds_01_0009__p12979591199">Indicates the volume type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row1829725910918"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.7.2.4.1.1 "><p id="rds_01_0009__p1729713591493">original_size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.7.2.4.1.2 "><p id="rds_01_0009__p1431115917919">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.7.2.4.1.3 "><p id="rds_01_0009__p4311759893">Indicates the original disk size of the DB instance.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rds_01_0009__row14459456111318"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.5.2.1.7.2.4.1.1 "><p id="rds_01_0009__p1459155691316">target_size</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="32%" headers="mcps1.3.5.2.1.7.2.4.1.2 "><p id="rds_01_0009__p4459256171317">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="44%" headers="mcps1.3.5.2.1.7.2.4.1.3 "><p id="rds_01_0009__p1645925616135">Indicates the target disk size of the DB instance.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table148754542012"></a><a name="table148754542012"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table148754542012" frame="border" border="1" rules="all"><caption><b>Table 9 </b>entities field data structure description (binding/unbinding EIPs or enabling/disabling remote access)</caption><thead align="left"><tr id="rds_01_0009__row15011345202020"><th align="left" class="cellrowborder" valign="top" width="23.527647235276476%" id="mcps1.3.5.2.1.8.2.4.1.1"><p id="rds_01_0009__p1350164512014"><strong id="rds_01_0009__b1082125182212">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.36686331366863%" id="mcps1.3.5.2.1.8.2.4.1.2"><p id="rds_01_0009__p250114522010"><strong id="rds_01_0009__b128275172215">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.1054894510549%" id="mcps1.3.5.2.1.8.2.4.1.3"><p id="rds_01_0009__p45182453209"><strong id="rds_01_0009__b88210572219">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row2518144517203"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.8.2.4.1.1 "><p id="rds_01_0009__p9518174562016">public_ip</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.8.2.4.1.2 "><p id="rds_01_0009__p651844514208">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.8.2.4.1.3 "><p id="rds_01_0009__p8518144517204">Indicates the EIP implemented by the task.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
|
|
<div class="tablenoborder"><a name="rds_01_0009__table2098817407217"></a><a name="table2098817407217"></a><table cellpadding="4" cellspacing="0" summary="" id="rds_01_0009__table2098817407217" frame="border" border="1" rules="all"><caption><b>Table 10 </b>entities field data structure description (primary/standby switchover)</caption><thead align="left"><tr id="rds_01_0009__row1839410219"><th align="left" class="cellrowborder" valign="top" width="23.527647235276476%" id="mcps1.3.5.2.1.9.2.4.1.1"><p id="rds_01_0009__p6314417215"><strong id="rds_01_0009__b3841756226">Name</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="31.36686331366863%" id="mcps1.3.5.2.1.9.2.4.1.2"><p id="rds_01_0009__p6324172113"><strong id="rds_01_0009__b148411542214">Type</strong></p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="45.1054894510549%" id="mcps1.3.5.2.1.9.2.4.1.3"><p id="rds_01_0009__p437415216"><strong id="rds_01_0009__b16842520225">Description</strong></p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rds_01_0009__row161912414215"><td class="cellrowborder" valign="top" width="23.527647235276476%" headers="mcps1.3.5.2.1.9.2.4.1.1 "><p id="rds_01_0009__p53554182113">switch_strategy</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="31.36686331366863%" headers="mcps1.3.5.2.1.9.2.4.1.2 "><p id="rds_01_0009__p18351441192115">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="45.1054894510549%" headers="mcps1.3.5.2.1.9.2.4.1.3 "><p id="rds_01_0009__p1935174122111">Indicates the primary/standby switchover policy.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<div class="note" id="rds_01_0009__note3482053511312"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="rds_01_0009__p4494936511312">In the response example, some tasks in the task center are used as examples.</p>
|
|
</div></div>
|
|
</li></ul>
|
|
<ul id="rds_01_0009__ul2705380172618"><li id="rds_01_0009__li24348422172618">Example normal response<div class="p" id="rds_01_0009__p17809214172618"><a name="rds_01_0009__li24348422172618"></a><a name="li24348422172618"></a>Creating a DB instance:<pre class="codeblock" id="rds_01_0009__codeblock19982578427">{
|
|
"job": {
|
|
"id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
|
|
"name": "CreateMysqlSingleHAInstance",
|
|
"status": "Completed",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "",
|
|
"instance": {
|
|
"id": "a48e43ff268f4c0e879652d65e63d0fbin01",
|
|
"name": "DO-NOT-TOUCH-mgr2-mysql-single"
|
|
},
|
|
"entities": {
|
|
"instance": {
|
|
"endpoint": "192.168.1.203:3306",
|
|
"type": "Single",
|
|
"datastore": {
|
|
"type": "mysql",
|
|
"version": "5.7"
|
|
}
|
|
},
|
|
"resource_id": ["a48e43ff268f4c0e879652d65e63d0fbin01.vm", "a48e43ff268f4c0e879652d65e63d0fbin01.volume"]
|
|
}
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="p" id="rds_01_0009__p3495127112212">Creating a read replica:<pre class="codeblock" id="rds_01_0009__codeblock1261934144319">{
|
|
"job": {
|
|
"id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
|
|
"name": " CreateMysqlReplicaInstance",
|
|
"status": "Completed",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "",
|
|
"instance": {
|
|
"id": "288caaa9d05f4ec1a1f58de2e0945685in01",
|
|
"name": "mysql-replica"
|
|
},
|
|
"entities": {
|
|
"instance": {
|
|
"endpoint": "192.168 .1 .203: 3306",
|
|
"type": "replica",
|
|
"datastore": {
|
|
"type": "mysql",
|
|
"version": "5.7"
|
|
},
|
|
"replica_of": "a48e43ff268f4c0e879652d65e63d0fbin01"
|
|
},
|
|
"resource_ids": ["288caaa9d05f4ec1a1f58de2e0945685in01.vm", "288caaa9d05f4ec1a1f58de2e0945685in01.volume"]
|
|
}
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="p" id="rds_01_0009__p16341133218225">Binding an EIP:<pre class="codeblock" id="rds_01_0009__codeblock119410172449">{
|
|
"job": {
|
|
"id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
|
|
"name": "MysqlBindEIP",
|
|
"status": "Completed",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "",
|
|
"instance": {
|
|
"id": "a48e43ff268f4c0e879652d65e63d0fbin01",
|
|
"name": "DO-NOT-TOUCH-mgr2-mysql-single"
|
|
},
|
|
"entities": {
|
|
"public_ip": "10.154 .218 .254"
|
|
}
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="p" id="rds_01_0009__p2998203292310">Rebooting a DB instance:<pre class="codeblock" id="rds_01_0009__codeblock13960173820444">{
|
|
"job": {
|
|
"id": "31b8ae23-c687-4d80-b7b4-42a66c9bb886",
|
|
"name": " RestartMysqlInstance",
|
|
"status": "Completed",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "",
|
|
"instance": {
|
|
"id": "a48e43ff268f4c0e879652d65e63d0fbin01",
|
|
"name": "DO-NOT-TOUCH-mgr2-mysql-single"
|
|
},
|
|
"entities": {}
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="p" id="rds_01_0009__p11795853102318">Task being executed:<pre class="codeblock" id="rds_01_0009__codeblock1224116554515">{
|
|
"job": {
|
|
"id": "31 b8ae23 - c687 - 4 d80 - b7b4 - 42 a66c9bb886",
|
|
"name": "CreateMysqlSingleHAInstance"," status": "Running",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "60 % ",
|
|
"instance": {
|
|
"id": "a48e43ff268f4c0e879652d65e63d0fbin01",
|
|
"name": "DO-NOT-TOUCH-mgr2-mysql-single"
|
|
},
|
|
"entities": {
|
|
"instance": {
|
|
"type": "Single",
|
|
"datastore": {
|
|
"type": "mysql",
|
|
"version": "5.7"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="p" id="rds_01_0009__p679519536239">Task fails to be executed:<pre class="codeblock" id="rds_01_0009__codeblock1405163184519">{
|
|
"job": {
|
|
"id": "31 b8ae23 - c687 - 4 d80 - b7b4 - 42 a66c9bb886",
|
|
"name": "CreateMysqlSingleHAInstance",
|
|
"status": "Failed",
|
|
"created": "2018-08-06T10:41:14+0000",
|
|
"process": "",
|
|
"instance": {
|
|
"id": "a48e43ff268f4c0e879652d65e63d0fbin01",
|
|
"name": "DO-NOT-TOUCH-mgr2-mysql-single"
|
|
},
|
|
"entities": {
|
|
"instance": {
|
|
"type": "Single",
|
|
"datastore": {
|
|
"type": "mysql",
|
|
"version": "5.7"
|
|
}
|
|
}
|
|
},
|
|
"fail_reason": "createVM failed."
|
|
}
|
|
}</pre>
|
|
</div>
|
|
</li><li id="rds_01_0009__li1327139149">Abnormal Response<p id="rds_01_0009__p37177336172618"><a name="rds_01_0009__li1327139149"></a><a name="li1327139149"></a>For details, see <a href="en-us_topic_0032488197.html">Abnormal Request Results</a>.</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="rds_01_0009__section4778540915440"><h4 class="sectiontitle">Status Code</h4><ul id="rds_01_0009__en-us_topic_0032347778_ul7858132212142"><li id="rds_01_0009__en-us_topic_0032347778_li58581622171411">Normal<p id="rds_01_0009__en-us_topic_0032347778_p1040982941020"><a name="rds_01_0009__en-us_topic_0032347778_li58581622171411"></a><a name="en-us_topic_0032347778_li58581622171411"></a>200</p>
|
|
</li><li id="rds_01_0009__en-us_topic_0032347778_li11583183218149">Abnormal<p id="rds_01_0009__en-us_topic_0032347778_p0723374409"><a name="rds_01_0009__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_01_0009__section1183074220016"><h4 class="sectiontitle">Error Code</h4><p id="rds_01_0009__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="rds_09_0000.html">API v3 (Recommended)</a></div>
|
|
</div>
|
|
</div>
|
|
|