<?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 API documentation in General Topics</title>
    <link>https://live.paloaltonetworks.com/t5/general-topics/api-documentation/m-p/221901#M98150</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to query Mineneld using the API, in order to get indicators or information about the tool, to automate some reports.&lt;/P&gt;
&lt;P&gt;For example, i need to know how many indicatores we have added in the last X days, or last month..., how many indicators are in some feed...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that Minemeld has an API, but I have not found&amp;nbsp;documentation about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;M.&lt;/P&gt;</description>
    <pubDate>Thu, 12 Jul 2018 11:04:18 GMT</pubDate>
    <dc:creator>miguel.tubia</dc:creator>
    <dc:date>2018-07-12T11:04:18Z</dc:date>
    <item>
      <title>API documentation</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-documentation/m-p/221901#M98150</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;i want to query Mineneld using the API, in order to get indicators or information about the tool, to automate some reports.&lt;/P&gt;
&lt;P&gt;For example, i need to know how many indicatores we have added in the last X days, or last month..., how many indicators are in some feed...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I know that Minemeld has an API, but I have not found&amp;nbsp;documentation about it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your help.&lt;/P&gt;
&lt;P&gt;Best regards.&lt;/P&gt;
&lt;P&gt;M.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Jul 2018 11:04:18 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-documentation/m-p/221901#M98150</guid>
      <dc:creator>miguel.tubia</dc:creator>
      <dc:date>2018-07-12T11:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: API documentation</title>
      <link>https://live.paloaltonetworks.com/t5/general-topics/api-documentation/m-p/223248#M98151</link>
      <description>&lt;P&gt;Hi &lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/93255"&gt;@miguel.tubia&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm afraid such a documentation for the API does not exist yet. Your best choice as of today is to deep dive into the source code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example, the code at &lt;A href="https://github.com/PaloAltoNetworks/minemeld-core/blob/master/minemeld/flask/metricsapi.py" target="_self"&gt;/flask/metricsapi.py&lt;/A&gt; contains the implementation of the "/metrics" entry point. Just perform a basic auth HTTPS call like the following one I did to get metrics for my node named "dshield_blocklist"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;GET /metrics/dshield_blocklist HTTP/1.1
Host: myminemeld:8443
Authorization: Basic YWRtaW46bWluZW1lbGQ=&lt;/PRE&gt;
&lt;P&gt;You'll get a response like:&lt;/P&gt;
&lt;PRE&gt;{
    "result": [
        {
            "metric": "length",
            "values": [
                [
                    1532251260,
                    null
                ],
                [
                    1532253120,
                    null
                ],
                [
                    1532254980,
                    null
                ],
                [
                    1532256840,
                    null
                ],
                ...
            ]
        },
        {
            "metric": "update.tx",
            "values": [
                [
                    1532253120,
                    null
                ],
                [
                    1532254980,
                    null
                ],
                [
                    1532256840,
                    null
                ],
                [
                    1532258700,
                    null
                ],
                ...
            ]
        }
    ]
}&lt;/PRE&gt;
&lt;P&gt;It contains samples with a timestamp and a difference from the previous sample.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Another chance (if you feel comfortable with UX development) is to deep dive into the&amp;nbsp;&lt;A href="https://github.com/PaloAltoNetworks/minemeld-webui" target="_self"&gt;minemeld-webui&lt;/A&gt; project and learn how these metrics are polled from the API and shown in the WebUI dashboard.&lt;/P&gt;</description>
      <pubDate>Mon, 23 Jul 2018 09:57:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/general-topics/api-documentation/m-p/223248#M98151</guid>
      <dc:creator>xhoms</dc:creator>
      <dc:date>2018-07-23T09:57:32Z</dc:date>
    </item>
  </channel>
</rss>

