<?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: Python API for Compliance Reports in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271972#M153</link>
    <description>&lt;P&gt;The compliance API's are documented under "Compliance Standards" in the API documentation.&amp;nbsp; Updating a policy to add a control to a particular policy is done using the "Policy" API's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My tools that I use for this purpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main link -&amp;nbsp;&lt;A href="https://github.com/jdrieger/rl-toolbox" target="_blank"&gt;https://github.com/jdrieger/rl-toolbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Example tool to copy a compliance report -&amp;nbsp;&lt;A href="https://github.com/jdrieger/rl-toolbox/blob/master/rl-compliance-copy.py" target="_blank"&gt;https://github.com/jdrieger/rl-toolbox/blob/master/rl-compliance-copy.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The main link has the general instructions for the use, but basically, the various example scripts call the rl_lib_general.py and rl_lib_api.py libraries for the API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should be fully functional and do everything you asked about (except the delete).&lt;/P&gt;</description>
    <pubDate>Fri, 21 Jun 2019 04:05:45 GMT</pubDate>
    <dc:creator>jrieger</dc:creator>
    <dc:date>2019-06-21T04:05:45Z</dc:date>
    <item>
      <title>Python API for Compliance Reports</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271956#M152</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to create, read, update and/or delete Compliance Reports via the API but there's no documentation on compliance reports in the REST API documentation. It was confirmed that the API does support CRUD for compliance reports and that a ticket for the inclusion of the information in the documentation has been opened, but I was wondering if in the mean-time anyone has the information for Compliance Reports CRUD via the API in Python.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 02 Sep 2020 17:16:44 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271956#M152</guid>
      <dc:creator>JBox</dc:creator>
      <dc:date>2020-09-02T17:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: Python API for Compliance Reports</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271972#M153</link>
      <description>&lt;P&gt;The compliance API's are documented under "Compliance Standards" in the API documentation.&amp;nbsp; Updating a policy to add a control to a particular policy is done using the "Policy" API's.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My tools that I use for this purpose:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Main link -&amp;nbsp;&lt;A href="https://github.com/jdrieger/rl-toolbox" target="_blank"&gt;https://github.com/jdrieger/rl-toolbox&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Example tool to copy a compliance report -&amp;nbsp;&lt;A href="https://github.com/jdrieger/rl-toolbox/blob/master/rl-compliance-copy.py" target="_blank"&gt;https://github.com/jdrieger/rl-toolbox/blob/master/rl-compliance-copy.py&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The main link has the general instructions for the use, but basically, the various example scripts call the rl_lib_general.py and rl_lib_api.py libraries for the API calls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That should be fully functional and do everything you asked about (except the delete).&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 04:05:45 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271972#M153</guid>
      <dc:creator>jrieger</dc:creator>
      <dc:date>2019-06-21T04:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Python API for Compliance Reports</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271973#M154</link>
      <description>&lt;P&gt;I just realized you might mean the Complaince - Reports tab.&amp;nbsp; In that case, please see the tool created by Eddie:&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/ebeuerle/compliance_report_email" target="_blank"&gt;https://github.com/ebeuerle/compliance_report_email&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is an example of downloading a report and sending it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to actually post the creation of PDF reports, that uses the "&lt;SPAN&gt;&lt;A href="https://api.redlock.io/report" target="_blank"&gt;https://api.redlock.io/report&lt;/A&gt;" API.&amp;nbsp;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Payload for the post object is formatted like:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;{"cloudType":"azure","name":"test","target":{"accounts":["**Account ID's list**"],"regions":[],"timeRange":{"type":"to_now","value":"epoch"}},"type":"HIPAA"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can see other examples in the Chrome - Developer Tools - Network tab.&amp;nbsp; Not sure why this particular API was not documented, but the UI uses it for report creation and the URL and example post objects can be pulled from there for the time being.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Jun 2019 04:18:04 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/python-api-for-compliance-reports/m-p/271973#M154</guid>
      <dc:creator>jrieger</dc:creator>
      <dc:date>2019-06-21T04:18:04Z</dc:date>
    </item>
  </channel>
</rss>

