doc-exports/docs/vpn/api-ref/en_topic_0093011484.html
gtema 6b71b4a1fa Initial import of the VPN API document
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com>
Co-authored-by: gtema <artem.goncharov@gmail.com>
Co-committed-by: gtema <artem.goncharov@gmail.com>
2022-12-07 13:22:09 +00:00

294 lines
24 KiB
HTML

<a name="en_topic_0093011484"></a><a name="en_topic_0093011484"></a>
<h1 class="topictitle1">Querying VPN Resource Instances by Tag</h1>
<div id="body1538044062050"><div class="section" id="en_topic_0093011484__section25709437"><h4 class="sectiontitle"><strong id="en_topic_0093011484__en-us_topic_0053740021_b842352706112523">Function</strong></h4><p id="en_topic_0093011484__p4626311155220">This interface is used to query VPN resource instances by tag.</p>
<p id="en_topic_0093011484__p18626181110528">Tag Management Service (TMS) uses this API to filter out service resources and display them in a list. These services must have the query capabilities.</p>
</div>
<div class="section" id="en_topic_0093011484__section30058349"><h4 class="sectiontitle">URI</h4><p id="en_topic_0093011484__p422821810225">POST /v2.0/{project_id}/ipsec-site-connections/resource_instances/action</p>
</div>
<div class="section" id="en_topic_0093011484__section23101291384"><h4 class="sectiontitle">Request Message</h4><p id="en_topic_0093011484__p98511332113011"><a href="#en_topic_0093011484__table45111823181914">Table 1</a> describes the request parameters.</p>
<div class="tablenoborder"><a name="en_topic_0093011484__table45111823181914"></a><a name="table45111823181914"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table45111823181914" frame="border" border="1" rules="all"><caption><b>Table 1 </b>Request parameters</caption><thead align="left"><tr id="en_topic_0093011484__row88521623101920"><th align="left" class="cellrowborder" valign="top" width="13.861386138613863%" id="mcps1.3.3.3.2.5.1.1"><p id="en_topic_0093011484__p168521123141913"><strong id="en_topic_0093011484__b842352706172115">Parameter</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="10.891089108910892%" id="mcps1.3.3.3.2.5.1.2"><p id="en_topic_0093011484__p68525234198"><strong id="en_topic_0093011484__b84235270610412">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="17.82178217821782%" id="mcps1.3.3.3.2.5.1.3"><p id="en_topic_0093011484__p68524237196"><strong id="en_topic_0093011484__b8423527061798">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="57.42574257425742%" id="mcps1.3.3.3.2.5.1.4"><p id="en_topic_0093011484__p1785232391916"><strong id="en_topic_0093011484__b842352706151625">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011484__row9852172316195"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011484__p38521123191911">tags</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011484__p198521723191910">List&lt;tag&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011484__p15852102341915">No</p>
</td>
<td class="cellrowborder" valign="top" width="57.42574257425742%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011484__p1885242381910">Specifies the included tags. Each tag contains a maximum of 10 keys, and each key contains a maximum of 10 values. The structure body cannot be missing, and the key cannot be left blank or set to an empty string. Each tag key must be unique, and each tag value in a tag must be unique.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row485202331911"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011484__p08523237195">limit</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011484__p1285218232197">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011484__p1985292314197">No</p>
</td>
<td class="cellrowborder" valign="top" width="57.42574257425742%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011484__p13852152341914">Sets the page size. This parameter is not available when <strong id="en_topic_0093011484__b842352706112419">action</strong> is set to <strong id="en_topic_0093011484__b842352706112428">count</strong>. The default value is <strong id="en_topic_0093011484__b842352706112654">1000</strong> when <strong id="en_topic_0093011484__b39236199214364">action</strong> is set to <strong id="en_topic_0093011484__b132640505514364">filter</strong>. The maximum value is <strong id="en_topic_0093011484__b842352706112658">1000</strong>, and the minimum value is <strong id="en_topic_0093011484__b842352706112710">1</strong>. The value cannot be a negative number.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row14852423111914"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011484__p885219237198">offset</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011484__p1985218237191">Integer</p>
</td>
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011484__p5852132317199">No</p>
</td>
<td class="cellrowborder" valign="top" width="57.42574257425742%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011484__p1785342311917">Specifies the index position. The query starts from the next piece of data indexed by this parameter. This parameter is not required when you query data on the first page. The value in the response returned for querying data on the previous page will be included in this parameter for querying data on subsequent pages. This parameter is not available when <strong id="en_topic_0093011484__b84235270621521">action</strong> is set to <strong id="en_topic_0093011484__b84235270621525">count</strong>. If <strong id="en_topic_0093011484__b84235270621528">action</strong> is set to <strong id="en_topic_0093011484__b84235270621532">filter</strong>, the value must be a number, and the default value is <strong id="en_topic_0093011484__b84235270621539">0</strong>. The value cannot be a negative number.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row28531123181913"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011484__p1853123121912">action</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011484__p14853122371914">String</p>
</td>
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011484__p17853152331919">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="57.42574257425742%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011484__p6853182320190">Specifies the operation to perform. The value can only be <strong id="en_topic_0093011484__b842352706145527">filter</strong> (filtering) or <strong id="en_topic_0093011484__b842352706145557">count</strong> (querying the total number).</p>
<p id="en_topic_0093011484__p1185332315194">The value <strong id="en_topic_0093011484__b842352706112921">filter</strong> indicates pagination query. The value <strong id="en_topic_0093011484__b84235270611312">count</strong> indicates that the total number of query results meeting the search criteria will be returned.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row1885318232195"><td class="cellrowborder" valign="top" width="13.861386138613863%" headers="mcps1.3.3.3.2.5.1.1 "><p id="en_topic_0093011484__p085315232194">matches</p>
</td>
<td class="cellrowborder" valign="top" width="10.891089108910892%" headers="mcps1.3.3.3.2.5.1.2 "><p id="en_topic_0093011484__p16853023111917">List&lt;match&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="17.82178217821782%" headers="mcps1.3.3.3.2.5.1.3 "><p id="en_topic_0093011484__p18853102313197">No</p>
</td>
<td class="cellrowborder" valign="top" width="57.42574257425742%" headers="mcps1.3.3.3.2.5.1.4 "><p id="en_topic_0093011484__p128537230197">Specifies the search criteria. The tag key is the field to match. Currently, only <strong id="en_topic_0093011484__b84235270615351">resource_name</strong> is supported. The tag value indicates the value to be matched. The <strong id="en_topic_0093011484__b10991315962239">key</strong> field is a fixed dictionary value.</p>
</td>
</tr>
</tbody>
</table>
</div>
<ul id="en_topic_0093011484__ul14853923101916"><li id="en_topic_0093011484__li485313231192">Description of field <strong id="en_topic_0093011484__b84235270695528">tag</strong></li></ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table1548032316199" frame="border" border="1" rules="all"><thead align="left"><tr id="en_topic_0093011484__row1785310237196"><th align="left" class="cellrowborder" valign="top" width="31.626837316268368%" id="mcps1.3.3.5.1.5.1.1"><p id="en_topic_0093011484__p185312312192"><strong id="en_topic_0093011484__b84235270617246">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885708%" id="mcps1.3.3.5.1.5.1.2"><p id="en_topic_0093011484__p208531923101913"><strong id="en_topic_0093011484__b638771301">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.288571142885708%" id="mcps1.3.3.5.1.5.1.3"><p id="en_topic_0093011484__p685312311196"><strong id="en_topic_0093011484__b1014822031">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.7960203979602%" id="mcps1.3.3.5.1.5.1.4"><p id="en_topic_0093011484__p4853122311199"><strong id="en_topic_0093011484__b852492472">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011484__row08532238197"><td class="cellrowborder" valign="top" width="31.626837316268368%" headers="mcps1.3.3.5.1.5.1.1 "><p id="en_topic_0093011484__p16854122312191">key</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885708%" headers="mcps1.3.3.5.1.5.1.2 "><p id="en_topic_0093011484__p167509961911">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885708%" headers="mcps1.3.3.5.1.5.1.3 "><p id="en_topic_0093011484__p5854122371919">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.3.5.1.5.1.4 "><p id="en_topic_0093011484__p085432316193">Specifies the tag key. It contains a maximum of 127 Unicode characters. It cannot be left blank. (This parameter is not verified in the search process.)</p>
</td>
</tr>
<tr id="en_topic_0093011484__row15854623141911"><td class="cellrowborder" valign="top" width="31.626837316268368%" headers="mcps1.3.3.5.1.5.1.1 "><p id="en_topic_0093011484__p68541223141919">values</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885708%" headers="mcps1.3.3.5.1.5.1.2 "><p id="en_topic_0093011484__p838119133192">List&lt;String&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="14.288571142885708%" headers="mcps1.3.3.5.1.5.1.3 "><p id="en_topic_0093011484__p188541423181914">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="39.7960203979602%" headers="mcps1.3.3.5.1.5.1.4 "><p id="en_topic_0093011484__p198541623121914">Specifies the tag value list. Each value can contain a maximum of 255 Unicode characters. An empty list for <strong id="en_topic_0093011484__b842352706151018">values</strong> indicates any value. The resources containing one or more values listed in <strong id="en_topic_0093011484__b84235270619578">values</strong> will be found and displayed.</p>
</td>
</tr>
</tbody>
</table>
</div>
<ul id="en_topic_0093011484__ul737316213292"><li id="en_topic_0093011484__li1137316272917">Description of field <strong id="en_topic_0093011484__b14222185113518">match</strong></li></ul>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table13731215298" frame="border" border="1" rules="all"><thead align="left"><tr id="en_topic_0093011484__row1836752192916"><th align="left" class="cellrowborder" valign="top" width="33.33333333333333%" id="mcps1.3.3.7.1.5.1.1"><p id="en_topic_0093011484__p836712211290"><strong id="en_topic_0093011484__b1600468818">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="13.13131313131313%" id="mcps1.3.3.7.1.5.1.2"><p id="en_topic_0093011484__p185201217172010"><strong>Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="14.14141414141414%" id="mcps1.3.3.7.1.5.1.3"><p id="en_topic_0093011484__p8367424292"><strong id="en_topic_0093011484__b2122021134">Mandatory</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="39.39393939393939%" id="mcps1.3.3.7.1.5.1.4"><p id="en_topic_0093011484__p103671626297"><strong id="en_topic_0093011484__b114777541">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011484__row123691521298"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.7.1.5.1.1 "><p id="en_topic_0093011484__p1136914292918">key</p>
</td>
<td class="cellrowborder" valign="top" width="13.13131313131313%" headers="mcps1.3.3.7.1.5.1.2 "><p id="en_topic_0093011484__p132326387201">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.3.7.1.5.1.3 "><p id="en_topic_0093011484__p13692242912">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.3.7.1.5.1.4 "><p id="en_topic_0093011484__p936962102919">Specifies the tag key. Currently, the tag key can only be the resource name.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row18373132182918"><td class="cellrowborder" valign="top" width="33.33333333333333%" headers="mcps1.3.3.7.1.5.1.1 "><p id="en_topic_0093011484__p16369329291">value</p>
</td>
<td class="cellrowborder" valign="top" width="13.13131313131313%" headers="mcps1.3.3.7.1.5.1.2 "><p id="en_topic_0093011484__p1213719405202">String</p>
</td>
<td class="cellrowborder" valign="top" width="14.14141414141414%" headers="mcps1.3.3.7.1.5.1.3 "><p id="en_topic_0093011484__p1137312212917">Yes</p>
</td>
<td class="cellrowborder" valign="top" width="39.39393939393939%" headers="mcps1.3.3.7.1.5.1.4 "><p id="en_topic_0093011484__p11373102182916">Specifies the tag value. Each value can contain a maximum of 255 Unicode characters.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="section" id="en_topic_0093011484__section95436234191"><h4 class="sectiontitle">Response Parameter</h4><div class="p" id="en_topic_0093011484__p111092544306"><a href="#en_topic_0093011484__table1135702419184">Table 2</a> describes the response parameters.
<div class="tablenoborder"><a name="en_topic_0093011484__table1135702419184"></a><a name="table1135702419184"></a><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table1135702419184" frame="border" border="1" rules="all"><caption><b>Table 2 </b>Response Parameter</caption><thead align="left"></thead>
<tbody></tbody>
</table>
</div>
</div>
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table669961372515" frame="border" border="1" rules="all"><thead align="left"><tr id="en_topic_0093011484__row689311382512"><th align="left" class="cellrowborder" valign="top" width="28.000000000000004%" id="mcps1.3.4.3.1.4.1.1"><p id="en_topic_0093011484__p11893151312516"><strong id="en_topic_0093011484__b525762354">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="37.330000000000005%" id="mcps1.3.4.3.1.4.1.2"><p id="en_topic_0093011484__p1789361319251"><strong id="en_topic_0093011484__b1923039965">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="34.67%" id="mcps1.3.4.3.1.4.1.3"><p id="en_topic_0093011484__p19893131310258"><strong id="en_topic_0093011484__b1263216195">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011484__row7893201315255"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.3.1.4.1.1 "><p id="en_topic_0093011484__p889311310255">resources</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.3.1.4.1.2 "><p id="en_topic_0093011484__p989313131254">List&lt;resource&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.3.1.4.1.3 "><p id="en_topic_0093011484__p1893111313258">N/A</p>
</td>
</tr>
<tr id="en_topic_0093011484__row1989331314259"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.3.1.4.1.1 "><p id="en_topic_0093011484__p158931313152513">total_count</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.3.1.4.1.2 "><p id="en_topic_0093011484__p58931113112511">int</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.3.1.4.1.3 "><p id="en_topic_0093011484__p10893121312258">Specifies the total number of records.</p>
</td>
</tr>
</tbody>
</table>
</div>
<div class="p" id="en_topic_0093011484__p86501416123810">
<div class="tablenoborder"><table cellpadding="4" cellspacing="0" summary="" id="en_topic_0093011484__table15678313132518" frame="border" border="1" rules="all"><caption><b>Table 3 </b>Description of field <strong id="en_topic_0093011484__b7642103510720">resource</strong></caption><thead align="left"><tr id="en_topic_0093011484__row14893181314253"><th align="left" class="cellrowborder" valign="top" width="28.000000000000004%" id="mcps1.3.4.4.1.2.4.1.1"><p id="en_topic_0093011484__p1889361320250"><strong id="en_topic_0093011484__b1772434113716">Name</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="37.330000000000005%" id="mcps1.3.4.4.1.2.4.1.2"><p id="en_topic_0093011484__p8893161342512"><strong id="en_topic_0093011484__b1667894219717">Type</strong></p>
</th>
<th align="left" class="cellrowborder" valign="top" width="34.67%" id="mcps1.3.4.4.1.2.4.1.3"><p id="en_topic_0093011484__p3894151362514"><strong id="en_topic_0093011484__b664217431575">Description</strong></p>
</th>
</tr>
</thead>
<tbody><tr id="en_topic_0093011484__row389421332512"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.4.1.2.4.1.1 "><p id="en_topic_0093011484__p1289461362516">resource_id</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.4.1.2.4.1.2 "><p id="en_topic_0093011484__p13894111322519">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.4.1.2.4.1.3 "><p id="en_topic_0093011484__p589451313259">Specifies the resource ID.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row12894213172511"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.4.1.2.4.1.1 "><p id="en_topic_0093011484__p11894181312514">resouce_detail</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.4.1.2.4.1.2 "><p id="en_topic_0093011484__p6894121314259">Object</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.4.1.2.4.1.3 "><p id="en_topic_0093011484__p14894181315254">Specifies the resource details. The value is a resource object, used for extension. This parameter is left blank by default.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row1189431342514"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.4.1.2.4.1.1 "><p id="en_topic_0093011484__p58945135256">tags</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.4.1.2.4.1.2 "><p id="en_topic_0093011484__p8894813142516">List&lt;resource_tag&gt;</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.4.1.2.4.1.3 "><p id="en_topic_0093011484__p188941913122519">Specifies the tag list. This parameter is an empty array by default if there is no tag.</p>
</td>
</tr>
<tr id="en_topic_0093011484__row889451315256"><td class="cellrowborder" valign="top" width="28.000000000000004%" headers="mcps1.3.4.4.1.2.4.1.1 "><p id="en_topic_0093011484__p188943136256">resource_name</p>
</td>
<td class="cellrowborder" valign="top" width="37.330000000000005%" headers="mcps1.3.4.4.1.2.4.1.2 "><p id="en_topic_0093011484__p2894191372516">String</p>
</td>
<td class="cellrowborder" valign="top" width="34.67%" headers="mcps1.3.4.4.1.2.4.1.3 "><p id="en_topic_0093011484__p3894141342514">Specifies the resource name. This parameter is an empty string by default if there is no resource name.</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="section" id="en_topic_0093011484__section107702427334"><h4 class="sectiontitle">Example</h4><ul id="en_topic_0093011484__ul25029582346"><li id="en_topic_0093011484__li15502158133418">Request Example<pre class="screen" id="en_topic_0093011484__screen320612400213">POST /v2.0/{project_id}/ipsec-site-connections/resource_instances/action</pre>
</li><li id="en_topic_0093011484__li11918111310360">Request Body<ul id="en_topic_0093011484__ul1385915234191"><li id="en_topic_0093011484__li128595235191">Request body when <strong id="en_topic_0093011484__b3984195118143">action</strong> is set to <strong id="en_topic_0093011484__b18985125131414">filter</strong></li></ul>
<pre class="screen" id="en_topic_0093011484__screen1547594735916">{
"offset": "0",
"limit": "100",
"action": "filter",
"matches": [
{
"key": "resource_name",
"value": "resource1"
}
],
"tags": [
{
"key": "key1",
"values": [
"*value1",
"value2"
]
}
]
}</pre>
<ul id="en_topic_0093011484__ul185992341916"><li id="en_topic_0093011484__li78591423161916">Request body when <strong id="en_topic_0093011484__b842352706124239">action</strong> is set to <strong id="en_topic_0093011484__b842352706124243">count</strong></li></ul>
<pre class="screen" id="en_topic_0093011484__screen1045912561517">{
"action": "count",
"tags": [
{
"key": "key1",
"values": [
"value1",
"value2"
]
},
{
"key": "key2",
"values": [
"value1",
"value2"
]
}
],
"matches": [
{
"key": "resource_name",
"value": "resource1"
}
]
}</pre>
</li><li id="en_topic_0093011484__li19874611352">Example Response<ul id="en_topic_0093011484__ul686114239196"><li id="en_topic_0093011484__li4861162315191">Response body when <strong id="en_topic_0093011484__b8423527069924">action</strong> is set to <strong id="en_topic_0093011484__b8423527069921">filter</strong></li></ul>
<pre class="screen" id="en_topic_0093011484__screen786152371919">{
"resources": [
{
"resource_detail": null,
"resource_id": "cdfs_cefs_wesas_12_dsad",
"resource_name": "resouece1",
"tags": [
{
"key": "key1",
"value": "value1"
},
{
"key": "key2",
"value": "value1"
}
]
}
],
"total_count": 1000
}
</pre>
<ul id="en_topic_0093011484__ul197501433335"><li id="en_topic_0093011484__li77507331933">Response body when <strong id="en_topic_0093011484__b842352706203143">action</strong> is set to <strong id="en_topic_0093011484__b842352706203145">count</strong></li></ul>
<pre class="screen" id="en_topic_0093011484__screen139471650732">{
"total_count": 1000
}</pre>
</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="en_topic_0093011483.html">Tag Management</a></div>
</div>
</div>