- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
04-23-2020 04:12 PM - last edited on 02-07-2022 03:23 PM by jforsythe
04-24-2020 06:57 AM
Hi @BCerier
I also had some problems with this when I started automating Prisma.
Here you can find the API documentation: https://api.docs.prismacloud.io/reference#try-the-apis
I see the following problems in your request:
1. The API URI is not correct, you can find the correct one on the link above
2. You have to use URI/login not authenticate
3. You need to place a POST request: curl -X POST
I hope this helps you.
04-24-2020 07:15 AM - edited 04-24-2020 07:19 AM
Hi @SMeury
thanks for your response. Maybe we are thinking of two different apis? I am aware of that API endpoint, but that is for Prisma Cloud (Redlock) and I am specifically looking for API calls to the compute section (what used to be Twistlock). I need to be able to authenticate with twistlock to get a token to then download an install script to deploy single host defenders when machines start up.
I was just able to figure it out however, my command that I was trying was correct, however the access key i had did not have a role assigned to it within the Prisma Cloud->Compute->Manage->Authentication section. After updating the role in there the access key worked as expected in the curl command that I originally posted.
06-01-2020 05:47 AM - edited 06-01-2020 05:49 AM
Hi,
It looks like a piece of the string is missing. Please try "https://us-west1.cloud.twistlock.com/us-3-123456789/api/v1/authenticate-client"
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!