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>
330 lines
22 KiB
HTML
330 lines
22 KiB
HTML
<a name="rms_04_0702"></a><a name="rms_04_0702"></a>
|
|
|
|
<h1 class="topictitle1">Creating an Advanced Query</h1>
|
|
<div id="body14661825155614"><div class="section" id="rms_04_0702__section3661725195613"><h4 class="sectiontitle">Function</h4><p id="rms_04_0702__p20661125115613">This API is used to create an advanced query.</p>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="rms_04_0702__p76615256569">For details, see <a href="rms_03_0000.html">Calling APIs</a>.</p>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="rms_04_0702__p2662122515565">POST /v1/resource-manager/domains/{domain_id}/stored-queries</p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__table16634259569" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="rms_04_0702__row1266217258566"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="rms_04_0702__p10663142520562">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_0702__p176647251561">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_0702__p166402520560">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_0702__p6664172517568">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row1466392515610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0702__p196651225135610">domain_id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0702__p1466522511565">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0702__p106659250560">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0702__p666652535616">Specifies tags.</p>
|
|
<p id="rms_04_0702__p12666152525610">Maximum: <strong id="rms_04_0702__b186661825145612">36</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section4666172518566"><h4 class="sectiontitle">Request Parameters</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rms_04_0702__row46670251569"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="rms_04_0702__p5668112514563">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_0702__p116682255561">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_0702__p4668162555612">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_0702__p966862575620">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row466710250562"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0702__p866912575618">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_0702__p12669132555611">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0702__p266982595617">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0702__p106691625155615">Specifies the invoker's token.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row666712545615"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0702__p1366914250567">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_0702__p1467052510563">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0702__p9670725205614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0702__p10670162513564">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 class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__request_StoredQueryRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="rms_04_0702__row1967152512568"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="rms_04_0702__p96711825155616">Parameter</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.2"><p id="rms_04_0702__p18672152525620">Mandatory</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.3"><p id="rms_04_0702__p66721725155614">Type</p>
|
|
</th>
|
|
<th align="left" class="cellrowborder" valign="top" width="40%" id="mcps1.3.4.3.2.5.1.4"><p id="rms_04_0702__p126724257565">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row267113258561"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0702__p10672725125617">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0702__p767322518566">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0702__p667332511564">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0702__p967322520569">Specifies the ResourceQL name.</p>
|
|
<p id="rms_04_0702__p2673162516567">Minimum: <strong id="rms_04_0702__b13673325175614">1</strong></p>
|
|
<p id="rms_04_0702__p3673325165618">Maximum: <strong id="rms_04_0702__b967302518567">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row1767111251563"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0702__p267402512564">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0702__p76741225155610">No</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0702__p126742252568">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0702__p1267422511568">Specifies the ResourceQL description.</p>
|
|
<p id="rms_04_0702__p0674142525612">Minimum: <strong id="rms_04_0702__b26742025175611">0</strong></p>
|
|
<p id="rms_04_0702__p15675025175619">Maximum: <strong id="rms_04_0702__b14675825195616">512</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row196711125145618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0702__p96752258563">expression</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0702__p267519256567">Yes</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0702__p367510259564">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0702__p11675122517562">Specifies the ResourceQL expression.</p>
|
|
<p id="rms_04_0702__p20676142510568">Minimum: <strong id="rms_04_0702__b156761225115616">1</strong></p>
|
|
<p id="rms_04_0702__p12676525145614">Maximum: <strong id="rms_04_0702__b76761225175616">4096</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section1676132518569"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_04_0702__p126761525165613"><strong id="rms_04_0702__b767682585614">Status code: 200</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__response_StoredQuery" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0702__row1967712258565"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="rms_04_0702__p4679202525612">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_0702__p136791725105618">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_0702__p15679192595611">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row3677152520565"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p15680112555616">id</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p468052515620">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p86801525125616">ResourceQL ID.</p>
|
|
<p id="rms_04_0702__p4680425125612">Maximum: <strong id="rms_04_0702__b1668012259562">256</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row26771425145610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p12680162511563">name</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p1368120256561">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p206811525195617">Specifies the ResourceQL name.</p>
|
|
<p id="rms_04_0702__p1568112515618">Minimum: <strong id="rms_04_0702__b17681182535618">1</strong></p>
|
|
<p id="rms_04_0702__p1068152511566">Maximum: <strong id="rms_04_0702__b126814256563">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row797019251927"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p1212815341005">type</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p41291534005">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p1012933420018">Indicates a customized query type. The options are <strong id="rms_04_0702__b198111386117">account</strong> and <strong id="rms_04_0702__b124012117113">aggregator</strong>. account: customized query statement for a single account; If the value is aggregator, it indicates the customized query statement of the aggregator. The default value is <strong id="rms_04_0702__b19041195119">account</strong>.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row767722518568"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p14682725185620">description</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p136825251569">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p16682162545616">Specifies the ResourceQL description.</p>
|
|
<p id="rms_04_0702__p116820251561">Minimum: <strong id="rms_04_0702__b12682825105617">0</strong></p>
|
|
<p id="rms_04_0702__p468292513566">Maximum: <strong id="rms_04_0702__b768210253563">512</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row36787252565"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p1568315250560">expression</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p1868362505619">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p1768382515568">Specifies the ResourceQL expression.</p>
|
|
<p id="rms_04_0702__p186831325105611">Minimum: <strong id="rms_04_0702__b9683182511566">1</strong></p>
|
|
<p id="rms_04_0702__p268318256561">Maximum: <strong id="rms_04_0702__b16684202555612">4096</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row106781725125610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p0684122512567">created</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p16841125105614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p186851125135619">Specifies when ResourceQL was created.</p>
|
|
<p id="rms_04_0702__p86851225105614">Minimum: <strong id="rms_04_0702__b4685172511566">1</strong></p>
|
|
<p id="rms_04_0702__p1685122535611">Maximum: <strong id="rms_04_0702__b1368502516563">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row567882535618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0702__p1268682525616">updated</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0702__p206860259569">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0702__p1168652505615">Specifies when ResourceQL was updated.</p>
|
|
<p id="rms_04_0702__p186861525145616">Minimum: <strong id="rms_04_0702__b1868619257565">1</strong></p>
|
|
<p id="rms_04_0702__p1068642515612">Maximum: <strong id="rms_04_0702__b168612514562">64</strong></p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0702__p14687102545610"><strong id="rms_04_0702__b136875255565">Status code: 400</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0702__row768710257561"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="rms_04_0702__p1868872535616">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_0702__p1568812595619">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_0702__p17688325165615">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row1668792545616"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0702__p268819259566">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0702__p568916251562">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0702__p20689725105619">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row6687142515612"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0702__p126893257564">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0702__p116892258566">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0702__p36899251564">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0702__p1069052585617"><strong id="rms_04_0702__b369012565614">Status code: 403</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__response_ErrorResp_1" frame="border" border="1" rules="all"><caption><b>Table 6 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0702__row869082515611"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="rms_04_0702__p1069132525618">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_0702__p10691142513561">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_0702__p66911225135618">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row069012251564"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0702__p116921125105615">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0702__p18692122515563">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0702__p1169382515611">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row5690142511561"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0702__p56931257565">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0702__p1693132516565">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0702__p1269412256565">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
<p id="rms_04_0702__p13694192535613"><strong id="rms_04_0702__b4694182515563">Status code: 500</strong></p>
|
|
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__response_ErrorResp_2" frame="border" border="1" rules="all"><caption><b>Table 7 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0702__row1069518258564"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="rms_04_0702__p14696425105614">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_0702__p5696725145619">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_0702__p96961325105615">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row86951725195618"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0702__p669642514568">error_code</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0702__p1869742513561">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0702__p56977251568">Specifies the error code.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row7695142585610"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0702__p106971125205613">error_msg</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0702__p1469752515614">String</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0702__p10698122511567">Specifies the error message.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section469819257567"><h4 class="sectiontitle">Example Requests</h4><p id="rms_04_0702__p16698182515619">Creating an advanced query to query stopped ECSs</p>
|
|
<pre class="screen" id="rms_04_0702__screen169832565615">POST https://{endpoint}/v1/resource-manager/domains/{domain_id}/stored-queries
|
|
|
|
{
|
|
"name" : "stopped-ecs",
|
|
"description" : "Querying stopped ECSs",
|
|
"expression" : "SELECT id, name FROM resources WHERE provider = 'ecs' AND type = 'cloudservers' AND properties.status = 'SHUTOFF'"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section1570015256564"><h4 class="sectiontitle">Example Responses</h4><p id="rms_04_0702__p117001425105617"><strong id="rms_04_0702__b2700525155612">Status code: 200</strong></p>
|
|
<p id="rms_04_0702__p177001025125617">Operation succeeded.</p>
|
|
<pre class="screen" id="rms_04_0702__screen470172518567">{
|
|
"id" : "62b9126566d400721efceffa",
|
|
"name" : "stopped-ecs",
|
|
"type": "account",
|
|
"description" : "Querying stopped ECSs",
|
|
"expression" : "SELECT id, name FROM resources WHERE provider = 'ecs' AND type = 'cloudservers' AND properties.status = 'SHUTOFF'",
|
|
"created" : "2022-06-27T02:13:57.107Z",
|
|
"updated" : "2022-06-27T02:13:57.107Z"
|
|
}</pre>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section107044271567"><h4 class="sectiontitle">Status Codes</h4>
|
|
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0702__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_04_0702__row8723112510563"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="rms_04_0702__p12704142720569">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_0702__p570482715618">Description</p>
|
|
</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody><tr id="rms_04_0702__row1772382511565"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0702__p1770472715616">200</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0702__p6704172720561">Operation succeeded.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row167233251563"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0702__p1270412705611">400</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0702__p6704192710564">Invalid parameters.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row20723182516569"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0702__p6704112725611">403</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0702__p1270482717569">User authentication failed.</p>
|
|
</td>
|
|
</tr>
|
|
<tr id="rms_04_0702__row47231725145615"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0702__p1570412720569">500</p>
|
|
</td>
|
|
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0702__p187041827175615">Server error.</p>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
<div class="section" id="rms_04_0702__section187041127145615"><h4 class="sectiontitle">Error Codes</h4><p id="rms_04_0702__p7704827145614">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_0700.html">Advanced Queries</a></div>
|
|
</div>
|
|
</div>
|
|
|