doc-exports/docs/dli/api-ref/dli_02_0130.html
Su, Xiaomeng 57a0d535be dli_api_0910_version_api
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
Co-committed-by: Su, Xiaomeng <suxiaomeng1@huawei.com>
2023-10-16 22:01:57 +00:00

377 lines
30 KiB
HTML

<a name="dli_02_0130"></a><a name="dli_02_0130"></a>
<h1 class="topictitle1">Uploading a Package Group</h1>
<div id="body1551256861763"><div class="section" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_s1f0e4fd3d502405199f36f78e68721aa"><h4 class="sectiontitle">Function</h4><p id="dli_02_0130__en-us_topic_0142813183_p139871953625">This API is used to upload a package group to a <strong id="dli_02_0130__b44411294590">project</strong>. The function is similar to creating a package on the management console.</p>
</div>
<div class="section" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_s9e1b8ec5b57c422a942b19835da7d66e"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077927_ul10082125"><li id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077927_li23630265">URI format<p id="dli_02_0130__en-us_topic_0142813183_p335716251236"><a name="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077927_li23630265"></a><a name="en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077927_li23630265"></a>POST /v2.0/{project_id}/resources</p>
</li><li id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_li1725612218454">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_table60779388" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameter</caption><thead align="left"><tr id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_row61411666"><th align="left" class="cellrowborder" valign="top" width="18.16%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_a420a62a594f9410eaea229ffc8037a61">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.58%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_p873025824211">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.360000000000001%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0130__p4628131343815">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="53.900000000000006%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_a692d3cd97b464aed90ba6d841900a4a5">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_row48589216"><td class="cellrowborder" valign="top" width="18.16%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_p43412436">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="13.58%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_en-us_topic_0069077803_p26746391">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="14.360000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0130__p862919139387">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.900000000000006%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0130__p1310472724012">Project ID, which is used for resource isolation. For details about how to obtain its value, see <a href="dli_02_0183.html">Obtaining a Project ID</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
</div>
<div class="section" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_section20458182103"><h4 class="sectiontitle">Request</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_table179951251504" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request parameters</caption><thead align="left"><tr id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_row21116408"><th align="left" class="cellrowborder" valign="top" width="12.46%" id="mcps1.3.3.2.2.5.1.1"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_p221862014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.61%" id="mcps1.3.3.2.2.5.1.2"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_p173767015">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.229999999999999%" id="mcps1.3.3.2.2.5.1.3"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_p2486705">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="61.7%" id="mcps1.3.3.2.2.5.1.4"><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_p4746002">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_row1573617015"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_p12331150116">paths</p>
</td>
<td class="cellrowborder" valign="top" width="10.61%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_p53321202013">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_p123324013118">Array of Strings</p>
</td>
<td class="cellrowborder" valign="top" width="61.7%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_p1033215011114">List of OBS object paths. The OBS object path refers to the OBS object URL.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row158181227115617"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p6770211075">kind</p>
</td>
<td class="cellrowborder" valign="top" width="10.61%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0130__en-us_topic_0142813183_p18771216713">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p117718211715">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.7%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0130__p1874921916126">File type of a package group.</p>
<ul id="dli_02_0130__ul94411230311"><li id="dli_02_0130__li54411434316"><strong id="dli_02_0130__b187459433592">jar</strong>: JAR file</li><li id="dli_02_0130__li34416314313"><strong id="dli_02_0130__b599284714593">pyFile</strong>: User Python file</li><li id="dli_02_0130__li1644115323112"><strong id="dli_02_0130__b1771865012599">file</strong>: User file</li><li id="dli_02_0130__li544114343118"><strong id="dli_02_0130__b98925564592">modelFile</strong>: User AI model file</li></ul>
<div class="note" id="dli_02_0130__note36937506126"><span class="notetitle"> NOTE: </span><div class="notebody"><p id="dli_02_0130__p19694135061217">If the same group of packages to be uploaded contains different file types, select <strong id="dli_02_0130__b12706222105214">file</strong> as the type of the file to be uploaded.</p>
</div></div>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row3489231165611"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p277152111718">group</p>
</td>
<td class="cellrowborder" valign="top" width="10.61%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0130__en-us_topic_0142813183_p27715211275">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p147772119716">String</p>
</td>
<td class="cellrowborder" valign="top" width="61.7%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p127716211379">Name of the group to be created.</p>
</td>
</tr>
<tr id="dli_02_0130__row4788112103917"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0130__p137891921193916">is_async</p>
</td>
<td class="cellrowborder" valign="top" width="10.61%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0130__p127891721113916">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0130__p1578902112392">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="61.7%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0130__p107901821193916">Whether to upload resource packages in asynchronous mode. The default value is <strong id="dli_02_0130__b91645413110">false</strong>, indicating that the asynchronous mode is not used. You are advised to upload resource packages in asynchronous mode.</p>
</td>
</tr>
<tr id="dli_02_0130__row815682733518"><td class="cellrowborder" valign="top" width="12.46%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0130__p35781537183920">tags</p>
</td>
<td class="cellrowborder" valign="top" width="10.61%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0130__p1957893763913">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0130__p16578103719397">Array of Objects</p>
</td>
<td class="cellrowborder" valign="top" width="61.7%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0130__p457910378391">Resource tag. For details, see <a href="#dli_02_0130__table9391124139">Table 3</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="dli_02_0130__table9391124139"></a><a name="table9391124139"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__table9391124139" frame="border" border="1" rules="all"><caption><b>Table 3 </b>tags parameter</caption><thead align="left"><tr id="dli_02_0130__row1440020130"><th align="left" class="cellrowborder" valign="top" width="14.899999999999999%" id="mcps1.3.3.3.2.5.1.1"><p id="dli_02_0130__p194012219139">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.83%" id="mcps1.3.3.3.2.5.1.2"><p id="dli_02_0130__p540724136">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.470000000000002%" id="mcps1.3.3.3.2.5.1.3"><p id="dli_02_0130__p840162161315">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.8%" id="mcps1.3.3.3.2.5.1.4"><p id="dli_02_0130__p16401271318">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__row194013231317"><td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dli_02_0130__p13401329138">key</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dli_02_0130__p940102141313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dli_02_0130__p64019231317">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.8%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dli_02_0130__p5401021139">Tag key.</p>
</td>
</tr>
<tr id="dli_02_0130__row1141142181320"><td class="cellrowborder" valign="top" width="14.899999999999999%" headers="mcps1.3.3.3.2.5.1.1 "><p id="dli_02_0130__p164118215134">value</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.3.3.2.5.1.2 "><p id="dli_02_0130__p1141112181317">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.470000000000002%" headers="mcps1.3.3.3.2.5.1.3 "><p id="dli_02_0130__p174114281318">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.8%" headers="mcps1.3.3.3.2.5.1.4 "><p id="dli_02_0130__p16411125137">Tag key.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_sd1ecb66580054b2ea403be8b2272a2c7"><h4 class="sectiontitle">Response</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__en-us_topic_0142813183_table051933920813" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0130__en-us_topic_0142813183_row852411395818"><th align="left" class="cellrowborder" valign="top" width="16.85%" id="mcps1.3.4.2.2.5.1.1"><p id="dli_02_0130__en-us_topic_0142813183_p452513399816">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.83%" id="mcps1.3.4.2.2.5.1.2"><p id="dli_02_0130__p7267177395">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.229999999999999%" id="mcps1.3.4.2.2.5.1.3"><p id="dli_02_0130__en-us_topic_0142813183_p95271639882">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.089999999999996%" id="mcps1.3.4.2.2.5.1.4"><p id="dli_02_0130__en-us_topic_0142813183_p125299391183">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__en-us_topic_0142813183_row353014398813"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p0558193912915">group_name</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p8267117153915">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p255893916917">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p1855817392092">Group name.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row253515391481"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p13558123916911">status</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p19267157183916">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p205591391992">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p35594391919">Status of a package group to be uploaded.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row56285413914"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p135592391891">resources</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p172674718392">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p555920398916">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p105595392916">List of names of resource packages contained in the group.</p>
</td>
</tr>
<tr id="dli_02_0130__row15250103117368"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__p17251143113617">details</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p10251113133615">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__p13251183153619">Array of body</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__p6251163103615">Details about a group resource package. For details, see <a href="#dli_02_0130__en-us_topic_0103345070_table111231336220">Table 5</a>.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row53798101497"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p15559139391">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p13267172397">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p1055916391492">Long</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p8559839798">UNIX timestamp when a package group is uploaded.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0142813183_row1538239489"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0142813183_p65593391794">update_time</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p926777153919">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0142813183_p055913396910">Long</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0142813183_p9559439094">UNIX timestamp when a package group is updated.</p>
</td>
</tr>
<tr id="dli_02_0130__row7148120153319"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__p1047414300516">is_async</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p2047453014513">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__p1747403019517">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__p7474173019511">Whether to upload resource packages in asynchronous mode. The default value is <strong id="dli_02_0130__b1535771590">false</strong>, indicating that the asynchronous mode is not used. You are advised to upload resource packages in asynchronous mode.</p>
</td>
</tr>
<tr id="dli_02_0130__row55561943127"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0130__p1291831513129">owner</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0130__p10290923101217">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0130__p199192154121">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0130__p491951591219">Owner of a resource package.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="dli_02_0130__en-us_topic_0103345070_table111231336220"></a><a name="en-us_topic_0103345070_table111231336220"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__en-us_topic_0103345070_table111231336220" frame="border" border="1" rules="all"><caption><b>Table 5 </b>details parameter description</caption><thead align="left"><tr id="dli_02_0130__en-us_topic_0103345070_row1212512372214"><th align="left" class="cellrowborder" valign="top" width="18.08%" id="mcps1.3.4.3.2.5.1.1"><p id="dli_02_0130__en-us_topic_0103345070_p1112513318227">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.01%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0130__p92791611949">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.129999999999999%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0130__en-us_topic_0103345070_p112620342217">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60.78%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0130__en-us_topic_0103345070_p912873182218">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__en-us_topic_0103345070_row812818312218"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p0227151292217">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p162791113416">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p612916315229">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0103345070_p312943182213">UNIX time when a resource package is uploaded. The timestamp is in milliseconds.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0103345070_row894391515221"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p139441615122212">update_time</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p16280611343">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p99441415122211">Long</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0103345070_p12782122112311">UNIX time when the uploaded resource package is uploaded. The timestamp is in milliseconds.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0103345070_row360652516227"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p960610257220">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p02802118411">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p1060672592211">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0103345070_p1560611254223">Resource type.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0103345070_row981813205222"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p1281822011226">resource_name</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p1528014116419">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p3818192002212">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0103345070_p6819320152218">Resource name.</p>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0103345070_row1045112238221"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p104511323182217">status</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p228019111417">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p10451523122217">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="dli_02_0130__ul13242203019348"><li id="dli_02_0130__li12421830193414">Value <strong id="dli_02_0130__b34219323119">UPLOADING</strong> indicates that the resource package group is being uploaded.</li><li id="dli_02_0130__li17242230143413">Value <strong id="dli_02_0130__b14108342117">READY</strong> indicates that the resource package has been uploaded.</li><li id="dli_02_0130__li14242230193418">Value <strong id="dli_02_0130__b172541335611">FAILED</strong> indicates that the resource package fails to be uploaded.</li></ul>
</td>
</tr>
<tr id="dli_02_0130__en-us_topic_0103345070_row7933118142218"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__en-us_topic_0103345070_p15933918192212">underlying_name</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p22801911448">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__en-us_topic_0103345070_p5933151810225">String</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__en-us_topic_0103345070_p693319187227">Name of the resource packages in a queue.</p>
</td>
</tr>
<tr id="dli_02_0130__row5109754134"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0130__p17545132712510">is_async</p>
</td>
<td class="cellrowborder" valign="top" width="10.01%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0130__p195451827759">No</p>
</td>
<td class="cellrowborder" valign="top" width="11.129999999999999%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0130__p65461727053">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="60.78%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0130__p1554615276514">Whether to upload resource packages in asynchronous mode. The default value is <strong id="dli_02_0130__b850345750">false</strong>, indicating that the asynchronous mode is not used. You are advised to upload resource packages in asynchronous mode.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0130__section17950756142719"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0130__p16695024172712">Upload a JAR file from OBS to DLI and name the group <strong id="dli_02_0130__b1108103218155">gatk</strong>.</p>
<pre class="screen" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_screen56272661817">{
"paths": [
"https://xkftest.obs.xxx.com/txr_test/jars/spark-sdv-app.jar",
"https://xkftest.obs.xxx.com/txr_test/jars/wordcount",
"https://xkftest.obs.xxx.com/txr_test/jars/wordcount.py"
],
"kind": "jar",
"group": "gatk",
"is_async":"true"
}</pre>
</div>
<div class="section" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_en-us_topic_0102902533_section17446171164041"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0130__en-us_topic_0142813183_en-us_topic_0103345073_screen281210137181">{
"group_name": "gatk",
"status": "READY",
"resources": [
"spark-sdv-app.jar",
"wordcount",
"wordcount.py"
],
"details": [
{
"create_time": 0,
"update_time": 0,
"resource_type": "jar",
"resource_name": "spark-sdv-app.jar",
"status": "READY",
"underlying_name": "987e208d-d46e-4475-a8c0-a62f0275750b_spark-sdv-app.jar"
},
{
"create_time": 0,
"update_time": 0,
"resource_type": "jar",
"resource_name": "wordcount",
"status": "READY",
"underlying_name": "987e208d-d46e-4475-a8c0-a62f0275750b_wordcount"
},
{
"create_time": 0,
"update_time": 0,
"resource_type": "jar",
"resource_name": "wordcount.py",
"status": "READY",
"underlying_name": "987e208d-d46e-4475-a8c0-a62f0275750b_wordcount.py"
}
],
"create_time": 1551334579654,
"update_time": 1551345369070
}</pre>
</div>
<div class="section" id="dli_02_0130__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0130__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0130__tb12870f1c5f24b27abd55ca24264af36">Table 6</a> describes the status code.</p>
<div class="tablenoborder"><a name="dli_02_0130__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0130__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Status codes</caption><thead align="left"><tr id="dli_02_0130__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0130__ab49d21f312644072a331f43e92baf853">Status Code</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="70%" id="mcps1.3.7.3.2.3.1.2"><p id="dli_02_0130__aea1d3bd107bb4c499da79a88832d256c">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0130__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0130__a3153e07b3a9749adba92599fe6628fbf">201</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0130__p104431642124811">The file is successfully uploaded.</p>
</td>
</tr>
<tr id="dli_02_0130__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0130__p184941532219">400</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0130__p2049413539219">Request error.</p>
</td>
</tr>
<tr id="dli_02_0130__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0130__p5537171216249">500</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0130__p953813124249">Internal service error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0130__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0130__p420584425712">If an error occurs when this API is invoked, the system does not return the result similar to the preceding example, but returns the error code and error information. For details, see <a href="dli_02_0056.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dli_02_0166.html">Package Group-related APIs</a></div>
</div>
</div>