<?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 How to list all inventory assets via Prisma Cloud API in Cortex Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555087#M1011</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was looking for some guidance in using the Prisma Cloud API to retrieve information. I am wanting to list all inventory assets (and hopefully their detail) via the API. Basically similar to information that can viewed via the portal e.g. listing all assets in the explorer for say Resource Type=EC2 Instance....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asset explorer.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/53089iB0111E272E154979/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="asset explorer.png" alt="asset explorer.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...I can see the total number of assets using the &lt;STRONG&gt;/v2/Inventory&amp;nbsp;&lt;/STRONG&gt;endpoint...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ec2 instance.png" style="width: 515px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/53090i2412C541928CF635/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="ec2 instance.png" alt="ec2 instance.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but would like to retrieve all the assets/details of those 15408 resources. I can see&amp;nbsp;&lt;STRONG&gt;/uai/v1/asset&amp;nbsp;&lt;/STRONG&gt;call but that requires an asset ID to passed. Is there a way to list all assets based on a filter and return detailed information about them via the API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 24 Aug 2023 15:17:31 GMT</pubDate>
    <dc:creator>Flipcode</dc:creator>
    <dc:date>2023-08-24T15:17:31Z</dc:date>
    <item>
      <title>How to list all inventory assets via Prisma Cloud API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555087#M1011</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Was looking for some guidance in using the Prisma Cloud API to retrieve information. I am wanting to list all inventory assets (and hopefully their detail) via the API. Basically similar to information that can viewed via the portal e.g. listing all assets in the explorer for say Resource Type=EC2 Instance....&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="asset explorer.png" style="width: 999px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/53089iB0111E272E154979/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="asset explorer.png" alt="asset explorer.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;...I can see the total number of assets using the &lt;STRONG&gt;/v2/Inventory&amp;nbsp;&lt;/STRONG&gt;endpoint...&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ec2 instance.png" style="width: 515px;"&gt;&lt;img src="https://live.paloaltonetworks.com/t5/image/serverpage/image-id/53090i2412C541928CF635/image-size/large/is-moderation-mode/true?v=v2&amp;amp;px=999" role="button" title="ec2 instance.png" alt="ec2 instance.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;...but would like to retrieve all the assets/details of those 15408 resources. I can see&amp;nbsp;&lt;STRONG&gt;/uai/v1/asset&amp;nbsp;&lt;/STRONG&gt;call but that requires an asset ID to passed. Is there a way to list all assets based on a filter and return detailed information about them via the API?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 24 Aug 2023 15:17:31 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555087#M1011</guid>
      <dc:creator>Flipcode</dc:creator>
      <dc:date>2023-08-24T15:17:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all inventory assets via Prisma Cloud API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555312#M1014</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Please refer the following link&amp;nbsp;&lt;A href="https://github.com/PaloAltoNetworks/prismacloud-api-python/tree/main/prismacloud/api/cspm" target="_blank"&gt;https://github.com/PaloAltoNetworks/prismacloud-api-python/tree/main/prismacloud/api/cspm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Aug 2023 14:50:47 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555312#M1014</guid>
      <dc:creator>stumiki</dc:creator>
      <dc:date>2023-08-25T14:50:47Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all inventory assets via Prisma Cloud API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555474#M1019</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Following up on Asset Inventory API, please let us know if any questions. Complete resource inventory from Prisma Cloud can be pulled using the below API&amp;nbsp;&lt;A href="https://github.com/PaloAltoNetworks/prismacloud-api-python/blob/feature/add-asset-inventory-v2/scripts/" target="_blank"&gt;https://github.com/PaloAltoNetworks/prismacloud-api-python/blob/feature/add-asset-inventory-v2/scripts/&lt;/A&gt;&lt;STRONG&gt;pcs_resources_export.py. &lt;/STRONG&gt;Output will be full inventory of the assets and related metadata. Ref: s3 inventory attached&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 05:13:09 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/555474#M1019</guid>
      <dc:creator>smakineni</dc:creator>
      <dc:date>2023-08-28T05:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to list all inventory assets via Prisma Cloud API</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/557463#M1034</link>
      <description>&lt;P&gt;Hello Flipcode,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use the following endpoint to get the list of resources similar to what you have in your screenshot&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://pan.dev/prisma-cloud/api/cspm/post-resource-scan-info/" target="_blank"&gt;https://pan.dev/prisma-cloud/api/cspm/post-resource-scan-info/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can use the example payload as below ;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;{"filters":[&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;{"name":"cloud.service","operator":"=","value":"Amazon EC2"},&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;{"name":"cloud.type","operator":"=","value":"aws"},&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;{"name":"resource.type","operator":"=","value":"EC2 Instance"},&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;{"name":"scan.status","operator":"=","value":"all"}],&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;"limit":100,&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;"timeRange": {&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;"type": "to_now",&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;"value": "login"&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt; }&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;STRONG&gt;}&lt;/STRONG&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;Please replace the Time range section of the Payload with the appropriate one that fit your search criteria. refer to the below for details ;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&lt;SPAN&gt;&lt;A href="https://pan.dev/prisma-cloud/api/cspm/api-time-range-model/" target="_blank"&gt;https://pan.dev/prisma-cloud/api/cspm/api-time-range-model/&lt;/A&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 12 Sep 2023 04:11:11 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-cloud-discussions/how-to-list-all-inventory-assets-via-prisma-cloud-api/m-p/557463#M1034</guid>
      <dc:creator>OOmotayo</dc:creator>
      <dc:date>2023-09-12T04:11:11Z</dc:date>
    </item>
  </channel>
</rss>

