doc-exports/docs/rms/api-ref/rms_02_0010.html
zhangyue 396a19a0bc rms api 2.0.38.SP1
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: zhangyue <zhangyue164@huawei.com>
Co-committed-by: zhangyue <zhangyue164@huawei.com>
2022-11-11 13:43:48 +00:00

425 lines
30 KiB
HTML

<a name="rms_02_0010"></a><a name="rms_02_0010"></a>
<h1 class="topictitle1">Querying a Resource</h1>
<div id="body1275mcpsimp"><div class="section" id="rms_02_0010__section1276mcpsimp"><h4 class="sectiontitle">Function</h4><p id="rms_02_0010__p1278mcpsimp">This API is used to query details of a resource based on its ID. You must have the rms:resources:get permission. For example, to query ECSs whose resource type in RMS is ecs.cloudsrevers, you must set <strong id="rms_02_0010__b1279mcpsimp">provider</strong> to <strong id="rms_02_0010__b1280mcpsimp">ecs</strong> and <strong id="rms_02_0010__b1281mcpsimp">type</strong> to <strong id="rms_02_0010__b1282mcpsimp">cloudservers</strong> in the request.</p>
</div>
<div class="section" id="rms_02_0010__section1283mcpsimp"><h4 class="sectiontitle">URI</h4><p id="rms_02_0010__p1285mcpsimp">GET /v1/resource-manager/domains/{domain_id}/provider/{provider}/type/{type}/resources/{resource_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1286mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path parameters</caption><thead align="left"><tr id="rms_02_0010__row1294mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.1"><p id="rms_02_0010__p1296mcpsimp"><strong id="rms_02_0010__b1297mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.2"><p id="rms_02_0010__p1299mcpsimp"><strong id="rms_02_0010__b1300mcpsimp">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.2.3.2.5.1.3"><p id="rms_02_0010__p1302mcpsimp"><strong id="rms_02_0010__b1303mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.2.3.2.5.1.4"><p id="rms_02_0010__p1305mcpsimp"><strong id="rms_02_0010__b1306mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1308mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0010__p1310mcpsimp">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0010__p1312mcpsimp">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0010__p1314mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0010__p1316mcpsimp">Specifies the account ID.</p>
<p id="rms_02_0010__p1317mcpsimp">Maximum length: <strong id="rms_02_0010__b1318mcpsimp">36</strong></p>
</td>
</tr>
<tr id="rms_02_0010__row1319mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0010__p1321mcpsimp">provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0010__p1323mcpsimp">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0010__p1325mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0010__p1327mcpsimp">Specifies the cloud service name.</p>
<p id="rms_02_0010__p1328mcpsimp">Maximum length: <strong id="rms_02_0010__b1329mcpsimp">20</strong></p>
</td>
</tr>
<tr id="rms_02_0010__row1330mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0010__p1332mcpsimp">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0010__p1334mcpsimp">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0010__p1336mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0010__p1338mcpsimp">Specifies the resource type.</p>
<p id="rms_02_0010__p1339mcpsimp">Maximum length: <strong id="rms_02_0010__b1340mcpsimp">20</strong></p>
</td>
</tr>
<tr id="rms_02_0010__row1341mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.1 "><p id="rms_02_0010__p1343mcpsimp">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.2 "><p id="rms_02_0010__p1345mcpsimp">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.2.3.2.5.1.3 "><p id="rms_02_0010__p1347mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.2.3.2.5.1.4 "><p id="rms_02_0010__p1349mcpsimp">Specifies the resource ID.</p>
<p id="rms_02_0010__p1350mcpsimp">Maximum length: <strong id="rms_02_0010__b1351mcpsimp">256</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_02_0010__section1352mcpsimp"><h4 class="sectiontitle">Request Parameters</h4><p id="rms_02_0010__p1354mcpsimp">None</p>
</div>
<div class="section" id="rms_02_0010__section1355mcpsimp"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_02_0010__p1357mcpsimp"><strong id="rms_02_0010__b1358mcpsimp">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1359mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0010__row1366mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.1"><p id="rms_02_0010__p1368mcpsimp"><strong id="rms_02_0010__b1369mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.4.1.2"><p id="rms_02_0010__p1371mcpsimp"><strong id="rms_02_0010__b1372mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.3.2.4.1.3"><p id="rms_02_0010__p1374mcpsimp"><strong id="rms_02_0010__b1375mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1377mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1379mcpsimp">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1381mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1383mcpsimp">Specifies the resource ID.</p>
</td>
</tr>
<tr id="rms_02_0010__row1384mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1386mcpsimp">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1388mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1390mcpsimp">Specifies the resource name.</p>
</td>
</tr>
<tr id="rms_02_0010__row1391mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1393mcpsimp">provider</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1395mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1397mcpsimp">Specifies the cloud service name.</p>
</td>
</tr>
<tr id="rms_02_0010__row1398mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1400mcpsimp">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1402mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1404mcpsimp">Specifies the resource type.</p>
</td>
</tr>
<tr id="rms_02_0010__row1405mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1407mcpsimp">region_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1409mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1411mcpsimp">Specifies the region ID.</p>
</td>
</tr>
<tr id="rms_02_0010__row1412mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1414mcpsimp">project_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1416mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1418mcpsimp">Specifies the project ID in OpenStack.</p>
</td>
</tr>
<tr id="rms_02_0010__row1419mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1421mcpsimp">project_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1423mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1425mcpsimp">Specifies the project name in OpenStack.</p>
</td>
</tr>
<tr id="rms_02_0010__row1426mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1428mcpsimp">ep_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1430mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1432mcpsimp">Specifies the enterprise project ID.</p>
</td>
</tr>
<tr id="rms_02_0010__row1433mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1435mcpsimp">ep_name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1437mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1439mcpsimp">Specifies the enterprise project name.</p>
</td>
</tr>
<tr id="rms_02_0010__row1440mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1442mcpsimp">checksum</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1444mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1446mcpsimp">Specifies the resource checksum.</p>
</td>
</tr>
<tr id="rms_02_0010__row1447mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1449mcpsimp">created</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1451mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1453mcpsimp">Specifies the time when the resource was created.</p>
</td>
</tr>
<tr id="rms_02_0010__row1454mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1456mcpsimp">updated</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1458mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1460mcpsimp">Specifies the time when the resource was updated.</p>
</td>
</tr>
<tr id="rms_02_0010__row1461mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1463mcpsimp">provisioning_state</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1465mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1467mcpsimp">Specifies the status of the operation that causes the resource change.</p>
</td>
</tr>
<tr id="rms_02_0010__row1468mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1470mcpsimp">tags</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1472mcpsimp">Object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1474mcpsimp">Specifies the resource tag.</p>
</td>
</tr>
<tr id="rms_02_0010__row1475mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.1 "><p id="rms_02_0010__p1477mcpsimp">properties</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.4.1.2 "><p id="rms_02_0010__p1479mcpsimp">Object</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.3.2.4.1.3 "><p id="rms_02_0010__p1481mcpsimp">Specifies the detailed properties of the resource.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_02_0010__p1482mcpsimp"><strong id="rms_02_0010__b1483mcpsimp">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1484mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0010__row1491mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.1"><p id="rms_02_0010__p1493mcpsimp"><strong id="rms_02_0010__b1494mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.5.2.4.1.2"><p id="rms_02_0010__p1496mcpsimp"><strong id="rms_02_0010__b1497mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.5.2.4.1.3"><p id="rms_02_0010__p1499mcpsimp"><strong id="rms_02_0010__b1500mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1502mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="rms_02_0010__p1504mcpsimp">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="rms_02_0010__p1506mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="rms_02_0010__p1508mcpsimp">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_02_0010__row1509mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.1 "><p id="rms_02_0010__p1511mcpsimp">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.5.2.4.1.2 "><p id="rms_02_0010__p1513mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.5.2.4.1.3 "><p id="rms_02_0010__p1515mcpsimp">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_02_0010__p1516mcpsimp"><strong id="rms_02_0010__b1517mcpsimp">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1518mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0010__row1525mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.1"><p id="rms_02_0010__p1527mcpsimp"><strong id="rms_02_0010__b1528mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.7.2.4.1.2"><p id="rms_02_0010__p1530mcpsimp"><strong id="rms_02_0010__b1531mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.7.2.4.1.3"><p id="rms_02_0010__p1533mcpsimp"><strong id="rms_02_0010__b1534mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1536mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="rms_02_0010__p1538mcpsimp">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="rms_02_0010__p1540mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="rms_02_0010__p1542mcpsimp">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_02_0010__row1543mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.1 "><p id="rms_02_0010__p1545mcpsimp">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.7.2.4.1.2 "><p id="rms_02_0010__p1547mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.7.2.4.1.3 "><p id="rms_02_0010__p1549mcpsimp">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_02_0010__p1550mcpsimp"><strong id="rms_02_0010__b1551mcpsimp">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1552mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0010__row1559mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.1"><p id="rms_02_0010__p1561mcpsimp"><strong id="rms_02_0010__b1562mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.9.2.4.1.2"><p id="rms_02_0010__p1564mcpsimp"><strong id="rms_02_0010__b1565mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.9.2.4.1.3"><p id="rms_02_0010__p1567mcpsimp"><strong id="rms_02_0010__b1568mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1570mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="rms_02_0010__p1572mcpsimp">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="rms_02_0010__p1574mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="rms_02_0010__p1576mcpsimp">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_02_0010__row1577mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.1 "><p id="rms_02_0010__p1579mcpsimp">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.9.2.4.1.2 "><p id="rms_02_0010__p1581mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.9.2.4.1.3 "><p id="rms_02_0010__p1583mcpsimp">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_02_0010__p1584mcpsimp"><strong id="rms_02_0010__b1585mcpsimp">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1586mcpsimp" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="rms_02_0010__row1593mcpsimp"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.1"><p id="rms_02_0010__p1595mcpsimp"><strong id="rms_02_0010__b1596mcpsimp">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.11.2.4.1.2"><p id="rms_02_0010__p1598mcpsimp"><strong id="rms_02_0010__b1599mcpsimp">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.4.11.2.4.1.3"><p id="rms_02_0010__p1601mcpsimp"><strong id="rms_02_0010__b1602mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1604mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="rms_02_0010__p1606mcpsimp">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="rms_02_0010__p1608mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="rms_02_0010__p1610mcpsimp">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_02_0010__row1611mcpsimp"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.1 "><p id="rms_02_0010__p1613mcpsimp">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.11.2.4.1.2 "><p id="rms_02_0010__p1615mcpsimp">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.4.11.2.4.1.3 "><p id="rms_02_0010__p1617mcpsimp">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_02_0010__section1618mcpsimp"><h4 class="sectiontitle">Example Request</h4><pre class="screen" id="rms_02_0010__screen1620mcpsimp">GET https://{endpoint}/v1/resource-manager/domains/059b5c937100d3e40ff0c00a7675a0a0/provider/ecs/type/cloudservers/resources/00337e93-82d1-40ca-911f-07cff94587cc</pre>
</div>
<div class="section" id="rms_02_0010__section1621mcpsimp"><h4 class="sectiontitle">Example Response</h4><p id="rms_02_0010__p1623mcpsimp"><strong id="rms_02_0010__b1624mcpsimp">Status code: 200</strong></p>
<p id="rms_02_0010__p1625mcpsimp">Operation succeeded.</p>
<pre class="screen" id="rms_02_0010__screen143101551419"><span id="rms_02_0010__ph589071101718">{</span>
<span id="rms_02_0010__ph18891216177"> "id": "00337e93-82d1-40ca-911f-07cff94587cc"</span>
<span id="rms_02_0010__ph1889120101720"> "name": "dev_machine"</span>
<span id="rms_02_0010__ph8891101131717"> "provider":"ecs"</span>
<span id="rms_02_0010__ph9892417173"> "type": "cloudservers"</span>
<span id="rms_02_0010__ph289231161710"> "region_id": "eu-de-01"</span>
<span id="rms_02_0010__ph1389218151717"> "project_id": "39c2af998c334ed6bcbb75b27318f7cc"</span>
<span id="rms_02_0010__ph08921818176"> "project_nmae": "eu-de-01"</span>
<span id="rms_02_0010__ph1989331141720"> "ep_id": "0"</span>
<span id="rms_02_0010__ph198931112173"> "ep_name": "default"</span>
<span id="rms_02_0010__ph689381111716"> "checksum":"3a0075409edb156a74e041b7479f0d5993be1d62b4ccd2af3a1dd01ec80c8b39"</span>
<span id="rms_02_0010__ph889316171710"> "created": "2019-11-20T06:24:43Z"</span>
<span id="rms_02_0010__ph48932120176"> "updated": "2020-07-17T08:30:52Z"</span>
<span id="rms_02_0010__ph168949131718"> "provisioning_state": "Succeeded"</span>
<span id="rms_02_0010__ph1889411115178"> "tags": {</span>
<span id="rms_02_0010__ph138941116177"> "usage": "Display"</span>
<span id="rms_02_0010__ph18942161717"> }</span>
<span id="rms_02_0010__ph16894811173"> "properties": {</span>
<span id="rms_02_0010__ph18895141121717"> "accessIpv4" : "",</span>
<span id="rms_02_0010__ph16895151151714"> "hostName" : "dev-machine",</span>
<span id="rms_02_0010__ph1989511171718"> "addresss" : [ {</span>
<span id="rms_02_0010__ph689516112171"> "OsExtIpsType" : "fixed",</span>
<span id="rms_02_0010__ph2896151171714"> "OsExtIpsPortId" : "f2fa750a-e2ab-434f-b14a-bfe7c8cea0cc",</span>
<span id="rms_02_0010__ph168961141711"> "addr" : "192.168.1.212",</span>
<span id="rms_02_0010__ph389614111179"> "version" : 4,</span>
<span id="rms_02_0010__ph128960117177"> "OsExtIpsMacAddr" : "fa:16:3e:6e:cf:33"</span>
<span id="rms_02_0010__ph188971111171"> }, {</span>
<span id="rms_02_0010__ph118977141712"> "OsExtIpsType" : "floating",</span>
<span id="rms_02_0010__ph489715117173"> "OsExtIpsPortId" : "f2fa750a-e2ab-434f-b14a-bfe7c8cea0cc",</span>
<span id="rms_02_0010__ph689710141713"> "addr" : "100.85.225.33",</span>
<span id="rms_02_0010__ph118976118177"> "version" : 4,</span>
<span id="rms_02_0010__ph1989818101714"> "OsExtIpsMacAddr" : "fa:16:3e:6e:cf:33"</span>
<span id="rms_02_0010__ph148982116174"> } ],</span>
<span id="rms_02_0010__ph128980115172"> "accessIpv6" : "",</span>
<span id="rms_02_0010__ph5898111131720"> "metadata" : {</span>
<span id="rms_02_0010__ph1789871141716"> "chargingMode" : "0",</span>
<span id="rms_02_0010__ph19899141181710"> "meteringImageType" : "private",</span>
<span id="rms_02_0010__ph1889917111176"> "imageName" : "resource-manager-devmachine-template",</span>
<span id="rms_02_0010__ph1989915171719"> "meteringImageId" : "9bcaace4-b8da-4008-a352-3f72e1f25333",</span>
<span id="rms_02_0010__ph389941141719"> "meteringResourcesPerCode" : "si2.large.2.linux",</span>
<span id="rms_02_0010__ph1090021181713"> "vpcId" : "cf403ef5-90df-4e7e-829d-5d21b1cb7d1e",</span>
<span id="rms_02_0010__ph09001111714"> "osBit" : "64"</span>
<span id="rms_02_0010__ph11901171101710"> },</span>
<span id="rms_02_0010__ph79016110179"> "OsExtStsVmState" : "active",</span>
<span id="rms_02_0010__ph6902181121719"> "configDrive" : "",</span>
<span id="rms_02_0010__ph11902131161711"> "OsExtStsPowerState" : 1,</span>
<span id="rms_02_0010__ph490219191717"> "hostId" : "3c381dcfc3e628c1a504ad94ba8c4e89081306455273701333f32921",</span>
<span id="rms_02_0010__ph89032113175"> "securityGroup" : [ {</span>
<span id="rms_02_0010__ph179031215176"> "name" : "default",</span>
<span id="rms_02_0010__ph090312131710"> "id" : "5d55b397-ad9c-462d-af72-6599cb941c49"</span>
<span id="rms_02_0010__ph6904511178"> } ],</span>
<span id="rms_02_0010__ph169041616176"> "ExtVolumesAttached" : [ {</span>
<span id="rms_02_0010__ph7904131141719"> "bootIndex" : "0",</span>
<span id="rms_02_0010__ph1790413171712"> "id" : "010d940e-a73e-417b-85ae-51b76c0d2ba0",</span>
<span id="rms_02_0010__ph18904171111713"> "device" : "/dev/vda"</span>
<span id="rms_02_0010__ph2090519171717"> } ],</span>
<span id="rms_02_0010__ph129055151712"> "userId" : "e311190745e94cc09d62d5779e55912d",</span>
<span id="rms_02_0010__ph1190520191717"> "flavor" : {</span>
<span id="rms_02_0010__ph790610115179"> "disk" : "0",</span>
<span id="rms_02_0010__ph169062120171"> "name" : "Si2.large.2",</span>
<span id="rms_02_0010__ph99064141710"> "id" : "Si2.large.2",</span>
<span id="rms_02_0010__ph5907711171"> "vcpus" : "2",</span>
<span id="rms_02_0010__ph17907181131720"> "ram" : "4096"</span>
<span id="rms_02_0010__ph1390715171718"> },</span>
<span id="rms_02_0010__ph09088118173"> "OsDcfDiskConfig" : "MANUAL",</span>
<span id="rms_02_0010__ph1490813113170"> "hostStatus" : "UP",</span>
<span id="rms_02_0010__ph1690881111718"> "OsSrvUsgLaunchedAt" : "2019-11-20T06:24:56.000000",</span>
<span id="rms_02_0010__ph4908617171"> "OsExtAz" : "eu-de-01a",</span>
<span id="rms_02_0010__ph990818111716"> "progress" : 0,</span>
<span id="rms_02_0010__ph49091716177"> "locked" : false,</span>
<span id="rms_02_0010__ph199096112172"> "OS-EXT-SRV-ATTR" : {</span>
<span id="rms_02_0010__ph1990981191718"> "hostName" : "dev-machine",</span>
<span id="rms_02_0010__ph69091510176"> "kernelId" : "",</span>
<span id="rms_02_0010__ph1690981181713"> "ramdiskId" : "",</span>
<span id="rms_02_0010__ph1091091131715"> "reservationId" : "r-hhux9o7m",</span>
<span id="rms_02_0010__ph1791012181712"> "instanceName" : "instance-0009cb50",</span>
<span id="rms_02_0010__ph4910141191712"> "host" : "eu-de-01a-pod01.eu-de-01",</span>
<span id="rms_02_0010__ph139101711179"> "rootDeviceName" : "/dev/vda",</span>
<span id="rms_02_0010__ph791012112178"> "hypervisorHostName" : "nova001@2",</span>
<span id="rms_02_0010__ph891119115173"> "launchIndex" : 0</span>
<span id="rms_02_0010__ph199111814175"> },</span>
<span id="rms_02_0010__ph39111916171"> "status" : "ACTIVE"</span>
<span id="rms_02_0010__ph9911517179"> }</span>
<span id="rms_02_0010__ph10912614176">}</span></pre>
</div>
<div class="section" id="rms_02_0010__section1710mcpsimp"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_02_0010__table1712mcpsimp" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_02_0010__row1717mcpsimp"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.7.2.1.3.1.1"><p id="rms_02_0010__p1719mcpsimp"><strong id="rms_02_0010__b1720mcpsimp">Status Code</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.7.2.1.3.1.2"><p id="rms_02_0010__p1722mcpsimp"><strong id="rms_02_0010__b1723mcpsimp">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="rms_02_0010__row1725mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0010__p1727mcpsimp">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0010__p1729mcpsimp">Operation succeeded.</p>
</td>
</tr>
<tr id="rms_02_0010__row1730mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0010__p1732mcpsimp">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0010__p1734mcpsimp">Invalid parameter.</p>
</td>
</tr>
<tr id="rms_02_0010__row1735mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0010__p1737mcpsimp">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0010__p1739mcpsimp">Authentication failed.</p>
</td>
</tr>
<tr id="rms_02_0010__row1740mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0010__p1742mcpsimp">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0010__p1744mcpsimp">Resource not found.</p>
</td>
</tr>
<tr id="rms_02_0010__row1745mcpsimp"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.7.2.1.3.1.1 "><p id="rms_02_0010__p1747mcpsimp">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.7.2.1.3.1.2 "><p id="rms_02_0010__p1749mcpsimp">Internal server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_02_0010__section1750mcpsimp"><h4 class="sectiontitle">Error Codes</h4><p id="rms_02_0010__p1752mcpsimp">See <a href="rms_02_0018.html">Error Codes</a>.</p>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="rms_02_0007.html">Resource Query</a></div>
</div>
</div>