- Access exclusive content
- Connect with peers
- Share your expertise
- Find support resources
10-15-2019 04:32 AM - last edited on 02-07-2022 01:45 PM by RPrasadi
Anyone have experience using the Prisma Cloud API with dismissing alert, i've been testing the but always getting 404 or 400 response, check parameters below
url = "https://api.prismacloud.io/alert/dismiss"
10-16-2019 01:26 PM
Dismissal Range is for the new snooze feature to specify the time range for keeping the alert in dismissed status.
If you are dismissing without snoozing, then Dismissal Range is not needed.
10-15-2019 08:14 AM
Policies array might be required - here's mine that works and it seems to be the only major thing missing from your payload. Also make sure it's a POST.
Payload:
{
"alerts":[
"P-1424086"
],
"policies":[
],
"filter":{
"filters":[
{
"operator":"=",
"name":"alert.status",
"value":"open"
},
{
"operator":"=",
"name":"policy.type",
"value":"config"
}
],
"timeRange":{
"type":"relative",
"value":{
"amount":1,
"unit":"week"
}
}
},
"dismissalNote":"Test2"
}
10-16-2019 05:43 AM - edited 10-16-2019 05:44 AM
Thanks on your response,
I've solve it via removing "dismissalTimeRange" on parameter. i don't have any idea why it does not work having that on parameters.
Thanks!
10-16-2019 01:26 PM
Dismissal Range is for the new snooze feature to specify the time range for keeping the alert in dismissed status.
If you are dismissing without snoozing, then Dismissal Range is not needed.
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!