Files
doc-exports/docs/eps/api-ref/en-us_topic_0133254025.html
weihongmin1 89457a7fa8 EPS API First Version
Reviewed-by: Gladkov, Maksim <mgladkov@noreply.gitea.eco.tsi-dev.otc-service.com>
Reviewed-by: Belejkanic, Lukas <lukas.belejkanic@t-systems.com>
Co-authored-by: weihongmin1 <weihongmin1@huawei.com>
Co-committed-by: weihongmin1 <weihongmin1@huawei.com>
2025-11-13 12:55:55 +00:00

356 lines
29 KiB
HTML

<a name="en-us_topic_0133254025"></a><a name="en-us_topic_0133254025"></a>
<h1 class="topictitle1">Querying Resources Added to an Enterprise Project</h1>
<div id="body1538020653458"><div class="section" id="en-us_topic_0133254025__section49195514612"><h4 class="sectiontitle">Function</h4><p id="en-us_topic_0133254025__p47813563619">This API is used to query details about resources added to an enterprise project.</p>
</div>
<div class="section" id="en-us_topic_0133254025__section18168551365"><h4 class="sectiontitle">URI</h4><p id="en-us_topic_0133254025__p37817561066">POST /v1.0/enterprise-projects/{enterprise_project_id}/resources/filter</p>
<div class="p" id="en-us_topic_0133254025__p58771146152317">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table11144755465" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Parameter in the URI</caption><thead align="left"><tr id="en-us_topic_0133254025__row978613561065"><th align="left" class="cellrowborder" valign="top" width="22.189999999999998%" id="mcps1.3.2.3.1.2.5.1.1"><p id="en-us_topic_0133254025__p67861556963">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20.84%" id="mcps1.3.2.3.1.2.5.1.2"><p id="en-us_topic_0133254025__p1278655617619">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="25.94%" id="mcps1.3.2.3.1.2.5.1.3"><p id="en-us_topic_0133254025__p167866561561">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="31.03%" id="mcps1.3.2.3.1.2.5.1.4"><p id="en-us_topic_0133254025__p20786125616618">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row57860566611"><td class="cellrowborder" valign="top" width="22.189999999999998%" headers="mcps1.3.2.3.1.2.5.1.1 "><p id="en-us_topic_0133254025__p127865561665">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20.84%" headers="mcps1.3.2.3.1.2.5.1.2 "><p id="en-us_topic_0133254025__p3786156568">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="25.94%" headers="mcps1.3.2.3.1.2.5.1.3 "><p id="en-us_topic_0133254025__p17868561565">String</p>
</td>
<td class="cellrowborder" valign="top" width="31.03%" headers="mcps1.3.2.3.1.2.5.1.4 "><p id="en-us_topic_0133254025__p3786256661">Specifies the enterprise project ID.</p>
<p id="en-us_topic_0133254025__p18783169135919">You can obtain the ID by using API <a href="en-us_topic_0121230880.html">Querying the Enterprise Project List</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="en-us_topic_0133254025__section1318812551669"><h4 class="sectiontitle">Request</h4><ul id="en-us_topic_0133254025__ul1578845613612"><li id="en-us_topic_0133254025__li17788556668">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Parameters in the request header</caption><thead align="left"><tr id="en-us_topic_0133254025__row1791720655213"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.1"><p id="en-us_topic_0133254025__p15917106125216">Parameter</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.2"><p id="en-us_topic_0133254025__p169187618529">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.2.1.1.2.5.1.3"><p id="en-us_topic_0133254025__p991846145216">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.2.1.1.2.5.1.4"><p id="en-us_topic_0133254025__p1918106185211">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row159173655210"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0133254025__p1991815614521">X-Auth-Token</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0133254025__p5919126205220">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0133254025__p1791916610521">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0133254025__p19919156175210">Specifies the user token. EPS is a global service. When calling the IAM API to obtain a user token, set <strong id="en-us_topic_0133254025__b0671038193615">scope</strong> to <strong id="en-us_topic_0133254025__b8671123818367">domain</strong>. The value of <strong id="en-us_topic_0133254025__b1831840123619">X-Subject-Token</strong> in the response header is the user token.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row2383751175416"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.1 "><p id="en-us_topic_0133254025__p163831551165418">Content-Type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.2 "><p id="en-us_topic_0133254025__p938318511546">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.2.1.1.2.5.1.3 "><p id="en-us_topic_0133254025__p8362219105513">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.2.1.1.2.5.1.4 "><p id="en-us_topic_0133254025__p203831251205414">Default value: <strong id="en-us_topic_0133254025__b1663819503319">application/json; charset=UTF-8</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table1125415515616" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Parameters in the request body</caption><thead align="left"><tr id="en-us_topic_0133254025__row1578815614613"><th align="left" class="cellrowborder" valign="top" width="14.851485148514849%" id="mcps1.3.3.2.1.2.2.5.1.1"><p id="en-us_topic_0133254025__p87885561165">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.86138613861386%" id="mcps1.3.3.2.1.2.2.5.1.2"><p id="en-us_topic_0133254025__p778818562611">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="16.83168316831683%" id="mcps1.3.3.2.1.2.2.5.1.3"><p id="en-us_topic_0133254025__p97881556763">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="54.45544554455445%" id="mcps1.3.3.2.1.2.2.5.1.4"><p id="en-us_topic_0133254025__p1478813561662">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row17883561362"><td class="cellrowborder" valign="top" width="14.851485148514849%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p1778814561663">limit</p>
</td>
<td class="cellrowborder" valign="top" width="13.86138613861386%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p117889561620">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.83168316831683%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p1393515711150">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="54.45544554455445%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p37881756164">Specifies the number of records to be queried. The default value is <strong id="en-us_topic_0133254025__b8423527062177">1000</strong>. The maximum value is <strong id="en-us_topic_0133254025__b842352706172132">1000</strong>, and the minimum value is <strong id="en-us_topic_0133254025__b842352706172141">1</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row187889561615"><td class="cellrowborder" valign="top" width="14.851485148514849%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p147881356369">offset</p>
</td>
<td class="cellrowborder" valign="top" width="13.86138613861386%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p1678835611616">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.83168316831683%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p10135610161513">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="54.45544554455445%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p77884564616">Specifies the index position, which starts from the next data record specified by <strong id="en-us_topic_0133254025__b84235270621716">offset</strong>. The value must be a number and cannot be a negative number. The default value is <strong id="en-us_topic_0133254025__b8423527062174">0</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row1678845618612"><td class="cellrowborder" valign="top" width="14.851485148514849%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p1578818561466">projects</p>
</td>
<td class="cellrowborder" valign="top" width="13.86138613861386%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p478820565619">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.83168316831683%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p1578865615611">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="54.45544554455445%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p1878811569617">Specifies the project IDs. You can obtain the project IDs from <a href="em_03_0909.html">Obtaining a Project ID</a>. This parameter can be ignored when the transferred resource is a global resource. This parameter is mandatory when the transferred resource type is a region-specific resource type, such as ECS and EVS disk.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row1778815561766"><td class="cellrowborder" valign="top" width="14.851485148514849%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p278816561960">resource_types</p>
</td>
<td class="cellrowborder" valign="top" width="13.86138613861386%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p19788195610612">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="16.83168316831683%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p207881656365">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="54.45544554455445%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p1678819567612">Specifies the resource types. The value of this parameter is case-sensitive. The following shows some example values: <strong id="en-us_topic_0133254025__b1938794316812">ecs</strong>, <strong id="en-us_topic_0133254025__b16388443786">scaling_group</strong>, <strong id="en-us_topic_0133254025__b1038954310815">images</strong>, <strong id="en-us_topic_0133254025__b13891543283">disk</strong>, <strong id="en-us_topic_0133254025__b639013435817">vpcs</strong>, <strong id="en-us_topic_0133254025__b2039104319816">security-groups</strong>, <strong id="en-us_topic_0133254025__b18392144317819">shared_bandwidth</strong>, and <strong id="en-us_topic_0133254025__b639613431811">eip</strong>.</p>
<p id="en-us_topic_0133254025__p1088710409815">To query resource types, call the <a href="ListProviders.html">Querying Supported Services</a> API.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row97889561265"><td class="cellrowborder" valign="top" width="14.851485148514849%" headers="mcps1.3.3.2.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p97888561265">matches</p>
</td>
<td class="cellrowborder" valign="top" width="13.86138613861386%" headers="mcps1.3.3.2.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p1178875617619">No</p>
</td>
<td class="cellrowborder" valign="top" width="16.83168316831683%" headers="mcps1.3.3.2.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p18788195617616">List&lt;match&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="54.45544554455445%" headers="mcps1.3.3.2.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p16788856068">Specifies the search field. <strong id="en-us_topic_0133254025__b84235270621844">Key</strong> indicates the field to be matched and is fixed at <strong id="en-us_topic_0133254025__b84235270621852">resource_name</strong>. <strong id="en-us_topic_0133254025__b84235270621857">Value</strong> indicates the value to be matched. If this field is not transferred, no matching condition will be used.</p>
<p id="en-us_topic_0133254025__p979884714265">For details, see <a href="#en-us_topic_0133254025__table114127551360">Table 4</a>.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0133254025__ul9788155611615"><li id="en-us_topic_0133254025__li578811562612"><strong id="en-us_topic_0133254025__b13651849102311">Match</strong> field data structure
<div class="tablenoborder"><a name="en-us_topic_0133254025__table114127551360"></a><a name="table114127551360"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table114127551360" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Match field data structure description</caption><thead align="left"><tr id="en-us_topic_0133254025__row178811561269"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.1.2.2.5.1.1"><p id="en-us_topic_0133254025__p7789656863">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="18%" id="mcps1.3.3.3.1.2.2.5.1.2"><p id="en-us_topic_0133254025__p187891756767">Mandatory</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="21%" id="mcps1.3.3.3.1.2.2.5.1.3"><p id="en-us_topic_0133254025__p147896561563">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="41%" id="mcps1.3.3.3.1.2.2.5.1.4"><p id="en-us_topic_0133254025__p177891656461">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row2078913564619"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p157897561965">key</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p1178935617615">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.3.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p8789165613614">String</p>
</td>
<td class="cellrowborder" valign="top" width="41%" headers="mcps1.3.3.3.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p187895561565">Specifies the key. If the <strong id="en-us_topic_0133254025__b84235270621956">matches</strong> parameter exists, this parameter is mandatory and is fixed at <strong id="en-us_topic_0133254025__b84235270621106">resource_name</strong>.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row1378915560614"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.1.2.2.5.1.1 "><p id="en-us_topic_0133254025__p378910568617">value</p>
</td>
<td class="cellrowborder" valign="top" width="18%" headers="mcps1.3.3.3.1.2.2.5.1.2 "><p id="en-us_topic_0133254025__p1078910568613">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="21%" headers="mcps1.3.3.3.1.2.2.5.1.3 "><p id="en-us_topic_0133254025__p207897561618">String</p>
</td>
<td class="cellrowborder" valign="top" width="41%" headers="mcps1.3.3.3.1.2.2.5.1.4 "><p id="en-us_topic_0133254025__p14789195611612">Specifies the value. The value is the resource name. If the <strong id="en-us_topic_0133254025__b842352706211034">matches</strong> parameter is available, this parameter is mandatory and fuzzy search is used by default, for example, message.com. Enter a maximum of 255 characters.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0133254025__ul13789456562"><li id="en-us_topic_0133254025__li10789456363">Example request<pre class="codeblock" id="en-us_topic_0133254025__codeblock64122026162119">POST https://{EPS endpoint}/v1.0/enterprise-projects/{enterprise_project_id}/resources/filter</pre>
<pre class="screen" id="en-us_topic_0133254025__screen8439174172013">{
"projects": [
"e1eb7c40cbea4c8389cde527594a306d",
"2345d321da864d6faf2e762647e19f96"
],
"resource_types": [
"disk"
],
"offset": 0,
"limit": 10,
"matches": [
{
"key": "resource_name",
"value": "lhj"
}
]
}</pre>
</li></ul>
</div>
<div class="section" id="en-us_topic_0133254025__section15482255969"><h4 class="sectiontitle">Response</h4><p id="en-us_topic_0133254025__p165182016166"><strong id="en-us_topic_0133254025__b187816163319">Status code: 200</strong></p>
<ul id="en-us_topic_0133254025__ul1179118561962"><li id="en-us_topic_0133254025__li1179114569616">Parameter description
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table1750115514610" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Parameters in the response body</caption><thead align="left"><tr id="en-us_topic_0133254025__row1779117561564"><th align="left" class="cellrowborder" valign="top" width="37.37373737373737%" id="mcps1.3.4.3.1.1.2.4.1.1"><p id="en-us_topic_0133254025__p1279165618611">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="32.32323232323232%" id="mcps1.3.4.3.1.1.2.4.1.2"><p id="en-us_topic_0133254025__p97917561163">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.303030303030305%" id="mcps1.3.4.3.1.1.2.4.1.3"><p id="en-us_topic_0133254025__p197913562614">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row1279115562615"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.3.1.1.2.4.1.1 "><p id="en-us_topic_0133254025__p279115561160">resources</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.3.1.1.2.4.1.2 "><p id="en-us_topic_0133254025__p77911563611">List&lt;resource&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.3.1.1.2.4.1.3 "><p id="en-us_topic_0133254025__p15791135610614">Specifies the resource list.</p>
<p id="en-us_topic_0133254025__p1566965262716">For details, see <a href="#en-us_topic_0133254025__table15534165513610">Table 6</a>.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row1791556165"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.3.1.1.2.4.1.1 "><p id="en-us_topic_0133254025__p67912564619">errors</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.3.1.1.2.4.1.2 "><p id="en-us_topic_0133254025__p97911356669">List&lt;error&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.3.1.1.2.4.1.3 "><p id="en-us_topic_0133254025__p779117561162">Specifies the error list.</p>
<p id="en-us_topic_0133254025__p7490163512288">For details, see <a href="#en-us_topic_0133254025__table16666135513620">Table 7</a>.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row379110561265"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.3.1.1.2.4.1.1 "><p id="en-us_topic_0133254025__p197910569611">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.3.1.1.2.4.1.2 "><p id="en-us_topic_0133254025__p87914566620">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.3.1.1.2.4.1.3 "><p id="en-us_topic_0133254025__p779113563612">Specifies the total number of returned records meeting the requirements.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li></ul>
<ul id="en-us_topic_0133254025__ul4791195612611"><li id="en-us_topic_0133254025__li1479113561620"><strong id="en-us_topic_0133254025__ae23798d5e06249a583ba79677f94d237">Resource</strong> field data structure
<div class="tablenoborder"><a name="en-us_topic_0133254025__table15534165513610"></a><a name="table15534165513610"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table15534165513610" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Resource field data structure description</caption><thead align="left"><tr id="en-us_topic_0133254025__row197911056868"><th align="left" class="cellrowborder" valign="top" width="37.37373737373737%" id="mcps1.3.4.4.1.2.2.4.1.1"><p id="en-us_topic_0133254025__p379117561066">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="32.32323232323232%" id="mcps1.3.4.4.1.2.2.4.1.2"><p id="en-us_topic_0133254025__p19791105610619">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.303030303030305%" id="mcps1.3.4.4.1.2.2.4.1.3"><p id="en-us_topic_0133254025__p5791256565">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row3791056165"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p18791195613610">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p779113562066">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p177912561661">Specifies the project ID.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row177911561969"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p17791135612619">project_name</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p679117561467">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p14791125610612">Specifies the enterprise project name.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row17911756463"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p579165613619">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p1679111561464">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p679225619610">Specifies the resource type.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row87926561760"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p1279275614620">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p127921656163">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p179217561765">Specifies the resource ID.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row18792756066"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p1679285616613">resource_name</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p10792165613612">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p47921856766">Specifies the resource name.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row187926561365"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p6792256368">resource_detail</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p679217562615">Object</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p167921656664">Specifies the resource details.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row16792165611615"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.1.2.2.4.1.1 "><p id="en-us_topic_0133254025__p187921656061">enterprise_project_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.1.2.2.4.1.2 "><p id="en-us_topic_0133254025__p57921956369">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.1.2.2.4.1.3 "><p id="en-us_topic_0133254025__p17925561613">Specifies the enterprise project ID.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="en-us_topic_0133254025__li679215561768"><strong id="en-us_topic_0133254025__b763015229291">Error</strong> field data structure
<div class="tablenoborder"><a name="en-us_topic_0133254025__table16666135513620"></a><a name="table16666135513620"></a><table cellpadding="4" cellspacing="0" summary="" id="en-us_topic_0133254025__table16666135513620" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Error field data structure description</caption><thead align="left"><tr id="en-us_topic_0133254025__row17926561369"><th align="left" class="cellrowborder" valign="top" width="37.37373737373737%" id="mcps1.3.4.4.2.2.2.4.1.1"><p id="en-us_topic_0133254025__p47924564611">Name</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="32.32323232323232%" id="mcps1.3.4.4.2.2.2.4.1.2"><p id="en-us_topic_0133254025__p1792145611614">Type</p>
</th>
<th align="left" class="cellrowborder" valign="top" width="30.303030303030305%" id="mcps1.3.4.4.2.2.2.4.1.3"><p id="en-us_topic_0133254025__p187922562615">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="en-us_topic_0133254025__row1479285616618"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.2.2.2.4.1.1 "><p id="en-us_topic_0133254025__p167931356063">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.2.2.2.4.1.2 "><p id="en-us_topic_0133254025__p7793125619611">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.2.2.2.4.1.3 "><p id="en-us_topic_0133254025__p15793175618618">Specifies the project ID.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row87931656361"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.2.2.2.4.1.1 "><p id="en-us_topic_0133254025__p187932561616">resource_type</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.2.2.2.4.1.2 "><p id="en-us_topic_0133254025__p167931456460">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.2.2.2.4.1.3 "><p id="en-us_topic_0133254025__p7793556165">Specifies the resource type.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row67931556869"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.2.2.2.4.1.1 "><p id="en-us_topic_0133254025__p197934561611">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.2.2.2.4.1.2 "><p id="en-us_topic_0133254025__p77931256068">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.2.2.2.4.1.3 "><p id="en-us_topic_0133254025__p979345617612">Specifies the error code.</p>
</td>
</tr>
<tr id="en-us_topic_0133254025__row13793456062"><td class="cellrowborder" valign="top" width="37.37373737373737%" headers="mcps1.3.4.4.2.2.2.4.1.1 "><p id="en-us_topic_0133254025__p479310569620">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="32.32323232323232%" headers="mcps1.3.4.4.2.2.2.4.1.2 "><p id="en-us_topic_0133254025__p379312563616">String</p>
</td>
<td class="cellrowborder" valign="top" width="30.303030303030305%" headers="mcps1.3.4.4.2.2.2.4.1.3 "><p id="en-us_topic_0133254025__p379319561866">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</li><li id="en-us_topic_0133254025__li15813111811418">Example response<div class="p" id="en-us_topic_0133254025__p1389154881917"><a name="en-us_topic_0133254025__li15813111811418"></a><a name="li15813111811418"></a><strong id="en-us_topic_0133254025__b18334171019337">Status code: 200</strong><pre class="screen" id="en-us_topic_0133254025__screen789983062410">{
"resources": [
{
"project_id": "e1eb7c40cbea4c8389cde527594a306d",
"project_name": "<em id="en-us_topic_0133254025__i1514312518274">XXXX</em>", //Project name
"resource_type": "disk",
"resource_id": "b621f5ae-b5c1-49d7-a660-752c445434b4",
"resource_name": "lhj1-volume-0001",
"resource_detail": null,
"enterprise_project_id": "0"
},
{
"project_id": "e1eb7c40cbea4c8389cde527594a306d",
"project_name": "<em id="en-us_topic_0133254025__i220258665">XXXX</em>", //Project name
"resource_type": "disk",
"resource_id": "87c9edc9-f66c-48b8-a22f-372b2e22d579",
"resource_name": "lhj2-volume-0002",
"resource_detail": null,
"enterprise_project_id": "0"
}
],
"errors": [],
"total_count": 2
}</pre>
</div>
</li></ul>
</div>
<div class="section" id="en-us_topic_0133254025__section4531164315292"><h4 class="sectiontitle">Status Codes</h4><p id="en-us_topic_0133254025__p145228330242">For details, see <a href="en-us_topic_0171146972.html">Status Code</a>.</p>
</div>
<div class="section" id="en-us_topic_0133254025__section0396144719295"><h4 class="sectiontitle">Error Codes</h4><p id="en-us_topic_0133254025__p177044331253">For details, see <a href="en-us_topic_0121230887.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en-us_topic_0133321992.html">Enterprise Project Management</a></div>
</div>
</div>