doc-exports/docs/drs/api-ref/drs_03_0109.html
Wang , Deng Ke 231618c804 DRS API 2.0.38SP23 version
Reviewed-by: gtema <artem.goncharov@gmail.com>
Co-authored-by: Wang , Deng Ke <wangdengke2@huawei.com>
Co-committed-by: Wang , Deng Ke <wangdengke2@huawei.com>
2022-11-24 16:49:13 +00:00

384 lines
26 KiB
HTML

<a name="drs_03_0109"></a><a name="drs_03_0109"></a>
<h1 class="topictitle1">Selecting Database Objects in Batches</h1>
<div id="body10645102495019"><div class="section" id="drs_03_0109__section106451724115014"><h4 class="sectiontitle">Function</h4><p id="drs_03_0109__p464512244502">This API is used to select the databases or tables to be migrated.</p>
</div>
<div class="section" id="drs_03_0109__section164512413506"><h4 class="sectiontitle">Constraints</h4><ul id="drs_03_0109__ul195821333816"><li id="drs_03_0109__li1958273786">Only real-time migration and real-time synchronization support object selection.</li><li id="drs_03_0109__li62233141214">After a task is created, the task status is <strong id="drs_03_0109__b1220216713257">CONFIGURATION</strong>. The task can be invoked only after the test of connections to the source and destination databases is successful and the API for modifying the task is invoked.</li></ul>
</div>
<div class="section" id="drs_03_0109__section19645112495012"><h4 class="sectiontitle">URI</h4><p id="drs_03_0109__p16645124155015">PUT /v3/{project_id}/jobs/batch-select-objects</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__table964662410501" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="drs_03_0109__row136469242502"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="drs_03_0109__p9646102416502">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="drs_03_0109__p664652415014">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="drs_03_0109__p7646424165019">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="drs_03_0109__p364710245507">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row16464242500"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="drs_03_0109__p2647324185014">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="drs_03_0109__p1647142413506">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="drs_03_0109__p0647182485015">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="drs_03_0109__p186478249501">Project ID of a tenant in a region</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0109__section12647152485016"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="drs_03_0109__row12648152413504"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="drs_03_0109__p11648524145015">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="drs_03_0109__p12648162485016">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="drs_03_0109__p196498244503">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="drs_03_0109__p964952419505">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row116485244504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0109__p264912465011">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0109__p1364919243502">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0109__p146491424155020">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0109__p106011944171">The content type.</p>
<p id="drs_03_0109__p123256415450">The default value is <strong id="drs_03_0109__b1659011301176">application/json</strong>.</p>
</td>
</tr>
<tr id="drs_03_0109__row46481924205015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0109__p14649102465011">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0109__p11650112465012">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0109__p16650192445012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0109__p16501824105014">User token obtained from IAM.</p>
</td>
</tr>
<tr id="drs_03_0109__row8648142418501"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="drs_03_0109__p36501249506">X-Language</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="drs_03_0109__p76503244507">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="drs_03_0109__p3650724165011">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="drs_03_0109__p16651172495014">Request language type</p>
<p id="drs_03_0109__p68691956125917">Default value: <strong id="drs_03_0109__b1786912566599">en-us</strong></p>
<p id="drs_03_0109__p1386915625912">Values:</p>
<ul id="drs_03_0109__ul1586965613591"><li id="drs_03_0109__li1886915655910"><strong id="drs_03_0109__b158691656145912">en-us</strong></li><li id="drs_03_0109__li17869125685916"><strong id="drs_03_0109__b12869175615914">zh-cn</strong></li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__requestParameter" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="drs_03_0109__row26514246503"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="drs_03_0109__p96512024105018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="drs_03_0109__p4651172425010">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="drs_03_0109__p10652182416508">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="drs_03_0109__p26522248500">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row26512024195014"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="drs_03_0109__p46528244503">jobs</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="drs_03_0109__p465217245500">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="drs_03_0109__p1652162465010">Array of <a href="#drs_03_0109__request_UpdateDatabaseObjectReq">UpdateDatabaseObjectReq</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="drs_03_0109__p0652224145013">Request task ID list for updating database objects in batches.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0109__request_UpdateDatabaseObjectReq"></a><a name="request_UpdateDatabaseObjectReq"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__request_UpdateDatabaseObjectReq" frame="border" border="1" rules="all"><caption><b>Table 4 </b>UpdateDatabaseObjectReq</caption><thead align="left"><tr id="drs_03_0109__row365372412501"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.1"><p id="drs_03_0109__p965442475018">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.2"><p id="drs_03_0109__p66541324205018">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.4.2.5.1.3"><p id="drs_03_0109__p1065542475012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.4.2.5.1.4"><p id="drs_03_0109__p146553244501">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row20653202485013"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0109__p565510245508">job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0109__p13655122435011">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0109__p265542475012">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0109__p765511245506">Task ID.</p>
</td>
</tr>
<tr id="drs_03_0109__row965320244504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0109__p9656202415014">selected</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0109__p116563249502">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0109__p865692435013">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0109__p16779175454013">Whether to select an object. If this parameter is not set, the default value is <strong id="drs_03_0109__b184185289259">No</strong>.</p>
<p id="drs_03_0109__p92991444204019"><strong id="drs_03_0109__b2242174312513">Yes</strong>: Customize the objects to be migrated.</p>
<p id="drs_03_0109__p1165652420503"><strong id="drs_03_0109__b1712194910258">No</strong>: Migrate all VMs.</p>
</td>
</tr>
<tr id="drs_03_0109__row365342485016"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0109__p1865752485019">sync_database</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0109__p465715248502">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0109__p196574244502">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0109__p10657162455013">Whether to perform database-level synchronization.</p>
</td>
</tr>
<tr id="drs_03_0109__row66538247506"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.1 "><p id="drs_03_0109__p136581524135016">job</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.2 "><p id="drs_03_0109__p8658132405010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.4.2.5.1.3 "><p id="drs_03_0109__p106581924115013">Array of <a href="#drs_03_0109__request_DatabaseInfo">DatabaseInfo</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.4.2.5.1.4 "><p id="drs_03_0109__p265992415505">Data object selection information. This parameter is mandatory when <strong id="drs_03_0109__b4178196452">selected</strong> is set to <strong id="drs_03_0109__b1334314814512">true</strong>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0109__request_DatabaseInfo"></a><a name="request_DatabaseInfo"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__request_DatabaseInfo" frame="border" border="1" rules="all"><caption><b>Table 5 </b>DatabaseInfo</caption><thead align="left"><tr id="drs_03_0109__row17659152412505"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.1"><p id="drs_03_0109__p666072412502">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.2"><p id="drs_03_0109__p46603243504">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.5.1.3"><p id="drs_03_0109__p10660924125016">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.5.2.5.1.4"><p id="drs_03_0109__p266012475015">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row16591624125019"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p196606245502">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p56601024145010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p0661224165019">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p206611624195013">When <strong id="drs_03_0109__b146816131357">object_type</strong> is set to <strong id="drs_03_0109__b65521616256">database</strong>, this parameter indicates the database name. If <strong id="drs_03_0109__b4783237159">object_type</strong> is set to <strong id="drs_03_0109__b4781114020513">table</strong> or <strong id="drs_03_0109__b774024217516">view</strong>, set the field value by referring to the example.</p>
</td>
</tr>
<tr id="drs_03_0109__row865922413508"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p966152416508">parent_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p1266172419508">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p13661024185018">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p10459948194111">Database name. This parameter is mandatory when <strong id="drs_03_0109__b15421931568">object_type</strong> is set to <strong id="drs_03_0109__b59524616611">table</strong> or <strong id="drs_03_0109__b17361915617">view</strong>.</p>
</td>
</tr>
<tr id="drs_03_0109__row206591024105017"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p1966252435020">object_type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p16621624175010">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p66621324185018">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p366292475019">Type. Values:</p>
<ul id="drs_03_0109__ul16621024135013"><li id="drs_03_0109__li766242425012"><strong id="drs_03_0109__b36624243505">database</strong></li><li id="drs_03_0109__li1566242412508"><strong id="drs_03_0109__b1566272413504">table</strong></li><li id="drs_03_0109__li1066372435016"><strong id="drs_03_0109__b266372405012">schema</strong></li><li id="drs_03_0109__li1326545422114"><strong id="drs_03_0109__b5303814191814">view</strong></li></ul>
</td>
</tr>
<tr id="drs_03_0109__row1034863216403"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p53482322406">object_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p5348123213407">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p1834818327401">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p1534814323407">Database object name, database name, table name, and view name.</p>
</td>
</tr>
<tr id="drs_03_0109__row127171154236"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p47173549313">select</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p187181054731">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p17187541632">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p1571812543311">Whether to migrate the database objects. <strong id="drs_03_0109__b1548918348618">true</strong> indicates that the database objects will be migrated. <strong id="drs_03_0109__b45771339364">false</strong> indicates that the database objects will not be migrated. <strong id="drs_03_0109__b14997544165">partial</strong> indicates some tables in the database will be migrated. If this parameter is not specified, the default value is <strong id="drs_03_0109__b939445815611">false</strong>.</p>
</td>
</tr>
<tr id="drs_03_0109__row9659132419509"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.1 "><p id="drs_03_0109__p1166392465018">object_alias_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.2 "><p id="drs_03_0109__p16631024115011">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.5.1.3 "><p id="drs_03_0109__p13663102416506">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.5.2.5.1.4 "><p id="drs_03_0109__p18664182418502">Alias, which is the new mapped name.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0109__section156674247506"><h4 class="sectiontitle">Response Parameters</h4><p id="drs_03_0109__p1366852445014"><strong id="drs_03_0109__b1366892415017">Status code: 202</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__responseParameter" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="drs_03_0109__row15668182435018"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="drs_03_0109__p10668132425017">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="drs_03_0109__p36681824115012">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="drs_03_0109__p1366917247502">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row666872425010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="drs_03_0109__p146694244509">all_counts</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="drs_03_0109__p1666952425012">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="drs_03_0109__p126691124145013">Total number.</p>
</td>
</tr>
<tr id="drs_03_0109__row16668192418504"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="drs_03_0109__p1366922420504">results</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="drs_03_0109__p136691724175012">Array of <a href="#drs_03_0109__response_DatabaseObjectResp">DatabaseObjectResp</a> objects</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="drs_03_0109__p467019246509">Response list for selecting objects in batches.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="drs_03_0109__response_DatabaseObjectResp"></a><a name="response_DatabaseObjectResp"></a><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__response_DatabaseObjectResp" frame="border" border="1" rules="all"><caption><b>Table 7 </b>DatabaseObjectResp</caption><thead align="left"><tr id="drs_03_0109__row10670124165014"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.1"><p id="drs_03_0109__p067052415502">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.4.2.4.1.2"><p id="drs_03_0109__p0670172418502">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.4.2.4.1.3"><p id="drs_03_0109__p76711524145013">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row867032415015"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0109__p1967112248508">job_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0109__p667112248508">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0109__p146710248502">Task ID.</p>
</td>
</tr>
<tr id="drs_03_0109__row267042465010"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0109__p12671152419508">status</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0109__p267118241506">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0109__p10672624185017">The status that indicates that objects are selected.</p>
</td>
</tr>
<tr id="drs_03_0109__row1967017248505"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0109__p16721424205011">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0109__p1667242425016">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0109__p1467362420501">Error code, which is optional and indicates the returned information about the failure status.</p>
</td>
</tr>
<tr id="drs_03_0109__row146709246500"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.1 "><p id="drs_03_0109__p1673224135018">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.4.2.4.1.2 "><p id="drs_03_0109__p116746242501">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.4.2.4.1.3 "><p id="drs_03_0109__p1567452455019">Error message, which is optional and indicates the returned information about the failure status.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0109__section767422415508"><h4 class="sectiontitle">Example Request</h4><ul id="drs_03_0109__ul1567432415012"><li id="drs_03_0109__li6674824155011">Object selection example:<pre class="screen" id="drs_03_0109__screen1342217123330">https://{EndPoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-select-objects</pre>
<pre class="screen" id="drs_03_0109__screen168131925103315">{
"jobs" : [ {
"job" : [ {
"id" : "fastunit",
"parent_id" : null,
"object_name" : "fastunit",
"object_type" : "database",
"select" : "partial",
"object_alias_name" : null
}, {
"id" : "fastunit-*-*-coll",
"parent_id" : "fastunit",
"object_name" : "coll",
"object_type" : "table",
"select" : "true",
"object_alias_name" : null
}, {
"id" : "ycy1",
"parent_id" : null,
"object_name" : "ycy1",
"object_type" : "database",
"select" : "partial",
"object_alias_name" : null
}, {
"id" : "ycy1-*-*-coll",
"parent_id" : "ycy1",
"object_name" : "coll",
"object_type" : "table",
"select" : "true",
"object_alias_name" : null
}, {
"id" : "ycy1-*-*-collcount",
"parent_id" : "ycy1",
"object_name" : "collcount",
"object_type" : "table",
"select" : "true",
"object_alias_name" : null
} ],
"job_id" : "57fd2692-0ebe-4714-9b59-fe7aa65djb15",
"selected" : true
} ]
}</pre>
</li><li id="drs_03_0109__li18481425125018">Example of full migration:<pre class="screen" id="drs_03_0109__screen181281457173312">https://{EndPoint}/v3/054ba152d480d55b2f5dc0069e7ddef0/jobs/batch-select-objects</pre>
<pre class="screen" id="drs_03_0109__screen1176411216341">{
"jobs" : [ {
"job" : [ ],
"job_id" : "e59f5eef-2bcc-4461-b9ac-10aded44jb15",
"selected" : false
} ]
}</pre>
</li></ul>
</div>
<div class="section" id="drs_03_0109__section15481025135018"><h4 class="sectiontitle">Example Response</h4><p id="drs_03_0109__p54862515502"><strong id="drs_03_0109__b348925125016">Status code: 202</strong></p>
<p id="drs_03_0109__p948725105019">Accepted</p>
<pre class="screen" id="drs_03_0109__screen04813254504">{
"all_counts": 1,
"results": [{
"job_id": "4d700f6f-9a17-47e0-a7d6-1bc2155jb101",
"status": true
}]
}</pre>
</div>
<div class="section" id="drs_03_0109__section14499257502"><h4 class="sectiontitle">Status Code</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="drs_03_0109__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="drs_03_0109__row14682112485011"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="drs_03_0109__p154932512501">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="drs_03_0109__p144911258502">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="drs_03_0109__row12682142435018"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="drs_03_0109__p44942520503">202</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="drs_03_0109__p1587095101417">Accepted</p>
</td>
</tr>
<tr id="drs_03_0109__row1168262435016"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="drs_03_0109__p1491225145010">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="drs_03_0109__p649122511503">Bad Request</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="drs_03_0109__section174982515505"><h4 class="sectiontitle">Error Code</h4><p id="drs_03_0109__p114932575018">For details, see <a href="drs_05_0004.html">Error Code</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="drs_03_0101.html">Public API Management</a></div>
</div>
</div>