<?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 No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules? in Panorama Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251091#M3066</link>
    <description>&lt;P&gt;I can do this by calling the API manually, but I can't seem to use the operation command module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="r1PmQe" data-processed="true" data-hveid="CBEQAA" data-sfc-cb="" data-wiz-uids="TFmBxe_4k,TFmBxe_4l,TFmBxe_4m" data-sfc-root="c"&gt;
&lt;DIV data-processed="true"&gt;
&lt;DIV class="pHpOfb" data-processed="true" data-animation-atomic=""&gt;
&lt;DIV class="pCTyYe" dir="ltr" data-processed="true"&gt;
&lt;PRE data-processed="true"&gt;&lt;CODE data-processed="true"&gt;&lt;SPAN class="undefined" data-processed="true"&gt;curl --location --globoff &lt;/SPAN&gt;&lt;SPAN class="CS0cqb" data-processed="true"&gt;'https://&amp;lt;Panorama-IP&amp;gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;system&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/show&amp;gt;&amp;amp;target=0123456789&amp;amp;key=&amp;lt;your-api-key&amp;gt;'&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Skrting the issue in Ansible:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;- name: Run an op command on a firewall from Panorama
  ansible.builtin.uri:
    url: "https://{{ ip_address }}/api/?type=op&amp;amp;target={{ active_fw_serial }}&amp;amp;cmd={{ policy_match_xml | urlencode }}&amp;amp;key={{ panorama_api_key }}"
&lt;/LI-CODE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I am missing something, but a quick look at the Python doesn't look like I can use the module for this. To have to manage another set of access, credentials, etc, to reach the firewalls directly for operational commands feels a bit off.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Mar 2026 17:26:04 GMT</pubDate>
    <dc:creator>Eric_B</dc:creator>
    <dc:date>2026-03-27T17:26:04Z</dc:date>
    <item>
      <title>No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251091#M3066</link>
      <description>&lt;P&gt;I can do this by calling the API manually, but I can't seem to use the operation command module.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV class="r1PmQe" data-processed="true" data-hveid="CBEQAA" data-sfc-cb="" data-wiz-uids="TFmBxe_4k,TFmBxe_4l,TFmBxe_4m" data-sfc-root="c"&gt;
&lt;DIV data-processed="true"&gt;
&lt;DIV class="pHpOfb" data-processed="true" data-animation-atomic=""&gt;
&lt;DIV class="pCTyYe" dir="ltr" data-processed="true"&gt;
&lt;PRE data-processed="true"&gt;&lt;CODE data-processed="true"&gt;&lt;SPAN class="undefined" data-processed="true"&gt;curl --location --globoff &lt;/SPAN&gt;&lt;SPAN class="CS0cqb" data-processed="true"&gt;'https://&amp;lt;Panorama-IP&amp;gt;/api/?type=op&amp;amp;cmd=&amp;lt;show&amp;gt;&amp;lt;system&amp;gt;&amp;lt;info&amp;gt;&amp;lt;/info&amp;gt;&amp;lt;/system&amp;gt;&amp;lt;/show&amp;gt;&amp;amp;target=0123456789&amp;amp;key=&amp;lt;your-api-key&amp;gt;'&lt;/SPAN&gt;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;Skrting the issue in Ansible:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;- name: Run an op command on a firewall from Panorama
  ansible.builtin.uri:
    url: "https://{{ ip_address }}/api/?type=op&amp;amp;target={{ active_fw_serial }}&amp;amp;cmd={{ policy_match_xml | urlencode }}&amp;amp;key={{ panorama_api_key }}"
&lt;/LI-CODE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;&lt;BR /&gt;Maybe I am missing something, but a quick look at the Python doesn't look like I can use the module for this. To have to manage another set of access, credentials, etc, to reach the firewalls directly for operational commands feels a bit off.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Mar 2026 17:26:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251091#M3066</guid>
      <dc:creator>Eric_B</dc:creator>
      <dc:date>2026-03-27T17:26:04Z</dc:date>
    </item>
    <item>
      <title>Re: No way to use target to  send an op command to a firewall from Panorama using the supported Ansible modules?</title>
      <link>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251139#M3067</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/119116"&gt;@Eric_B&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;First of all, as a disclaimer, I'm not an expert in ansible.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I just looked the doc of the Ansible available modules.&lt;BR /&gt;&lt;BR /&gt;- panos_op&lt;BR /&gt;&lt;A href="https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_op/" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_op/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;-&amp;nbsp;panos_type_cmd&lt;/P&gt;
&lt;P&gt;&lt;A href="https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_type_cmd/" target="_blank"&gt;https://galaxy.ansible.com/ui/repo/published/paloaltonetworks/panos/content/module/panos_type_cmd/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For both modules, I see there is the "serial_number" which can be used for the target.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Have you explored that?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;Olivier&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 30 Mar 2026 03:09:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/panorama-discussions/no-way-to-use-target-to-send-an-op-command-to-a-firewall-from/m-p/1251139#M3067</guid>
      <dc:creator>ozheng</dc:creator>
      <dc:date>2026-03-30T03:09:53Z</dc:date>
    </item>
  </channel>
</rss>

