03-24-2023 08:05 AM
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.
04-17-2023 01:13 AM
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.
04-06-2023 01:29 PM
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.
04-17-2023 01:13 AM
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.
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!