Prisma Insights API in PowerShell

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Please sign in to see details of an important advisory in our Customer Advisories area.

Prisma Insights API in PowerShell

L0 Member

Hi all - I am looking for some help. I have been asked if I can extract data using the Prisma Insights API, I have used PowerShell for this in the past for a similar thing in AppDynamics so I think it would be a good starting point for this work.

 

I have managed to get the access token and use this in the next part of the code to make the API call but I am getting the following error:

 

Invoke-RestMethod : {"errorCode":"REST10001","message":"Unexpected server error","details":"Failed to process request"}

 

Has anyone used PowerShell with the API or come across this error ?

 

Any advise appreciated.

1 accepted solution

Accepted Solutions

Hi - I managed to get past the error message. The issue was that PS was not accepting the JSON payload in directly in the code. I put it in a text file and read it in to the script - this solved the issue. 

Thanks for responding though.

View solution in original post

2 REPLIES 2

L3 Networker

StephenBuist, I need a little more context in regards to what you mean by Prisma Insights API.  Please use the below links to start or send me a link to the product you are referring to.

 

Prisma Access Insights APIs 

Access an API with powershell 

Hi - I managed to get past the error message. The issue was that PS was not accepting the JSON payload in directly in the code. I put it in a text file and read it in to the script - this solved the issue. 

Thanks for responding though.

  • 1 accepted solution
  • 1870 Views
  • 2 replies
  • 0 Likes
Like what you see?

Show your appreciation!

Click Like if a post is helpful to you or if you just want to show your support.

Click Accept as Solution to acknowledge that the answer to your question has been provided.

The button appears next to the replies on topics you’ve started. The member who gave the solution and all future visitors to this topic will appreciate it!

These simple actions take just seconds of your time, but go a long way in showing appreciation for community members and the LIVEcommunity as a whole!

The LIVEcommunity thanks you for your participation!