<?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 Using the API to export all Platforms, fails with an error 500 in PAM Self-Hosted Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345851#M39062</link>
    <description>&lt;P&gt;Using psPAS module, and indeed when using the API calls directly there doesn't appear to be a way to retrieve all installed Platforms.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PASPlatform&lt;/P&gt;&lt;P&gt;Invoke-PASRestMethod:&lt;/P&gt;&lt;P&gt;Line |&lt;/P&gt;&lt;P&gt; 130 |  …   $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $S …&lt;/P&gt;&lt;P&gt;     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;     | [500] The given key was not present in the dictionary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$s = Get-PASSession&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$Request = @{&lt;/P&gt;&lt;P&gt;    "Method"      = "GET"&lt;/P&gt;&lt;P&gt;    "Uri"         = "$($s.BaseUri)/API/Platforms"&lt;/P&gt;&lt;P&gt;    "WebSession"  = $s.WebSession&lt;/P&gt;&lt;P&gt;    "ContentType" = "application/json"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod @Request&lt;/P&gt;&lt;P&gt;Invoke-RestMethod: {"ErrorCode":"CAWS00001E","ErrorMessage":"The given key was not present in the dictionary."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have found that if you Export all your accounts, and select the unique Platform IDs, you can collect the platform details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PASAccount |select PlatformID -unique| Get-PASPlatform |Select -expand details|Export-Excel Platforms.xlsx -BoldTopRow -AutoSize -AutoFilter -FreezeTopRow -NoNumberConversion UnrecoverableErrors,RCReconcileReasons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought I would share as a workaround until CyberArk fixes the API/Platforms reset api&lt;/P&gt;</description>
    <pubDate>Mon, 17 Aug 2020 19:56:06 GMT</pubDate>
    <dc:creator>CyberArkAlumni</dc:creator>
    <dc:date>2020-08-17T19:56:06Z</dc:date>
    <item>
      <title>Using the API to export all Platforms, fails with an error 500</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345851#M39062</link>
      <description>&lt;P&gt;Using psPAS module, and indeed when using the API calls directly there doesn't appear to be a way to retrieve all installed Platforms.  &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PASPlatform&lt;/P&gt;&lt;P&gt;Invoke-PASRestMethod:&lt;/P&gt;&lt;P&gt;Line |&lt;/P&gt;&lt;P&gt; 130 |  …   $result = Invoke-PASRestMethod -Uri $URI -Method GET -WebSession $S …&lt;/P&gt;&lt;P&gt;     |                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;     | [500] The given key was not present in the dictionary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$s = Get-PASSession&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$Request = @{&lt;/P&gt;&lt;P&gt;    "Method"      = "GET"&lt;/P&gt;&lt;P&gt;    "Uri"         = "$($s.BaseUri)/API/Platforms"&lt;/P&gt;&lt;P&gt;    "WebSession"  = $s.WebSession&lt;/P&gt;&lt;P&gt;    "ContentType" = "application/json"&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Invoke-RestMethod @Request&lt;/P&gt;&lt;P&gt;Invoke-RestMethod: {"ErrorCode":"CAWS00001E","ErrorMessage":"The given key was not present in the dictionary."}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have found that if you Export all your accounts, and select the unique Platform IDs, you can collect the platform details:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Get-PASAccount |select PlatformID -unique| Get-PASPlatform |Select -expand details|Export-Excel Platforms.xlsx -BoldTopRow -AutoSize -AutoFilter -FreezeTopRow -NoNumberConversion UnrecoverableErrors,RCReconcileReasons&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thought I would share as a workaround until CyberArk fixes the API/Platforms reset api&lt;/P&gt;</description>
      <pubDate>Mon, 17 Aug 2020 19:56:06 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345851#M39062</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-08-17T19:56:06Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to export all Platforms, fails with an error 500</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345852#M39063</link>
      <description>&lt;P&gt;Which CyberArk version is being used?&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 11:18:23 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345852#M39063</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-08-18T11:18:23Z</dc:date>
    </item>
    <item>
      <title>Re: Using the API to export all Platforms, fails with an error 500</title>
      <link>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345853#M39064</link>
      <description>&lt;P&gt;I'm using 11.4 PVWA.  The Get-PSPlatforms issues of gathering all platforms is the same as in this closed &lt;A alt="https://github.com/pspete/psPAS/issues/246" href="https://github.com/pspete/psPAS/issues/246" target="_blank"&gt;issue&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Aug 2020 14:28:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/pam-self-hosted-discussions/using-the-api-to-export-all-platforms-fails-with-an-error-500/m-p/1345853#M39064</guid>
      <dc:creator>CyberArkAlumni</dc:creator>
      <dc:date>2020-08-18T14:28:40Z</dc:date>
    </item>
  </channel>
</rss>

