doc-exports/docs/dli/api-ref/dli_02_0170.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

324 lines
27 KiB
HTML

<a name="dli_02_0170"></a><a name="dli_02_0170"></a>
<h1 class="topictitle1">Uploading a PyFile Package Group</h1>
<div id="body1551256861763"><div class="section" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_s1f0e4fd3d502405199f36f78e68721aa"><h4 class="sectiontitle">Function</h4><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_p104605496304">This API is used to upload a group of <strong id="dli_02_0170__b1078513515319">PyFile</strong> packages to a <strong id="dli_02_0170__b215765352120">project</strong>.</p>
<div class="note" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_note3223781054"><img src="public_sys-resources/note_3.0-en-us.png"><span class="notetitle"> </span><div class="notebody"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_p8223138952">When a group with the same name as the PyFile package is uploaded, the new group overwrites the old group.</p>
</div></div>
</div>
<div class="section" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_s9e1b8ec5b57c422a942b19835da7d66e"><h4 class="sectiontitle">URI</h4><ul id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_ul10082125"><li id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_li23630265">URI format<p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_p11345797"><a name="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_li23630265"></a><a name="en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077927_li23630265"></a>POST /v2.0/{project_id}/resources/pyfiles</p>
</li><li id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_li1725612218454">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_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_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077803_row61411666"><th align="left" class="cellrowborder" valign="top" width="15.870000000000001%" id="mcps1.3.2.2.2.1.2.5.1.1"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_a420a62a594f9410eaea229ffc8037a61">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.39%" id="mcps1.3.2.2.2.1.2.5.1.2"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077803_p873025824211">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.79%" id="mcps1.3.2.2.2.1.2.5.1.3"><p id="dli_02_0170__p111031126520">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="62.949999999999996%" id="mcps1.3.2.2.2.1.2.5.1.4"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_a692d3cd97b464aed90ba6d841900a4a5">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077803_row48589216"><td class="cellrowborder" valign="top" width="15.870000000000001%" headers="mcps1.3.2.2.2.1.2.5.1.1 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077803_p43412436">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.39%" headers="mcps1.3.2.2.2.1.2.5.1.2 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_en-us_topic_0069077803_p26746391">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="10.79%" headers="mcps1.3.2.2.2.1.2.5.1.3 "><p id="dli_02_0170__p610419212515">String</p>
</td>
<td class="cellrowborder" valign="top" width="62.949999999999996%" headers="mcps1.3.2.2.2.1.2.5.1.4 "><p id="dli_02_0170__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_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_section20458182103"><h4 class="sectiontitle">Request</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_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_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_row21116408"><th align="left" class="cellrowborder" valign="top" width="18.310000000000002%" id="mcps1.3.3.2.2.5.1.1"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_p221862014">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="12.64%" id="mcps1.3.3.2.2.5.1.2"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_p173767015">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.69%" id="mcps1.3.3.2.2.5.1.3"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_p2486705">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="51.35999999999999%" id="mcps1.3.3.2.2.5.1.4"><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_p4746002">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_row1573617015"><td class="cellrowborder" valign="top" width="18.310000000000002%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_p12331150116">paths</p>
</td>
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_p53321202013">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.69%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_p123324013118">Array of strings</p>
</td>
<td class="cellrowborder" valign="top" width="51.35999999999999%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_p1033215011114">List of OBS object paths. The OBS object path refers to the OBS object URL.</p>
</td>
</tr>
<tr id="dli_02_0170__en-us_topic_0142813186_row7807841507"><td class="cellrowborder" valign="top" width="18.310000000000002%" headers="mcps1.3.3.2.2.5.1.1 "><p id="dli_02_0170__en-us_topic_0142813186_p21031919165319">group</p>
</td>
<td class="cellrowborder" valign="top" width="12.64%" headers="mcps1.3.3.2.2.5.1.2 "><p id="dli_02_0170__en-us_topic_0142813186_p610351913531">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="17.69%" headers="mcps1.3.3.2.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0142813186_p9103141910537">String</p>
</td>
<td class="cellrowborder" valign="top" width="51.35999999999999%" headers="mcps1.3.3.2.2.5.1.4 "><p id="dli_02_0170__en-us_topic_0142813186_p2103319135315">Name of a package group.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0170__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_0170__en-us_topic_0142813183_table051933920813" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response parameters</caption><thead align="left"><tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p125299391183">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p1855817392092">Group name.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p35594391919">Status of a package group to be uploaded.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p105595392916">List of names of resource packages contained in the group.</p>
</td>
</tr>
<tr id="dli_02_0170__row15250103117368"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__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_0170__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_0170__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_0170__p6251163103615">Details about a group resource package. For details, see <a href="#dli_02_0170__en-us_topic_0103345070_table111231336220">Table 4</a>.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p8559839798">UNIX timestamp when a package group is uploaded.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__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_0170__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_0170__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_0170__en-us_topic_0142813183_p9559439094">UNIX timestamp when a package group is updated.</p>
</td>
</tr>
<tr id="dli_02_0170__row7148120153319"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__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_0170__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_0170__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_0170__p7474173019511">Whether to upload resource packages in asynchronous mode. The default value is <strong id="dli_02_0170__b1419173718241">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_0170__row55561943127"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__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_0170__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_0170__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_0170__p491951591219">Owner of a resource package.</p>
</td>
</tr>
<tr id="dli_02_0170__row910931974019"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__p1651043015362">description</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0170__p13510123023619">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0170__p95109307363">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0170__p2510230103616">Description of a resource module.</p>
</td>
</tr>
<tr id="dli_02_0170__row11119194409"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__p1772416436343">module_name</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0170__p572419433348">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0170__p12724543183417">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0170__p37246432349">Name of a resource module.</p>
</td>
</tr>
<tr id="dli_02_0170__row19111131914015"><td class="cellrowborder" valign="top" width="16.85%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dli_02_0170__p4724204393413">module_type</p>
</td>
<td class="cellrowborder" valign="top" width="10.83%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dli_02_0170__p35291456144014">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.229999999999999%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dli_02_0170__p572420437345">String</p>
</td>
<td class="cellrowborder" valign="top" width="57.089999999999996%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dli_02_0170__p1264102883811">Type of a resource module.</p>
<ul id="dli_02_0170__ul148307107399"><li id="dli_02_0170__li11830101053917"><strong id="dli_02_0170__b23111159102419">jar</strong>: User JAR file</li><li id="dli_02_0170__li28301010133919"><strong id="dli_02_0170__b359716011257">pyFile</strong>: User Python file</li><li id="dli_02_0170__li5831121093914"><strong id="dli_02_0170__b1135122122518">file</strong>: User file</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><a name="dli_02_0170__en-us_topic_0103345070_table111231336220"></a><a name="en-us_topic_0103345070_table111231336220"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0170__en-us_topic_0103345070_table111231336220" frame="border" border="1" rules="all"><caption><b>Table 4 </b>details parameter description</caption><thead align="left"><tr id="dli_02_0170__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_0170__en-us_topic_0103345070_p1112513318227">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="11.87%" id="mcps1.3.4.3.2.5.1.2"><p id="dli_02_0170__p1840182919108">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.370000000000001%" id="mcps1.3.4.3.2.5.1.3"><p id="dli_02_0170__en-us_topic_0103345070_p112620342217">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.67999999999999%" id="mcps1.3.4.3.2.5.1.4"><p id="dli_02_0170__en-us_topic_0103345070_p912873182218">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0170__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_0170__en-us_topic_0103345070_p0227151292217">create_time</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p540116290105">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p612916315229">Long</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__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_0170__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_0170__en-us_topic_0103345070_p139441615122212">update_time</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p1140122910101">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p99441415122211">Long</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__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_0170__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_0170__en-us_topic_0103345070_p960610257220">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p14011129181013">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p1060672592211">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__en-us_topic_0103345070_p1560611254223">Resource type. Set this parameter to <strong id="dli_02_0170__b0417355258">pyFile</strong>.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__en-us_topic_0103345070_p1281822011226">resource_name</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p440162914108">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p3818192002212">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__en-us_topic_0103345070_p6819320152218">Resource name.</p>
</td>
</tr>
<tr id="dli_02_0170__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_0170__en-us_topic_0103345070_p104511323182217">status</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p840242951018">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p10451523122217">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><ul id="dli_02_0170__ul13242203019348"><li id="dli_02_0170__li12421830193414">Value <strong id="dli_02_0170__b181371851132511">UPLOADING</strong> indicates that the resource package group is being uploaded.</li><li id="dli_02_0170__li17242230143413">Value <strong id="dli_02_0170__b0109552192520">READY</strong> indicates that the resource package has been uploaded.</li><li id="dli_02_0170__li14242230193418">Value <strong id="dli_02_0170__b1292625342516">FAILED</strong> indicates that the resource package fails to be uploaded.</li></ul>
</td>
</tr>
<tr id="dli_02_0170__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_0170__en-us_topic_0103345070_p15933918192212">underlying_name</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p1640213295102">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__en-us_topic_0103345070_p5933151810225">String</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__en-us_topic_0103345070_p693319187227">Name of the resource packages in a queue.</p>
</td>
</tr>
<tr id="dli_02_0170__row51918271652"><td class="cellrowborder" valign="top" width="18.08%" headers="mcps1.3.4.3.2.5.1.1 "><p id="dli_02_0170__p179119526411">is_async</p>
</td>
<td class="cellrowborder" valign="top" width="11.87%" headers="mcps1.3.4.3.2.5.1.2 "><p id="dli_02_0170__p6929521245">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.370000000000001%" headers="mcps1.3.4.3.2.5.1.3 "><p id="dli_02_0170__p4921521841">Boolean</p>
</td>
<td class="cellrowborder" valign="top" width="54.67999999999999%" headers="mcps1.3.4.3.2.5.1.4 "><p id="dli_02_0170__p1892105212416">Indicates whether to upload a resource package asynchronously.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0170__section27411826102920"><h4 class="sectiontitle">Example Request</h4><p id="dli_02_0170__p179751406317">Upload a Python file from OBS to DLI and name the group <strong id="dli_02_0170__b15826148178">gatk</strong>.</p>
<pre class="screen" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345069_screen4892202531112">{
"paths": [
"https://test.obs.xxx.com/dli_tf.py"
],
"group": " gatk"
}</pre>
</div>
<div class="section" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345072_en-us_topic_0102902533_section17446171164041"><h4 class="sectiontitle">Example Response</h4><pre class="screen" id="dli_02_0170__en-us_topic_0142813186_en-us_topic_0103345069_screen725573541112">{
"group_name": "gatk",
"status": "READY",
"resources": [
"dli_tf.py"
],
"details":[
{
"create_time":1608804435312,
"update_time":1608804435312,
"resource_type":"pyFile",
"resource_name":"dli_tf.py",
"status":"READY",
"underlying_name":"dli_tf.py"
}
],
"create_time": 1521532893736,
"update_time": 1521552364503,
"is_async":false
}</pre>
</div>
<div class="section" id="dli_02_0170__sf39cfd445ad24e9e82754fcb0027179d"><h4 class="sectiontitle">Status Codes</h4><p id="dli_02_0170__a04144ca3a08e4576b386c6a98f43a2ae"><a href="#dli_02_0170__tb12870f1c5f24b27abd55ca24264af36">Table 5</a> describes the status code.</p>
<div class="tablenoborder"><a name="dli_02_0170__tb12870f1c5f24b27abd55ca24264af36"></a><a name="tb12870f1c5f24b27abd55ca24264af36"></a><table cellpadding="4" cellspacing="0" summary="" id="dli_02_0170__tb12870f1c5f24b27abd55ca24264af36" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Status codes</caption><thead align="left"><tr id="dli_02_0170__r8d54231f95b14c01a5e55e95f3b2e838"><th align="left" class="cellrowborder" valign="top" width="30%" id="mcps1.3.7.3.2.3.1.1"><p id="dli_02_0170__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_0170__aea1d3bd107bb4c499da79a88832d256c">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dli_02_0170__r211ad4eb571d4d938e5579998723174e"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0170__a3153e07b3a9749adba92599fe6628fbf">201</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0170__p104431642124811">Upload succeeded.</p>
</td>
</tr>
<tr id="dli_02_0170__row44937531727"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0170__p184941532219">400</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0170__p2049413539219">Request error.</p>
</td>
</tr>
<tr id="dli_02_0170__row65331212142411"><td class="cellrowborder" valign="top" width="30%" headers="mcps1.3.7.3.2.3.1.1 "><p id="dli_02_0170__p5537171216249">500</p>
</td>
<td class="cellrowborder" valign="top" width="70%" headers="mcps1.3.7.3.2.3.1.2 "><p id="dli_02_0170__p953813124249">Internal service error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dli_02_0170__section13596141025715"><h4 class="sectiontitle">Error Codes</h4><p id="dli_02_0170__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>