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>
111 lines
8.6 KiB
HTML
111 lines
8.6 KiB
HTML
<a name="dds_api_0081"></a><a name="dds_api_0081"></a>
|
|
|
|
<h1 class="topictitle1">Obtaining the List of Databases That Can Be Restored</h1>
|
|
<div id="body0000001072669002"><div class="section" id="dds_api_0081__section4850156117316"><h4 class="sectiontitle">Function</h4><p id="dds_api_0081__p3631239417316">This API is used to obtain the list of databases that can be restored.</p>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section107191613546"><h4 class="sectiontitle">Constraints</h4><p id="dds_api_0081__p2089016402544">This API applies only to replica sets.</p>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section28961517113719"><h4 class="sectiontitle">URI</h4><ul id="dds_api_0081__ul3084351717316"><li id="dds_api_0081__li915620217316">URI format<p id="dds_api_0081__p11252125861417"><a name="dds_api_0081__li915620217316"></a><a name="li915620217316"></a>GET https://{Endpoint}/v3/{project_id}/instances/{instance_id}/restore-database?restore_time={restore_time}&offset={offset}&limit={limit}</p>
|
|
</li><li id="dds_api_0081__li182022521759">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_0081__table209921931238" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter description</caption><thead align="left"><tr id="dds_api_0081__row13991153117315"><th align="left" class="cellrowborder" valign="top" width="24%" id="mcps1.3.3.2.2.1.2.4.1.1"><p id="dds_api_0081__p7991431537">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.9%" id="mcps1.3.3.2.2.1.2.4.1.2"><p id="dds_api_0081__p1699111312318">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="51.1%" id="mcps1.3.3.2.2.1.2.4.1.3"><p id="dds_api_0081__p16991131132">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dds_api_0081__row499116311836"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0081__p39915311537">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0081__p159911031234">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0081__p17991193115320">Specifies the project ID of a tenant in a region.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dds_api_0081__row89911311437"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0081__p89911531632">instance_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0081__p10991131836">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0081__p899115312315">Specifies the instance ID, which can be obtained by calling the API for querying instances. If you do not have an instance, you can call the API used for creating an instance.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dds_api_0081__row599114312319"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0081__p1399120317314">restore_time</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0081__p499143113315">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0081__p19913311836">Specifies the restoration time point.</p>
|
|
<p id="dds_api_0081__p69918312312">The value is a UNIX timestamp, in milliseconds. The time zone is UTC.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dds_api_0081__row199217311839"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0081__p149918315311">offset</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0081__p599233113319">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0081__p099213116313">Specifies the index position.</p>
|
|
<ul id="dds_api_0081__ul353720227161"><li id="dds_api_0081__li1953752219167">The value must be greater than or equal to <strong id="dds_api_0081__b1481792010422">0</strong>.</li><li id="dds_api_0081__li9810182410169">If this parameter is not transferred, the value is <strong id="dds_api_0081__b8602322144215">0</strong> by default.</li></ul>
|
|
</td>
|
|
</tr>
|
|
<tr id="dds_api_0081__row1699273112313"><td class="cellrowborder" valign="top" width="24%" headers="mcps1.3.3.2.2.1.2.4.1.1 "><p id="dds_api_0081__p69921131933">limit</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.9%" headers="mcps1.3.3.2.2.1.2.4.1.2 "><p id="dds_api_0081__p1599217319315">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="51.1%" headers="mcps1.3.3.2.2.1.2.4.1.3 "><p id="dds_api_0081__p149926319312">Specifies the upper limit of the number of queried records.</p>
|
|
<ul id="dds_api_0081__ul3133143061617"><li id="dds_api_0081__li16133173061611">The value ranges from 1 to 100.</li><li id="dds_api_0081__li1368532121610">If this parameter is not transferred, the first 100 records are queried by default.</li></ul>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section3074340117316"><h4 class="sectiontitle">Requests</h4><ul id="dds_api_0081__ul947439131813"><li id="dds_api_0081__li3478393189">Example request<p id="dds_api_0081__p184013421183"><a name="dds_api_0081__li3478393189"></a><a name="li3478393189"></a>GET https://dds.eu-de.otc.t-systems.com/v3/056538411200d4cd2f79c003c7606412/instances/d5833c2854a4486cb7960f829269e211in02/restore-database?restore_time=1607689584000&limit=10&offset=1</p>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section721865113574"><h4 class="sectiontitle">Responses</h4><ul id="dds_api_0081__ul12198510577"><li id="dds_api_0081__li1321975155714">Parameter description
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dds_api_0081__table10219851205713" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameter description</caption><thead align="left"><tr id="dds_api_0081__row152191651165711"><th align="left" class="cellrowborder" valign="top" width="28.442844284428443%" id="mcps1.3.5.2.1.1.2.4.1.1"><p id="dds_api_0081__p172191151105713">Name</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="24.412441244124413%" id="mcps1.3.5.2.1.1.2.4.1.2"><p id="dds_api_0081__p7219105110576">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="47.14471447144714%" id="mcps1.3.5.2.1.1.2.4.1.3"><p id="dds_api_0081__p821925125717">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="dds_api_0081__row16219205145716"><td class="cellrowborder" valign="top" width="28.442844284428443%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="dds_api_0081__p82201651115719">databases</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.412441244124413%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="dds_api_0081__p122035165712">Array of String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.14471447144714%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="dds_api_0081__p32202518573">Indicates the database list. Each element in the list indicates a database.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="dds_api_0081__row72205511573"><td class="cellrowborder" valign="top" width="28.442844284428443%" headers="mcps1.3.5.2.1.1.2.4.1.1 "><p id="dds_api_0081__p13220105195711">total_count</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="24.412441244124413%" headers="mcps1.3.5.2.1.1.2.4.1.2 "><p id="dds_api_0081__p52201151115713">Integer</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="47.14471447144714%" headers="mcps1.3.5.2.1.1.2.4.1.3 "><p id="dds_api_0081__p14220175175711">Indicates the total number of databases.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</li></ul>
|
|
<ul id="dds_api_0081__ul11220351175714"><li id="dds_api_0081__li52201051125720">Response example<pre class="codeblock" id="dds_api_0081__codeblock6220145115719">{
|
|
"databases": [
|
|
"test_db"
|
|
],
|
|
"total_count": 1
|
|
}</pre>
|
|
</li></ul>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section5382712154838"><h4 class="sectiontitle">Status Code</h4><p id="dds_api_0081__dds_api_0018_p16131712193312">Status Code:200.</p>
|
|
<p id="dds_api_0081__dds_api_0018_p480617135329">For more information, see <a href="dds_status_code.html">Status Code</a>.</p>
|
|
</div>
|
|
<div class="section" id="dds_api_0081__section6522193710339"><h4 class="sectiontitle">Error Code</h4><p id="dds_api_0081__dds_api_0018_p20466124120334">For more information, see <a href="dds_error_code.html">Error Code</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="dds_backup_restore.html">Backup and Restoration</a></div>
|
|
</div>
|
|
</div>
|
|
|