This website uses cookies essential to its operation, for analytics, and for personalized content. By continuing to browse this site, you acknowledge the use of cookies. For details on cookie usage on our site, read our Privacy Policy
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.
... View more
I am trying to get the API to work so we can properly deploy host defenders on our non-container hosts. I cannot authenticate to the API and I am at wit's end. I supply the access key id and secret key value and get back the following:
{"err":"unauthorized access key 123...}
This doesn't make sense to me, i've tried with both access keys created using sys admin role and cloud provisioning role, nothing works. Please let me know if you know what might be wrong... are keys not readily usable upon creation?
This is the curl command I am sending (with private things redacted):
curl -H "Content-Type: application/json" \ -d '{"username":"123...","password":"abc...."}' \ https://us-west1.cloud.twistlock.com/us-3-123456789/api/v1/authenticate
... View more