- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
12-13-2023 09:33 PM
Hello,
I'm trying to create a bunch of IAM policies using Prisma's API,
I can create config policies with no issues however when I try to create IAM policies, following Palo Alto's API documentation, I always get 400 error,
So probably my payload is bad done, but I find no errors in this code:
Take in mind I changed the criteria value,
I tried with different rql ids, and changing the payload multiple times, but I can't stop receiving 400 error, thing that doesn't happen with config policies,
I appreciate any help,
12-15-2023 09:59 AM
Hello,
Based on the code snipped you provided you have the basic requirements to this to work using the API. Please open a support case to have this looked at by out support team.
https://pan.dev/prisma-cloud/api/cspm/add-policy/
{
"cloudType": "aws",
"name": "Config test policy",
"policyType": "config",
"rule": {
"criteria": "e1234567-2798-4d1d-a1b0-52d60d49730b",
"name": "test rule",
"parameters": {
"savedSearch": "true"
},
"type": "Config"
},
"severity": "low"
}
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!