<?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 Prisma Access Retrieve IP Addresses API in Automation/API Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/337715#M2401</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to run the API script in python to retrieve the gateway addresses, but I am unable to get it to work. Any help would be appreciated. The command I used was:&lt;/P&gt;&lt;P&gt;curl -X POST --data @prismaapi.txt -k -H header-api-key:(key redacted) "&lt;A href="https://api.gpcloudservice.com/getPrismaAccessIP/v2" target="_blank"&gt;https://api.gpcloudservice.com/getPrismaAccessIP/v2&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; get the error,&amp;nbsp;File "&amp;lt;stdin&amp;gt;", line 1 and then&amp;nbsp;SyntaxError: invalid syntax at the POST word. My text file contains:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"serviceType": "gp_gateway",&lt;BR /&gt;"addrType": "all",&lt;BR /&gt;"location": "all"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jul 2020 13:47:54 GMT</pubDate>
    <dc:creator>Justin.Abendroth</dc:creator>
    <dc:date>2020-07-10T13:47:54Z</dc:date>
    <item>
      <title>Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/337715#M2401</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to run the API script in python to retrieve the gateway addresses, but I am unable to get it to work. Any help would be appreciated. The command I used was:&lt;/P&gt;&lt;P&gt;curl -X POST --data @prismaapi.txt -k -H header-api-key:(key redacted) "&lt;A href="https://api.gpcloudservice.com/getPrismaAccessIP/v2" target="_blank"&gt;https://api.gpcloudservice.com/getPrismaAccessIP/v2&lt;/A&gt;"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I&amp;nbsp; get the error,&amp;nbsp;File "&amp;lt;stdin&amp;gt;", line 1 and then&amp;nbsp;SyntaxError: invalid syntax at the POST word. My text file contains:&lt;/P&gt;&lt;P&gt;{&lt;BR /&gt;"serviceType": "gp_gateway",&lt;BR /&gt;"addrType": "all",&lt;BR /&gt;"location": "all"&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jul 2020 13:47:54 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/337715#M2401</guid>
      <dc:creator>Justin.Abendroth</dc:creator>
      <dc:date>2020-07-10T13:47:54Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/337882#M2402</link>
      <description>&lt;P&gt;Just a question, where is your .txt file lcoated?&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jul 2020 13:20:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/337882#M2402</guid>
      <dc:creator>VicAcebedo</dc:creator>
      <dc:date>2020-07-11T13:20:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338693#M2407</link>
      <description>&lt;P&gt;On my desktop.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 15:28:27 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338693#M2407</guid>
      <dc:creator>Justin.Abendroth</dc:creator>
      <dc:date>2020-07-15T15:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338723#M2408</link>
      <description>&lt;P&gt;Are you using Linux OS? Sorry for the follow-up question. I am just studying Prisma Access&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 17:55:46 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338723#M2408</guid>
      <dc:creator>VicAcebedo</dc:creator>
      <dc:date>2020-07-15T17:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338775#M2409</link>
      <description>&lt;P&gt;When testing APIs I always prefer using inline data over working with files.&amp;nbsp; Give this a try:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;curl -k -X POST 'https://api.gpcloudservice.com/getPrismaAccessIP/v2' \
--header 'header-api-key: {{ my_key }}' \
--data-raw '{"serviceType": "gp_gateway","addrType": "all","location": "all"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2020 21:26:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/338775#M2409</guid>
      <dc:creator>rhagen</dc:creator>
      <dc:date>2020-07-15T21:26:01Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/339222#M2415</link>
      <description>&lt;P&gt;I tried that command and received the following output.&lt;/P&gt;&lt;P&gt;curl -k -X POST '&lt;A href="https://api.gpcloudservice.com/getPrismaAccessIP/v2" target="_blank"&gt;https://api.gpcloudservice.com/getPrismaAccessIP/v2&lt;/A&gt;' \ --header 'header-api-key: {{key redacted}}' \ --data-raw '{"serviceType": "gp_gateway","addrType": "all","location": "all"}'&lt;BR /&gt;curl: (1) Protocol "'https" not supported or disabled in libcurl&lt;BR /&gt;curl: (6) Could not resolve host: \&lt;BR /&gt;curl: (3) [globbing] nested brace in column 2&lt;BR /&gt;curl: (6) Could not resolve host: \&lt;BR /&gt;curl: (6) Could not resolve host: gp_gateway,addrType&lt;BR /&gt;curl: (6) Could not resolve host: all,location&lt;BR /&gt;curl: (3) [globbing] unmatched close brace/bracket in column 4&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 13:49:20 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/339222#M2415</guid>
      <dc:creator>Justin.Abendroth</dc:creator>
      <dc:date>2020-07-17T13:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/339235#M2416</link>
      <description>&lt;P&gt;I think there are possibly two issues at hand.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; You may need to update your curl package.&amp;nbsp; This is what I'm running and it has no problem with https.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ curl --version
curl 7.64.1 (x86_64-apple-darwin19.0) libcurl/7.64.1 (SecureTransport) LibreSSL/2.8.3 zlib/1.2.11 nghttp2/1.39.2
Release-Date: 2019-03-27
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS GSS-API HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM NTLM_WB SPNEGO SSL UnixSockets&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; The backslash characters in the example were used to split a long command like this over newlines.&amp;nbsp; If you want to run it all on a single line you'll need to omit the backslashes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;$ curl -k -X POST 'https://api.gpcloudservice.com/getPrismaAccessIP/v2' --header 'header-api-key: {{ key redacted }}' --data-raw '{"serviceType": "gp_gateway","addrType": "all","location": "all"}'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 Jul 2020 15:47:32 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/339235#M2416</guid>
      <dc:creator>rhagen</dc:creator>
      <dc:date>2020-07-17T15:47:32Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/340337#M2420</link>
      <description>&lt;P&gt;I downloaded a curl package and ran the command again, but it did not work. I receive the following messages now:&lt;/P&gt;&lt;P&gt;curl: (6) Could not resolve host: 'https&lt;BR /&gt;curl: (3) nested brace in URL position 2:&lt;BR /&gt;{{&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jul 2020 14:50:01 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/340337#M2420</guid>
      <dc:creator>Justin.Abendroth</dc:creator>
      <dc:date>2020-07-23T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Access Retrieve IP Addresses API</title>
      <link>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/341078#M2424</link>
      <description>&lt;P&gt;I used the following curl script in a Linux environment to get it to work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;curl -X POST -d '{ "serviceType": "all", "addrType": "all", "location": "all" }' -k -H "header-api-key:Insertkeyhere" "&lt;A href="https://api.gpcloudservice.com/getPrismaAccessIP/v2" target="_blank"&gt;https://api.gpcloudservice.com/getPrismaAccessIP/v2&lt;/A&gt;"&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 16:18:51 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/automation-api-discussions/prisma-access-retrieve-ip-addresses-api/m-p/341078#M2424</guid>
      <dc:creator>Justin.Abendroth</dc:creator>
      <dc:date>2020-07-28T16:18:51Z</dc:date>
    </item>
  </channel>
</rss>

