<?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: List alarms through XML API or REST API in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358787#M87929</link>
    <description>&lt;P&gt;Ok, but why this feature is available through CLI command and not API ? With the default administrator account, I can list alarms through CLI but not with the API. It's a bit weird&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an place where this choice is justified ? I ask the question to anyone who is able&amp;nbsp;to answer me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 14:35:49 GMT</pubDate>
    <dc:creator>KBannier</dc:creator>
    <dc:date>2020-10-26T14:35:49Z</dc:date>
    <item>
      <title>List alarms through XML API or REST API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358346#M87872</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to list alarms that occurs on a VM-50 Firewall and I don't know how to do it.&amp;nbsp;With the ssh CLI, it's possible to list many log types as&amp;nbsp;&lt;EM&gt;config&lt;/EM&gt;, &lt;EM&gt;threat&lt;/EM&gt;, &lt;EM&gt;wildfire&lt;/EM&gt;&amp;nbsp;and &lt;EM&gt;alarms&lt;/EM&gt;. But with the XML API, I can list some logs, &lt;EM&gt;threat&lt;/EM&gt; or&amp;nbsp;&lt;EM&gt;config&lt;/EM&gt; by example (&lt;A href="https://docs.paloaltonetworks.com/pan-os/10-0/pan-os-panorama-api/pan-os-xml-api-request-types/retrieve-logs-api/api-log-retrieval-parameters.html" target="_self"&gt;Here the doc&lt;/A&gt;) but not alarms. Is it possible ?&amp;nbsp;&lt;/P&gt;&lt;P&gt;If it's not possible, is there a place (in documentation?) where this choice is justified ?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use a VM-50 firewall with the 10.0.1 version of PAN-OS, and I use the account&amp;nbsp;&lt;EM&gt;admin&lt;/EM&gt; in this case with &lt;EM&gt;Superuser&lt;/EM&gt; role&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In others terms, I want to do this request :&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="javascript"&gt;curl -k -X GET "https://&amp;lt;firewall-ip&amp;gt;/api/?key=&amp;lt;api-key&amp;gt;&amp;amp;type=log&amp;amp;log-type=alarm"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But it's not possible for now, I got this response:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;&amp;lt;response status = 'error' code = '400'&amp;gt;&amp;lt;result&amp;gt;&amp;lt;msg&amp;gt;Illegal value for parameter "log-type" [alarm]. Should be one of : [auth, config, corr, corr-categ, corr-detail, data, decryption, external, globalprotect, gtp, hipmatch, iptag, sctp, system, threat, traffic, tunnel, url, userid, wildfire].&amp;lt;/msg&amp;gt;&amp;lt;/result&amp;gt;&amp;lt;/response&amp;gt;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you in advance&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 14:37:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358346#M87872</guid>
      <dc:creator>KBannier</dc:creator>
      <dc:date>2020-10-26T14:37:49Z</dc:date>
    </item>
    <item>
      <title>Re: List alarms through XML API or REST API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358738#M87919</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Based on the response you received from the API, it appears Alarms is not possible to query via API&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 10:48:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358738#M87919</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2020-10-26T10:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: List alarms through XML API or REST API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358787#M87929</link>
      <description>&lt;P&gt;Ok, but why this feature is available through CLI command and not API ? With the default administrator account, I can list alarms through CLI but not with the API. It's a bit weird&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there an place where this choice is justified ? I ask the question to anyone who is able&amp;nbsp;to answer me&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 14:35:49 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358787#M87929</guid>
      <dc:creator>KBannier</dc:creator>
      <dc:date>2020-10-26T14:35:49Z</dc:date>
    </item>
    <item>
      <title>Re: List alarms through XML API or REST API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358896#M87932</link>
      <description>&lt;P&gt;Hello again.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many of the ppl who use these threads are PANW customers as well.&lt;/P&gt;
&lt;P&gt;We are a community to assist each other.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for where a place that this is justified... well, you can open a ticket with TAC to get official support.&lt;/P&gt;
&lt;P&gt;However, my comment was based on the response that the FW provided to you.&lt;/P&gt;
&lt;P&gt;For whatever reason, PANW engineering did not include an API to query for alarms.&amp;nbsp; Why?&amp;nbsp; I do not know, but I am glad to help you determine what your next steps are.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And I do agree, it is a bit weird;&amp;nbsp; all we can do, is work together as a community.&lt;/P&gt;
&lt;P&gt;I do not see the API supports this.&lt;/P&gt;
&lt;P&gt;Please contact PANW TAC and advise, so we can grow!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 19:48:53 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/358896#M87932</guid>
      <dc:creator>S.Cantwell</dc:creator>
      <dc:date>2020-10-26T19:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: List alarms through XML API or REST API</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/359095#M87958</link>
      <description>&lt;P&gt;Re,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your answer.&amp;nbsp;My previous answer might sound rough, but it wasn't my intention.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will contact the technical support for more details on this.&amp;nbsp; I'm building a product that will be able to list events and alarms, so I would like to to it through API. Maybe I can make a shell script to connect through SSH. I will make research on that&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 14:50:10 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/list-alarms-through-xml-api-or-rest-api/m-p/359095#M87958</guid>
      <dc:creator>KBannier</dc:creator>
      <dc:date>2020-10-27T14:50:10Z</dc:date>
    </item>
  </channel>
</rss>

