forked from docs/doc-exports
Reviewed-by: Ziuzko, Alevtina <alevtina.ziuzko@t-systems.com> Co-authored-by: Wei, Hongmin <weihongmin1@huawei.com> Co-committed-by: Wei, Hongmin <weihongmin1@huawei.com>
466 lines
29 KiB
HTML
466 lines
29 KiB
HTML
<a name="rms_04_0103"></a><a name="rms_04_0103"></a>
|
|
|
|
<h1 class="topictitle1">Querying a Resource</h1>
|
|
<div id="body53575818371"><div class="section" id="rms_04_0103__section0351558113710"><h4 class="sectiontitle">Function</h4><p id="rms_04_0103__p14351558143711">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 is <strong id="rms_04_0103__b5351258143715">ecs.cloudservers</strong>, you must set <strong id="rms_04_0103__b1636205873718">provider</strong> to <strong id="rms_04_0103__b53610588379">ecs</strong> and <strong id="rms_04_0103__b436858113714">type</strong> to <strong id="rms_04_0103__b6361458103718">cloudservers</strong> in the request. For details about the cloud services (<strong id="rms_04_0103__b236145873717">provider</strong>) and resource types (<strong id="rms_04_0103__b11363583374">type</strong>), see "Appendix-Supported Services and Resource Types".</p>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="rms_04_0103__p1636125818379">For details, see <a href="rms_03_0000.html">Calling APIs</a>.</p>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="rms_04_0103__p103705814376">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_04_0103__table12442587377" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="rms_04_0103__row1538158183714"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="rms_04_0103__p1944195843714">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.2"><p id="rms_04_0103__p174511581379">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.3"><p id="rms_04_0103__p445458193718">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.3.3.2.5.1.4"><p id="rms_04_0103__p16452589374">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row44311582379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0103__p19461558193712">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0103__p164645814371">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0103__p175117588377">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0103__p115285812372">Specifies tags.</p>
|
|
<p id="rms_04_0103__p1752105883714">Maximum: <strong id="rms_04_0103__b652158203716">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row184320589373"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0103__p115214586375">provider</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0103__p175295843714">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0103__p2053125816372">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0103__p155315813373">Specifies the cloud service name.</p>
|
|
<p id="rms_04_0103__p2053125893715">Maximum: <strong id="rms_04_0103__b1653205833719">20</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1643155843717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0103__p4533589372">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0103__p75415811373">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0103__p135495814372">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0103__p454558123714">Specifies the resource type.</p>
|
|
<p id="rms_04_0103__p6591958153711">Maximum: <strong id="rms_04_0103__b560105893717">32</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row15431258103717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0103__p3604584379">resource_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0103__p460165818374">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0103__p360165843716">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0103__p1561105813712">Specifies the resource ID.</p>
|
|
<p id="rms_04_0103__p166115873713">Maximum: <strong id="rms_04_0103__b66195853715">512</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__section1611158123716"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rms_04_0103__row362258133713"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="rms_04_0103__p669165813370">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.2"><p id="rms_04_0103__p176935815375">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.3"><p id="rms_04_0103__p46920588371">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.2.2.5.1.4"><p id="rms_04_0103__p206985803716">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row12631358183713"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0103__p470658103716">X-Auth-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="rms_04_0103__p070458163712">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0103__p270558183716">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0103__p10711958203716">Specifies the invoker's token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row136815583374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0103__p1471125833710">X-Security-Token</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.2 "><p id="rms_04_0103__p576115823713">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0103__p177775812374">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0103__p977958163720">Security token (session token) for temporary security credentials. This parameter is mandatory when you make an API call using temporary security credentials.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__section17775815379"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_04_0103__p67855817376"><strong id="rms_04_0103__b1178958123715">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__response_ResourceEntity" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0103__row1886758173715"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="rms_04_0103__p495158133715">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.2"><p id="rms_04_0103__p19675873718">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.3.2.4.1.3"><p id="rms_04_0103__p99675812374">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row5871058173711"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p3963583372">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p17971958103720">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p8976587370">Specifies the resource ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row68710583375"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p13971158183717">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p1110314583379">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p131031058183712">Specifies the resource name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row198795843720"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p1310325818378">provider</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p1104858103719">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p12104175893718">Specifies the cloud service name.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row5871758163713"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p810416584372">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p71041158123715">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p810595833711">Specifies the resource type.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1687558153718"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p1105205883718">region_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p710518589376">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p91061058133719">Specifies the region ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1987135810374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p1510612589371">project_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p41111258193710">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p1911216587375">Specifies the project ID in IaaS OpenStack.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row48785833710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p15112358123710">project_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p0112105815377">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p1511375818371">Specifies the project name in IaaS OpenStack.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row48725810374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p11131058163712">ep_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p7113195813377">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p14113458133720">Specifies the enterprise project ID.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row14871858173719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p1911425883716">ep_name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p51141758103717">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p8114558193713">Specifies the name of an enterprise project.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row168895811379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p10120058173711">checksum</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p512055823720">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p17120158133719">Specifies the resource checksum.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row68895873719"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p11121125893719">created</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p101215580370">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p1612115586373">Specifies the time when the resource was created.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row198810583372"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p18121165814373">updated</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p10122175883716">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p1312235811373">Specifies the time when the resource was updated.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row3883583376"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p21221358173715">provisioning_state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p412265815374">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p91282589379">Specifies the status of a resource operation.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row169385810371"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p15128858183715">state</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p312825833710">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p6129558163716">Resource state. The value can be normal or deleted.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row6931758153717"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p112905811377">tags</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p1812925819375">Map<String,String></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p18130155816379">Specifies the resource tag.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row19475823710"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0103__p15131145803713">properties</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0103__p171315587377">Map<String,Object></p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0103__p313165814374">Specifies the detailed properties of the resource.</p>
|
|
<p id="rms_04_0103__p1921939177">Resource attributes vary based on different resources. For details about resource attribute parameter description, see the documentation of related services.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0103__p1413185823713"><strong id="rms_04_0103__b171321458103719">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0103__row1137115810377"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="rms_04_0103__p1514113581379">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.2"><p id="rms_04_0103__p3141135823713">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.5.2.4.1.3"><p id="rms_04_0103__p5141135813715">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row01406584373"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0103__p8142155817377">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0103__p101424582375">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0103__p914216586376">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row12140125843715"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0103__p171481058193719">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0103__p91489584376">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0103__p71485587377">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0103__p914995843720"><strong id="rms_04_0103__b141491458203714">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__response_ErrorResp_1" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0103__row7149195883711"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="rms_04_0103__p215195813373">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.2"><p id="rms_04_0103__p131514584376">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.7.2.4.1.3"><p id="rms_04_0103__p171578580373">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row2150185818372"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0103__p1915715863712">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0103__p415815584371">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0103__p1715895811378">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row121505584374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0103__p1715825812374">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0103__p7158115812372">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0103__p415918589377">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0103__p10159115819375"><strong id="rms_04_0103__b15159125883718">Status code: 404</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__response_ErrorResp_2" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0103__row141599588376"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="rms_04_0103__p17166195863719">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.2"><p id="rms_04_0103__p6166145833715">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.9.2.4.1.3"><p id="rms_04_0103__p816711587375">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row171601588371"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0103__p1716725883711">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0103__p2168115810375">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0103__p11684587371">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row151651580374"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0103__p81681580374">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0103__p13169165813374">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0103__p181741158153718">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0103__p181757582373"><strong id="rms_04_0103__b81751658113715">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__response_ErrorResp_3" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0103__row201752588371"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="rms_04_0103__p1617610584376">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.2"><p id="rms_04_0103__p1917795873714">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="60%" id="mcps1.3.5.11.2.4.1.3"><p id="rms_04_0103__p1177135812374">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row131750588379"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0103__p11771758113718">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0103__p1182558193714">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0103__p518385833715">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1117615812373"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0103__p91832586379">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0103__p218385853718">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0103__p818335813719">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__section15184115823717"><h4 class="sectiontitle">Example Requests</h4><pre class="screen" id="rms_04_0103__screen111845584378">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_04_0103__section131841658113710"><h4 class="sectiontitle">Example Responses</h4><p id="rms_04_0103__p1718415581375"><strong id="rms_04_0103__b1418525810372">Status code: 200</strong></p>
|
|
<p id="rms_04_0103__p1818585833714">Operation succeeded.</p>
|
|
<pre class="screen" id="rms_04_0103__screen122016588373">{
|
|
"id" : "00337e93-82d1-40ca-911f-07cff94587cc",
|
|
"name" : "dev_machine",
|
|
"provider" : "ecs",
|
|
"type" : "cloudservers",
|
|
"region_id" : "regionid4",
|
|
"project_id" : "39c2af998c334ed6bcbb75b27318f7cc",
|
|
"project_name" : "project_name",
|
|
"ep_id" : "0",
|
|
"ep_name" : "default",
|
|
"checksum" : "3a0075409edb156a74e041b7479f0d5993be1d62b4ccd2af3a1dd01ec80c8b39",
|
|
"created" : "2019-11-20T06:24:43Z",
|
|
"updated" : "2020-07-17T08:30:52Z",
|
|
"provisioning_state" : "Succeeded",
|
|
"tags" : {
|
|
"usage" : "Display"
|
|
},
|
|
"properties" : {
|
|
"accessIpv4" : "",
|
|
"hostName" : "dev-machine",
|
|
"addresses" : [ {
|
|
"OsExtIpsType" : "fixed",
|
|
"OsExtIpsPortId" : "f2fa750a-e2ab-434f-b14a-bfe7c8cea0cc",
|
|
"addr" : "192.168.1.212",
|
|
"version" : 4,
|
|
"OsExtIpsMacAddr" : "fa:16:3e:6e:cf:33"
|
|
}, {
|
|
"OsExtIpsType" : "floating",
|
|
"OsExtIpsPortId" : "f2fa750a-e2ab-434f-b14a-bfe7c8cea0cc",
|
|
"addr" : "100.85.225.33",
|
|
"version" : 4,
|
|
"OsExtIpsMacAddr" : "fa:16:3e:6e:cf:33"
|
|
} ],
|
|
"accessIpv6" : "",
|
|
"metadata" : {
|
|
"chargingMode" : "0",
|
|
"meteringImageType" : "private",
|
|
"imageName" : "resource-manager-devmachine-template",
|
|
"meteringImageId" : "9bcaace4-b8da-4008-a352-3f72e1f25333",
|
|
"meteringResourcesPerCode" : "si2.large.2.linux",
|
|
"vpcId" : "cf403ef5-90df-4e7e-829d-5d21b1cb7d1e",
|
|
"osBit" : "64"
|
|
},
|
|
"OsExtStsVmState" : "active",
|
|
"configDrive" : "",
|
|
"OsExtStsPowerState" : 1,
|
|
"hostId" : "3c381dcfc3e628c1a504ad94ba8c4e89081306455273701333f32921",
|
|
"securityGroup" : [ {
|
|
"name" : "default",
|
|
"id" : "5d55b397-ad9c-462d-af72-6599cb941c49"
|
|
} ],
|
|
"ExtVolumesAttached" : [ {
|
|
"bootIndex" : "0",
|
|
"id" : "010d940e-a73e-417b-85ae-51b76c0d2ba0",
|
|
"device" : "/dev/vda"
|
|
} ],
|
|
"userId" : "e311190745e94cc09d62d5779e55912d",
|
|
"flavor" : {
|
|
"disk" : "0",
|
|
"name" : "Si2.large.2",
|
|
"id" : "Si2.large.2",
|
|
"vcpus" : "2",
|
|
"ram" : "4096"
|
|
},
|
|
"OsDcfDiskConfig" : "MANUAL",
|
|
"hostStatus" : "UP",
|
|
"OsSrvUsgLaunchedAt" : "2019-11-20T06:24:56.000000",
|
|
"OsExtAz" : "regionid4a",
|
|
"progress" : 0,
|
|
"locked" : false,
|
|
"OS-EXT-SRV-ATTR" : {
|
|
"hostName" : "dev-machine",
|
|
"kernelId" : "",
|
|
"ramdiskId" : "",
|
|
"reservationId" : "r-hhux9o7m",
|
|
"instanceName" : "instance-0009cb50",
|
|
"host" : "regionid4a-pod01.regionid4",
|
|
"rootDeviceName" : "/dev/vda",
|
|
"hypervisorHostName" : "nova001@2",
|
|
"launchIndex" : 0
|
|
},
|
|
"status" : "ACTIVE"
|
|
}
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__section8329017380"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0103__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_04_0103__row142886581378"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="rms_04_0103__p1232190183812">Status Code</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="85%" id="mcps1.3.8.2.1.3.1.2"><p id="rms_04_0103__p1132180153819">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0103__row19288125810378"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0103__p10324014387">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0103__p153218053810">Operation succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1628985813715"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0103__p18321305388">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0103__p6324018380">Invalid parameters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1728985819373"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0103__p103214013810">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0103__p10321019389">User authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row828916582371"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0103__p332190113819">404</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0103__p03318013817">Resources not found.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0103__row1828917587376"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0103__p5331705386">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0103__p183310018388">Server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0103__section16334017386"><h4 class="sectiontitle">Error Codes</h4><p id="rms_04_0103__p113360183812">See <a href="ErrorCode.html">Error Codes</a>.</p>
|
|
</div>
|
|
</div>
|
|
<div>
|
|
<div class="familylinks">
|
|
<div class="parentlink"><strong>Parent topic:</strong> <a href="rms_04_0100.html">Resource Query</a></div>
|
|
</div>
|
|
</div>
|
|
|