doc-exports/docs/config/api-ref/rms_04_0705.html
Wei, Hongmin da6ca4fb3c Config API First Version
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>
2024-08-22 10:49:27 +00:00

372 lines
25 KiB
HTML

<a name="rms_04_0705"></a><a name="rms_04_0705"></a>
<h1 class="topictitle1">Updating an Advanced Query</h1>
<div id="body1851162482319"><div class="section" id="rms_04_0705__section55122462318"><h4 class="sectiontitle">Function</h4><p id="rms_04_0705__p951102415231">This API is used to update a custom query.</p>
</div>
<div class="section" id="rms_04_0705__atuogenerate_1"><h4 class="sectiontitle">Calling Method</h4><p id="rms_04_0705__p651824152317">For details, see <a href="rms_03_0000.html">Calling APIs</a>.</p>
</div>
<div class="section" id="rms_04_0705__atuogenerate_2"><h4 class="sectiontitle">URI</h4><p id="rms_04_0705__p0521824142319">PUT /v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}</p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__table14533247236" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Path Parameters</caption><thead align="left"><tr id="rms_04_0705__row165219244231"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.3.3.2.5.1.1"><p id="rms_04_0705__p1553424102311">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_0705__p1654192442317">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_0705__p1254162416234">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_0705__p17551524162314">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row13528247238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0705__p16552245231">domain_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0705__p13561724152317">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0705__p195613245234">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0705__p55692442314">Specifies tags.</p>
<p id="rms_04_0705__p185792415231">Maximum: <strong id="rms_04_0705__b25792418238">36</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row135312420237"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.1 "><p id="rms_04_0705__p557172417231">query_id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.2 "><p id="rms_04_0705__p7575245233">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.3.3.2.5.1.3 "><p id="rms_04_0705__p558324112320">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.3.3.2.5.1.4 "><p id="rms_04_0705__p185832417237">Specifies the query ID.</p>
<p id="rms_04_0705__p958024102315">Maximum: <strong id="rms_04_0705__b17581024142318">36</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0705__section175817243235"><h4 class="sectiontitle">Request Parameters</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__HeaderParameter" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Request header parameters</caption><thead align="left"><tr id="rms_04_0705__row205952472312"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.2.2.5.1.1"><p id="rms_04_0705__p2601524162312">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_0705__p166018243239">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_0705__p5601324122316">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_0705__p14611124192319">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row115962452320"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0705__p17619246232">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_0705__p126172417237">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0705__p56111242235">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0705__p56292442311">Specifies the invoker's token.</p>
</td>
</tr>
<tr id="rms_04_0705__row15591024132312"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.1 "><p id="rms_04_0705__p1762142422310">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_0705__p1162724182319">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.2.2.5.1.3 "><p id="rms_04_0705__p062142412317">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.2.2.5.1.4 "><p id="rms_04_0705__p14627249238">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_0705__request_StoredQueryRequestBody" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Request body parameters</caption><thead align="left"><tr id="rms_04_0705__row1263172492319"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.4.3.2.5.1.1"><p id="rms_04_0705__p8646242230">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_0705__p13641624182316">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_0705__p664112411234">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_0705__p4651424162311">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row763142432313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0705__p176572419232">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0705__p4651924192310">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0705__p765122422318">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0705__p136652410232">Specifies the ResourceQL name.</p>
<p id="rms_04_0705__p96632432314">Minimum: <strong id="rms_04_0705__b36618244232">1</strong></p>
<p id="rms_04_0705__p1566202415232">Maximum: <strong id="rms_04_0705__b1866724202317">64</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row13631024182315"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0705__p66611241238">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0705__p1666102462317">No</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0705__p1767132417237">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0705__p1567624102310">Specifies the ResourceQL description.</p>
<p id="rms_04_0705__p156732417232">Minimum: <strong id="rms_04_0705__b16782412239">0</strong></p>
<p id="rms_04_0705__p146722462318">Maximum: <strong id="rms_04_0705__b967172418236">512</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row16311244233"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.1 "><p id="rms_04_0705__p10673247231">expression</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.2 "><p id="rms_04_0705__p176802432313">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.4.3.2.5.1.3 "><p id="rms_04_0705__p1568162422310">String</p>
</td>
<td class="cellrowborder" valign="top" width="40%" headers="mcps1.3.4.3.2.5.1.4 "><p id="rms_04_0705__p56892410231">Specifies the ResourceQL expression.</p>
<p id="rms_04_0705__p11689244239">Minimum: <strong id="rms_04_0705__b568112422314">1</strong></p>
<p id="rms_04_0705__p56872411239">Maximum: <strong id="rms_04_0705__b17681624162314">4096</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0705__section169122412232"><h4 class="sectiontitle">Response Parameters</h4><p id="rms_04_0705__p206913247230"><strong id="rms_04_0705__b136912402317">Status code: 200</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__response_StoredQuery" frame="border" border="1" rules="all"><caption><b>Table 4 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0705__row77016243232"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.3.2.4.1.1"><p id="rms_04_0705__p671024192317">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_0705__p18715246236">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_0705__p17711824152315">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row070122415231"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p671152422313">id</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p197232492317">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p17252410235">ResourceQL ID.</p>
<p id="rms_04_0705__p7748246237">Maximum: <strong id="rms_04_0705__b57442472316">256</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row1170182432311"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p187442412235">name</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p174524192316">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p19751024102319">Specifies the ResourceQL name.</p>
<p id="rms_04_0705__p77562472311">Minimum: <strong id="rms_04_0705__b2750249232">1</strong></p>
<p id="rms_04_0705__p1375132422310">Maximum: <strong id="rms_04_0705__b15751724122315">64</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row137601415112313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p1212815341005">type</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p41291534005">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p1012933420018">Indicates a customized query type. The options are <strong id="rms_04_0705__b198111386117">account</strong> and <strong id="rms_04_0705__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_0705__b19041195119">account</strong>.</p>
</td>
</tr>
<tr id="rms_04_0705__row77012432319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p976824122313">description</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p12762242233">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p1077132415233">Specifies the ResourceQL description.</p>
<p id="rms_04_0705__p87762432318">Minimum: <strong id="rms_04_0705__b07792472311">0</strong></p>
<p id="rms_04_0705__p2778247238">Maximum: <strong id="rms_04_0705__b137822492316">512</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row12703243231"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p19781324102319">expression</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p1478142432318">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p6783242234">Specifies the ResourceQL expression.</p>
<p id="rms_04_0705__p17962420235">Minimum: <strong id="rms_04_0705__b77915242231">1</strong></p>
<p id="rms_04_0705__p27915242230">Maximum: <strong id="rms_04_0705__b879192410230">4096</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row970152422319"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p3791024142317">created</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p279524142315">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p78062416232">Specifies when ResourceQL was created.</p>
<p id="rms_04_0705__p580172402320">Minimum: <strong id="rms_04_0705__b1080132414232">1</strong></p>
<p id="rms_04_0705__p1480224132316">Maximum: <strong id="rms_04_0705__b1380524162316">64</strong></p>
</td>
</tr>
<tr id="rms_04_0705__row177042422313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.1 "><p id="rms_04_0705__p68082418233">updated</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.3.2.4.1.2 "><p id="rms_04_0705__p281424102316">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.3.2.4.1.3 "><p id="rms_04_0705__p5811124122318">Specifies when ResourceQL was updated.</p>
<p id="rms_04_0705__p08142452311">Minimum: <strong id="rms_04_0705__b14817243232">1</strong></p>
<p id="rms_04_0705__p181102482319">Maximum: <strong id="rms_04_0705__b181112472315">64</strong></p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0705__p108192452313"><strong id="rms_04_0705__b1282124132315">Status code: 400</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__response_ErrorResp" frame="border" border="1" rules="all"><caption><b>Table 5 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0705__row1182142432314"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.5.2.4.1.1"><p id="rms_04_0705__p20837246237">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_0705__p2084424142310">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_0705__p68412247234">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row168252414236"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0705__p7840244234">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0705__p168472412312">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0705__p18858244235">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0705__row12829243235"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.1 "><p id="rms_04_0705__p188512243238">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.5.2.4.1.2 "><p id="rms_04_0705__p12858246233">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.5.2.4.1.3 "><p id="rms_04_0705__p886122417235">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0705__p1386132410236"><strong id="rms_04_0705__b10861424142319">Status code: 403</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__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_0705__row1886152413234"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.7.2.4.1.1"><p id="rms_04_0705__p6871242230">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_0705__p11871824132311">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_0705__p888202442316">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row886192452314"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0705__p1888102418236">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0705__p1888202419234">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0705__p1588162442319">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0705__row1786182415232"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.1 "><p id="rms_04_0705__p1889112462312">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.7.2.4.1.2 "><p id="rms_04_0705__p78910247236">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.7.2.4.1.3 "><p id="rms_04_0705__p118962416235">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0705__p8890243237"><strong id="rms_04_0705__b1889172419239">Status code: 404</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__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_0705__row59015242239"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.9.2.4.1.1"><p id="rms_04_0705__p109122442312">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_0705__p139102413236">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_0705__p18912024172312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row11902246239"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0705__p992112442313">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0705__p19922244231">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0705__p18921224152317">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0705__row890324132310"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.1 "><p id="rms_04_0705__p12931324182313">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.9.2.4.1.2 "><p id="rms_04_0705__p15936246233">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.9.2.4.1.3 "><p id="rms_04_0705__p39452412310">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
<p id="rms_04_0705__p119452402312"><strong id="rms_04_0705__b13940245239">Status code: 500</strong></p>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__response_ErrorResp_3" frame="border" border="1" rules="all"><caption><b>Table 8 </b>Response body parameters</caption><thead align="left"><tr id="rms_04_0705__row495132418231"><th align="left" class="cellrowborder" valign="top" width="20%" id="mcps1.3.5.11.2.4.1.1"><p id="rms_04_0705__p20961124172311">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_0705__p1796102452312">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_0705__p59692412312">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row29542402313"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0705__p197152418235">error_code</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0705__p189722413238">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0705__p198182419234">Specifies the error code.</p>
</td>
</tr>
<tr id="rms_04_0705__row10955244238"><td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.1 "><p id="rms_04_0705__p398202413237">error_msg</p>
</td>
<td class="cellrowborder" valign="top" width="20%" headers="mcps1.3.5.11.2.4.1.2 "><p id="rms_04_0705__p209852482311">String</p>
</td>
<td class="cellrowborder" valign="top" width="60%" headers="mcps1.3.5.11.2.4.1.3 "><p id="rms_04_0705__p198124122317">Specifies the error message.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0705__section19942402313"><h4 class="sectiontitle">Example Requests</h4><p id="rms_04_0705__p599112411230">Updating the advanced query to query running ECSs</p>
<pre class="screen" id="rms_04_0705__screen29917249237">PUT https://{endpoint}/v1/resource-manager/domains/{domain_id}/stored-queries/{query_id}
{
"name" : "running-ecs",
"description" : "Querying running ECSs",
"expression" : "SELECT id, name FROM resources WHERE provider = 'ecs' AND type = 'cloudservers' AND properties.status = 'ACTIVE'"
}</pre>
</div>
<div class="section" id="rms_04_0705__section1310132472313"><h4 class="sectiontitle">Example Responses</h4><p id="rms_04_0705__p1210118243231"><strong id="rms_04_0705__b81011624112311">Status code: 200</strong></p>
<p id="rms_04_0705__p710114247239">Operation succeeded.</p>
<pre class="screen" id="rms_04_0705__screen0102202414239">{
"id" : "62b9126566d400721efceffa",
"name" : "running-ecs",
"type" : "account",
"description" : "Querying running ECSs",
"expression" : "SELECT id, name FROM resources WHERE provider = 'ecs' AND type = 'cloudservers' AND properties.status = 'ACTIVE'",
"created" : "2022-06-27T02:13:57.107Z",
"updated" : "2022-07-09T09:12:00.007Z"
}</pre>
</div>
<div class="section" id="rms_04_0705__section257812452311"><h4 class="sectiontitle">Status Codes</h4>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="rms_04_0705__status_code" frame="border" border="1" rules="all"><thead align="left"><tr id="rms_04_0705__row713082492317"><th align="left" class="cellrowborder" valign="top" width="15%" id="mcps1.3.8.2.1.3.1.1"><p id="rms_04_0705__p557819243235">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_0705__p10579724142313">Description</p>
</th>
</tr>
</thead>
<tbody><tr id="rms_04_0705__row1713015246233"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0705__p16579224162310">200</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0705__p165791024112315">Operation succeeded.</p>
</td>
</tr>
<tr id="rms_04_0705__row81301124182318"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0705__p25791824182312">400</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0705__p8579924142312">Invalid parameters.</p>
</td>
</tr>
<tr id="rms_04_0705__row1713082410234"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0705__p85793249239">403</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0705__p25791724132314">User authentication failed.</p>
</td>
</tr>
<tr id="rms_04_0705__row141302024192319"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0705__p7580124122313">404</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0705__p558002418238">No resource found.</p>
</td>
</tr>
<tr id="rms_04_0705__row14130124172313"><td class="cellrowborder" valign="top" width="15%" headers="mcps1.3.8.2.1.3.1.1 "><p id="rms_04_0705__p258052411231">500</p>
</td>
<td class="cellrowborder" valign="top" width="85%" headers="mcps1.3.8.2.1.3.1.2 "><p id="rms_04_0705__p145801724162318">Server error.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="rms_04_0705__section125801624162314"><h4 class="sectiontitle">Error Codes</h4><p id="rms_04_0705__p1558052410235">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>