<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic CLI Template Configuration - filtering templates by tags unreliable? in Controllers</title>
    <link>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568380#M1360</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone else using the CLI Template Configuration API end point to get template IDs based on tag?&lt;/P&gt;&lt;P&gt;The behaviour seems to be inconsistent for me.&amp;nbsp; I've got a bunch of templates with the tag ZEN and as shown below, doing a query with tags=ZEN I get back a list of template IDs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse last="14" first="0" count="15" type="CliTemplate" responseType="listEntityIds" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664668" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664668&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664668&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664669" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664669&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664669&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664675" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664675&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664675&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664679" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664679&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664679&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664680" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664680&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664680&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664681" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664681&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664681&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664682" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664682&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664682&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664686" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664686&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664686&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555552" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555552&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555552&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555553" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555553&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555553&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555554" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555554&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555554&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/11047036" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/11047036&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;11047036&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/13190177" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/13190177&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;13190177&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/15789774" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/15789774&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;15789774&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;16716703&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select the last template ID above for a closer look you can see that I've also added an additional tag of CARLSTAG so it has both ZEN and CARLSTAG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;$ curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse type="CliTemplate" responseType="getEntity" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entity dtoType="cliTemplateDTO" type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cliTemplateDTO displayName="16716703" id="16716703"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt;the.author&amp;lt;/author&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;### Content removed as it's not relevant&amp;lt;/content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;createdOn&amp;gt;2016-09-28T10:20:37.230+01:00&amp;lt;/createdOn&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deployCount&amp;gt;0&amp;lt;/deployCount&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Example Template Commands&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deviceType&amp;gt;Routers&amp;lt;/deviceType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;ZEN-TEMPLATE-HELP&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;My Templates/Provisioning Templates&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tags&amp;gt;CARLSTAG,ZEN&amp;lt;/tags&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;templateId&amp;gt;16716703&amp;lt;/templateId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;variable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultValue&amp;gt;10000&amp;lt;/defaultValue&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Downstream BW in bps&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;displayLabel&amp;gt;bpsDown&amp;lt;/displayLabel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;bpsDown&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;String&amp;lt;/type&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/variable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cliTemplateDTO&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/entity&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I query for CARLSTAG specifically I get a response count of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse count="0" type="CliTemplate" responseType="listEntityIds" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/queryResponse&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain this behaviour, am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Oct 2016 14:55:11 GMT</pubDate>
    <dc:creator>carl.simpson2</dc:creator>
    <dc:date>2016-10-03T14:55:11Z</dc:date>
    <item>
      <title>CLI Template Configuration - filtering templates by tags unreliable?</title>
      <link>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568380#M1360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is anyone else using the CLI Template Configuration API end point to get template IDs based on tag?&lt;/P&gt;&lt;P&gt;The behaviour seems to be inconsistent for me.&amp;nbsp; I've got a bunch of templates with the tag ZEN and as shown below, doing a query with tags=ZEN I get back a list of template IDs:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse last="14" first="0" count="15" type="CliTemplate" responseType="listEntityIds" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=ZEN&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664668" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664668&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664668&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664669" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664669&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664669&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664675" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664675&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664675&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664679" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664679&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664679&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664680" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664680&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664680&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664681" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664681&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664681&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664682" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664682&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664682&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664686" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/664686&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;664686&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555552" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555552&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555552&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555553" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555553&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555553&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555554" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/4555554&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;4555554&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/11047036" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/11047036&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;11047036&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/13190177" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/13190177&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;13190177&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/15789774" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/15789774&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;15789774&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entityId type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;16716703&amp;lt;/entityId&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I select the last template ID above for a closer look you can see that I've also added an additional tag of CARLSTAG so it has both ZEN and CARLSTAG:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN&gt;$ curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse type="CliTemplate" responseType="getEntity" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;lt;entity dtoType="cliTemplateDTO" type="CliTemplate" url="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate/16716703&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;cliTemplateDTO displayName="16716703" id="16716703"&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;author&amp;gt;the.author&amp;lt;/author&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;content&amp;gt;### Content removed as it's not relevant&amp;lt;/content&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;createdOn&amp;gt;2016-09-28T10:20:37.230+01:00&amp;lt;/createdOn&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deployCount&amp;gt;0&amp;lt;/deployCount&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Example Template Commands&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;deviceType&amp;gt;Routers&amp;lt;/deviceType&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;ZEN-TEMPLATE-HELP&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;path&amp;gt;My Templates/Provisioning Templates&amp;lt;/path&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;tags&amp;gt;CARLSTAG,ZEN&amp;lt;/tags&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;templateId&amp;gt;16716703&amp;lt;/templateId&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;variable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;defaultValue&amp;gt;10000&amp;lt;/defaultValue&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;description&amp;gt;Downstream BW in bps&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;displayLabel&amp;gt;bpsDown&amp;lt;/displayLabel&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;name&amp;gt;bpsDown&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;required&amp;gt;false&amp;lt;/required&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;type&amp;gt;String&amp;lt;/type&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/variable&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/variables&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;/cliTemplateDTO&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;lt;/entity&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/queryResponse&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I query for CARLSTAG specifically I get a response count of 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;$ curl -u carls-username &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Enter host password for user 'carls-username':&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" ?&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;lt;queryResponse count="0" type="CliTemplate" responseType="listEntityIds" requestUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data/CliTemplate?tags=CARLSTAG&lt;/A&gt;&lt;SPAN&gt;" rootUrl="&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://myprimeserver.example.com/webacs/api/v2/data" rel="nofollow" target="_blank"&gt;https://myprimeserver.example.com/webacs/api/v2/data&lt;/A&gt;&lt;SPAN&gt;"&amp;gt;&amp;lt;/queryResponse&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone explain this behaviour, am I missing something?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 14:55:11 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568380#M1360</guid>
      <dc:creator>carl.simpson2</dc:creator>
      <dc:date>2016-10-03T14:55:11Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Template Configuration - filtering templates by tags unreliable?</title>
      <link>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568381#M1361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The tags response parameter is of the type String.&amp;nbsp; So when you filter with tags=CARLSTAG this is called literal filtering.&amp;nbsp; So the API will look for templates where the tag field is, and only is, "CARLSTAG".&amp;nbsp; In other words, this filters to those templates that exclusively have that tag.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Since you're trying to find templates that have the tag, but could have other tags, use the contains() expression.&amp;nbsp; For example, tags=contains("CARLSTAG") will filter to all templates that have CARLSTAG, even if they have other tags.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Oct 2016 16:27:37 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568381#M1361</guid>
      <dc:creator>Spencer Zier</dc:creator>
      <dc:date>2016-10-03T16:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Template Configuration - filtering templates by tags unreliable?</title>
      <link>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568382#M1362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spencer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks, makes sense.&amp;nbsp; It's a shame matching a full tag name isn't possible, to avoid having to worry about a short tag being a sub-string of a longer tag name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Carl&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2016 09:17:54 GMT</pubDate>
      <guid>https://community.cisco.com/t5/controllers/cli-template-configuration-filtering-templates-by-tags/m-p/3568382#M1362</guid>
      <dc:creator>carl.simpson2</dc:creator>
      <dc:date>2016-10-05T09:17:54Z</dc:date>
    </item>
  </channel>
</rss>

