doc-exports/docs/dataartsstudio/api-ref/dataartsstudio_02_0105.html
Xiong, Chen Xiao 14a6d65e8c DataArts API 20240130 version
Reviewed-by: Pruthi, Vineet <vineet.pruthi@t-systems.com>
Co-authored-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
Co-committed-by: Xiong, Chen Xiao <chenxiaoxiong@huawei.com>
2024-03-01 11:46:15 +00:00

233 lines
23 KiB
HTML

<a name="dataartsstudio_02_0105"></a><a name="dataartsstudio_02_0105"></a>
<h1 class="topictitle1">Querying a Resource List</h1>
<div id="body0000001104334926"><div class="section" id="dataartsstudio_02_0105__en-us_topic_0181836124_section1738101810182"><h4 class="sectiontitle">Function</h4><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1912913467404">This API is used to query a resource list. During the query, you can specify the page number and the maximum number of records on each page.</p>
</div>
<div class="section" id="dataartsstudio_02_0105__en-us_topic_0181836124_section7934966101819"><h4 class="sectiontitle">URI</h4><ul id="dataartsstudio_02_0105__en-us_topic_0181836124_ul145591424184717"><li id="dataartsstudio_02_0105__en-us_topic_0181836124_li356152404715">URI format<p id="dataartsstudio_02_0105__en-us_topic_0181836124_p076674419427"><a name="dataartsstudio_02_0105__en-us_topic_0181836124_li356152404715"></a><a name="en-us_topic_0181836124_li356152404715"></a>GET /v1/{project_id}/resources?offset={offset}&amp;limit={limit}&amp;resourceName={resourceName}</p>
</li></ul>
</div>
<ul id="dataartsstudio_02_0105__en-us_topic_0181836124_ul1370917277482"><li id="dataartsstudio_02_0105__en-us_topic_0181836124_li170972720484">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_table46023801181358" frame="border" border="1" rules="all"><caption><b>Table 1 </b>URI parameters</caption><thead align="left"><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_row26974916181358"><th align="left" class="cellrowborder" valign="top" width="20.3%" id="mcps1.3.3.1.1.2.5.1.1"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p37484572181358">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.280000000000001%" id="mcps1.3.3.1.1.2.5.1.2"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p16351468181358">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.989999999999998%" id="mcps1.3.3.1.1.2.5.1.3"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p49400541181358">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="53.43%" id="mcps1.3.3.1.1.2.5.1.4"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p42020886181358">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_row48248640181358"><td class="cellrowborder" valign="top" width="20.3%" headers="mcps1.3.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p15825795181358">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="10.280000000000001%" headers="mcps1.3.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p6820998181358">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.989999999999998%" headers="mcps1.3.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0093082049_p15629937181358">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.43%" headers="mcps1.3.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p8672138175612">Project ID. For details about how to obtain a project ID, see <a href="projectid_accountid.html">Project ID and Account ID</a>.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row43741615978"><td class="cellrowborder" valign="top" width="20.3%" headers="mcps1.3.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p29173616317">offset</p>
</td>
<td class="cellrowborder" valign="top" width="10.280000000000001%" headers="mcps1.3.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1199365312">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.989999999999998%" headers="mcps1.3.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1091036113110">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="53.43%" headers="mcps1.3.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1611914378613">Start page of the paging list. Default value: <strong id="dataartsstudio_02_0105__en-us_topic_0181836124_b913111742410">0</strong> The value must be greater than or equal to <strong id="dataartsstudio_02_0105__en-us_topic_0181836124_b12972171812243">0</strong>.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row479216181273"><td class="cellrowborder" valign="top" width="20.3%" headers="mcps1.3.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1791101344">limit</p>
</td>
<td class="cellrowborder" valign="top" width="10.280000000000001%" headers="mcps1.3.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p15911902344">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.989999999999998%" headers="mcps1.3.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p2910020345">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="53.43%" headers="mcps1.3.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p13217857560">The maximum number of records on each page. The value ranges from 1 to 100.</p>
<p id="dataartsstudio_02_0105__en-us_topic_0181836124_p163642582342">Default value: <strong id="dataartsstudio_02_0105__b0728124918309">10</strong></p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row1594361872510"><td class="cellrowborder" valign="top" width="20.3%" headers="mcps1.3.3.1.1.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p119443188254">resourceName</p>
</td>
<td class="cellrowborder" valign="top" width="10.280000000000001%" headers="mcps1.3.3.1.1.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p139441718132511">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.989999999999998%" headers="mcps1.3.3.1.1.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p9413432182510">String</p>
</td>
<td class="cellrowborder" valign="top" width="53.43%" headers="mcps1.3.3.1.1.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p69442018182515">Name of the resource.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<div class="section" id="dataartsstudio_02_0105__en-us_topic_0181836124_section10789431145710"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0105__en-us_topic_0181836124_table25071810112414" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameter</caption><thead align="left"><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_row3746915131710"><th align="left" class="cellrowborder" valign="top" width="15.010000000000002%" id="mcps1.3.4.2.2.5.1.1"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p131491731112013">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.93%" id="mcps1.3.4.2.2.5.1.2"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p3149113112204">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18.73%" id="mcps1.3.4.2.2.5.1.3"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p13149173119204">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="49.33%" id="mcps1.3.4.2.2.5.1.4"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p11149331122017">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_row174620159179"><td class="cellrowborder" valign="top" width="15.010000000000002%" headers="mcps1.3.4.2.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p1150183116205">workspace</p>
</td>
<td class="cellrowborder" valign="top" width="16.93%" headers="mcps1.3.4.2.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p4150531152016">No</p>
</td>
<td class="cellrowborder" valign="top" width="18.73%" headers="mcps1.3.4.2.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p181505317209">String</p>
</td>
<td class="cellrowborder" valign="top" width="49.33%" headers="mcps1.3.4.2.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_p169341251122511">Workspace ID.</p>
<ul id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_ul776685742514"><li id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_li076655782516">If this parameter is not set, data in the <strong id="dataartsstudio_02_0105__b29471323514">default</strong> workspace is queried by default.</li><li id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281363_li788605918251">To query data in other workspaces, this header must be carried.</li></ul>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dataartsstudio_02_0105__en-us_topic_0181836124_section561243517589"><h4 class="sectiontitle">Response Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0105__en-us_topic_0181836124_table19750184493418" frame="border" border="1" rules="all"><thead align="left"><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row1475134418345"><th align="left" class="cellrowborder" valign="top" width="21.630000000000003%" id="mcps1.3.5.2.1.5.1.1"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1275244423417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.96%" id="mcps1.3.5.2.1.5.1.2"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1375504413341">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.550000000000002%" id="mcps1.3.5.2.1.5.1.3"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p675774416349">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52.86000000000001%" id="mcps1.3.5.2.1.5.1.4"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p475920448344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row1760344113410"><td class="cellrowborder" valign="top" width="21.630000000000003%" headers="mcps1.3.5.2.1.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1882062017363">total</p>
</td>
<td class="cellrowborder" valign="top" width="9.96%" headers="mcps1.3.5.2.1.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p17819122015363">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.550000000000002%" headers="mcps1.3.5.2.1.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p10818220103616">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="52.86000000000001%" headers="mcps1.3.5.2.1.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p19818102093611">The total number of resources.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row7763244193418"><td class="cellrowborder" valign="top" width="21.630000000000003%" headers="mcps1.3.5.2.1.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p681792083611">resources</p>
</td>
<td class="cellrowborder" valign="top" width="9.96%" headers="mcps1.3.5.2.1.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p6816620143613">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.550000000000002%" headers="mcps1.3.5.2.1.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1981682023611">List&lt;Resource&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="52.86000000000001%" headers="mcps1.3.5.2.1.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p148151920153616">A list of resources.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="dataartsstudio_02_0105__en-us_topic_0181836124_table8517132813287" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Resource parameters</caption><thead align="left"><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row1475134418345"><th align="left" class="cellrowborder" valign="top" width="21.63%" id="mcps1.3.5.3.2.5.1.1"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1275244423417">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="9.84%" id="mcps1.3.5.3.2.5.1.2"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1375504413341">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="15.8%" id="mcps1.3.5.3.2.5.1.3"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p675774416349">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="52.73%" id="mcps1.3.5.3.2.5.1.4"><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p475920448344">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="dataartsstudio_02_0105__en-us_topic_0181836124_row111610715245"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p1316879247">id</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p21619782414">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p171627132414">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_p2016137132411">ID of the resource. The resource ID is used to query the resource.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row1760344113410"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p5760124443410">name</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p476174473411">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p6763114463415">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1376304411342">Name of the resource. The name contains a maximum of 32 characters, including only letters, numbers, underscores (_), and hyphens (-).</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row7763244193418"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1676464463414">type</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p776544410349">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p7766174423419">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p0767244123410">Resource type.</p>
<ul id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_ul1276716442349"><li id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_li676811443344">archive</li><li id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_li176818449341">file</li><li id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_li167711644103416">jar</li></ul>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row2416130182519"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1141615072518">location</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1416120152512">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p2416001259">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p74165052512">OBS path for storing the resource file. When <strong id="dataartsstudio_02_0105__en-us_topic_0181836124_b14806446204615">type</strong> is set to <strong id="dataartsstudio_02_0105__en-us_topic_0181836124_b6120175212465">jar</strong>, <strong id="dataartsstudio_02_0105__en-us_topic_0181836124_b1984341684711">location</strong> is the path for storing the main JAR package. The path contains a maximum of 256 characters. For example, obs://myBucket/test.jar</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row477184415342"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p8364132164320">dependFiles</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p14363821194310">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p13627210437">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p336182124313">JAR package and properties file that the main JAR package depends on. The description contains a maximum of 10,240 characters.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row97741244163419"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p53611021124318">desc</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1035842120431">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p10357121114319">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p163571221134318">The description contains a maximum of 255 characters.</p>
</td>
</tr>
<tr id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_row47771744133413"><td class="cellrowborder" valign="top" width="21.63%" headers="mcps1.3.5.3.2.5.1.1 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1135513219431">directory</p>
</td>
<td class="cellrowborder" valign="top" width="9.84%" headers="mcps1.3.5.3.2.5.1.2 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p163541215438">No</p>
</td>
<td class="cellrowborder" valign="top" width="15.8%" headers="mcps1.3.5.3.2.5.1.3 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p8352102118434">String</p>
</td>
<td class="cellrowborder" valign="top" width="52.73%" headers="mcps1.3.5.3.2.5.1.4 "><p id="dataartsstudio_02_0105__en-us_topic_0181836124_en-us_topic_0181281323_p1275984817177">Directory for storing the resource.</p>
<p id="dataartsstudio_02_0105__en-us_topic_0181836124_p123051357125016">Access the <span id="dataartsstudio_02_0105__text249695012397">DataArts Studio</span> console and choose <strong id="dataartsstudio_02_0105__b1349615073918">Data Development</strong>. In the left navigation pane, choose <span class="menucascade" id="dataartsstudio_02_0105__menucascade1849745015390"><b><span class="uicontrol" id="dataartsstudio_02_0105__uicontrol20497195016397">Development</span></b> &gt; <b><span class="uicontrol" id="dataartsstudio_02_0105__uicontrol8497150143913">Develop Script</span></b></span>. In the directory tree of the script, you can view the created directories. The default directory is the <strong id="dataartsstudio_02_0105__b944406155114">root</strong> directory.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="dataartsstudio_02_0105__en-us_topic_0181836124_section358155716277"><h4 class="sectiontitle">Example Request</h4><div class="p" id="dataartsstudio_02_0105__en-us_topic_0181836124_p1488816432455">Query a list of resources.<pre class="screen" id="dataartsstudio_02_0105__en-us_topic_0181836124_screen165211354306">GET /v1/b384b9e9ab9b4ee8994c8633aabc9505/resources</pre>
</div>
</div>
<div class="section" id="dataartsstudio_02_0105__section6857735175417"><h4 class="sectiontitle">Example Response</h4><ul id="dataartsstudio_02_0105__en-us_topic_0181836124_ul13130223205017"><li id="dataartsstudio_02_0105__en-us_topic_0181836124_li149491320463">Success response<p id="dataartsstudio_02_0105__en-us_topic_0181836124_p107513409317"><a name="dataartsstudio_02_0105__en-us_topic_0181836124_li149491320463"></a><a name="en-us_topic_0181836124_li149491320463"></a>HTTP status code 200</p>
<pre class="screen" id="dataartsstudio_02_0105__en-us_topic_0181836124_screen134017453193">{
"total":1,
"resources":[
{
"id":"b384b9e9ab9b4ee8994c8633aabc9505",
"name":"test",
"type":"jar",
"location":"obs://00000000dlf-test/hadoop-mapreduce-examples-2.4.1.jar",
"dependFiles":[
"obs://00000000dlf-test/depend1.jar",
"obs://00000000dlf-test/depend2.jar"
],
"desc":"test",
"directory":"/resource"
}
]
}</pre>
</li><li id="dataartsstudio_02_0105__en-us_topic_0181836124_li697361214553">Failure response<p id="dataartsstudio_02_0105__en-us_topic_0181836124_p17868101111567"><a name="dataartsstudio_02_0105__en-us_topic_0181836124_li697361214553"></a><a name="en-us_topic_0181836124_li697361214553"></a>HTTP status code 400</p>
<pre class="screen" id="dataartsstudio_02_0105__en-us_topic_0181836124_screen2818105917308">{
"error_code":"DLF.3051",
"error_msg":"The request parameter is invalid."
}</pre>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="dataartsstudio_02_0060.html">Resource Management APIs</a></div>
</div>
</div>