<?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 Re: API/CLI - how to access subset of devices by tag assigned to them? in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/614485#M2576</link>
    <description>&lt;P&gt;This is probably far too late of a response. But I was searching for the same thing and ultimately used the web-mgmt interface debug to find it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CLI
From configure - show mgt-config devices &amp;lt;serial number&amp;gt; vsys vsys1 tag
API
/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/mgt-config/devices/entry[@name='&amp;lt;serial_number&amp;gt;']/vsys/entry[@name='vsys1']/tags

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 24 Oct 2024 18:25:53 GMT</pubDate>
    <dc:creator>KennySwetnam</dc:creator>
    <dc:date>2024-10-24T18:25:53Z</dc:date>
    <item>
      <title>API/CLI - how to access subset of devices by tag assigned to them?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/444647#M512</link>
      <description>&lt;P&gt;Hi there,&amp;nbsp;&lt;BR /&gt;I'm going to use device's tags to have another dimension beside of template/device groups.&amp;nbsp;&lt;BR /&gt;I've assigned a tag to subset of devices (using Panorama&amp;gt;Managed devices WebUI), but I'm really lost how I can get access/filter devices by this tag in CLI/API (except WebUI&amp;nbsp; - search/filter them on or when selecting scope to push).&amp;nbsp;&lt;BR /&gt;When I'm using Panorama XML API to get all connected devices, I didn't get any mention of the tag in response text.&amp;nbsp;&lt;BR /&gt;I've also looked into CLI commands that will show the tag assigned, but found only commands related to traffic tagging, not device tags.&lt;BR /&gt;Any idea how to get this done on CLI/API?&lt;BR /&gt;P.S. Panorama running PanOS 10.0.7&lt;/P&gt;</description>
      <pubDate>Mon, 01 Nov 2021 09:19:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/444647#M512</guid>
      <dc:creator>DDmchk</dc:creator>
      <dc:date>2021-11-01T09:19:32Z</dc:date>
    </item>
    <item>
      <title>Re: API/CLI - how to access subset of devices by tag assigned to them?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/458597#M651</link>
      <description>&lt;P&gt;You may play with shared objects&amp;nbsp;&lt;A href="https://docs.paloaltonetworks.com/panorama/9-0/panorama-admin/manage-firewalls/manage-device-groups/manage-unused-shared-objects.html" target="_blank"&gt;Manage Unused Shared Objects (paloaltonetworks.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You may also configure the firewall locally and import it:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://knowledgebase.paloaltonetworks.com/KCSArticleDetail?id=kA10g000000CloRCAS" target="_blank"&gt;How to add a locally managed firewall to panorama management (paloaltonetworks.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Still good to note is that better make a template stack with templates that you use on every firewall and then more specific ones specifically for firewalls&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/panorama/9-0/panorama-admin/panorama-overview/centralized-firewall-configuration-and-update-management/templates-and-template-stacks.html" target="_blank"&gt;Templates and Template Stacks (paloaltonetworks.com)&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://docs.paloaltonetworks.com/panorama/9-1/panorama-admin/panorama-overview/centralized-firewall-configuration-and-update-management/device-groups/device-group-hierarchy.html" target="_blank"&gt;Device Group Hierarchy (paloaltonetworks.com)&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Jan 2022 11:25:28 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/458597#M651</guid>
      <dc:creator>nikoolayy1</dc:creator>
      <dc:date>2022-01-13T11:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: API/CLI - how to access subset of devices by tag assigned to them?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/614485#M2576</link>
      <description>&lt;P&gt;This is probably far too late of a response. But I was searching for the same thing and ultimately used the web-mgmt interface debug to find it:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;CLI
From configure - show mgt-config devices &amp;lt;serial number&amp;gt; vsys vsys1 tag
API
/api/?type=config&amp;amp;action=get&amp;amp;xpath=/config/mgt-config/devices/entry[@name='&amp;lt;serial_number&amp;gt;']/vsys/entry[@name='vsys1']/tags

&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 24 Oct 2024 18:25:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/api-cli-how-to-access-subset-of-devices-by-tag-assigned-to-them/m-p/614485#M2576</guid>
      <dc:creator>KennySwetnam</dc:creator>
      <dc:date>2024-10-24T18:25:53Z</dc:date>
    </item>
  </channel>
</rss>

