Splunk SOAR

Is any Rest API or link for answer certain prompt ?

johnlee2327
Explorer

All I learning for prompt is that I need to open broser and prompt with SOAR GUI.
Is any Rest API or link available for answer prompt ?
I want to pass some variable in the mail.
If somebody click certain link, It will accept or reject the prompt for event "4" base on API automatically.
It will reduce IT's workload!

Labels (1)
0 Karma

johnlee2327
Explorer

Update.
I have found I can use this API to approve. But still need username password or token T^T.

curl -X POST -k -u "username:password" https://10.250.74.118:8443//rest/approval/15/responses -d "{\"responses\": [\"deny\"]}"


But it showing the error that:

{"failed": true, "message": "Invalid resolution. must be one of approve, deny, delegate"}


Anyone know why?

 

0 Karma

phanTom
SplunkTrust
SplunkTrust

@johnlee2327 

Firstly I would not recommend you use this in email as you will need to embed the username & password in to the link you give. 

External prompts are coming in the next release AFAIK so you may not want to expend a lot of energy on this to then have it natively available. 

For your question I thin you just need to put "deny" as a string not a list object. 

 

-- Hope this helps. Happy SOARing --

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

What Is Splunk? Here’s What You Can Do with Splunk

Hey Splunk Community, we know you know Splunk. You likely leverage its unparalleled ability to ingest, index, ...

Level Up Your .conf25: Splunk Arcade Comes to Boston

With .conf25 right around the corner in Boston, there’s a lot to look forward to — inspiring keynotes, ...

Manual Instrumentation with Splunk Observability Cloud: How to Instrument Frontend ...

Although it might seem daunting, as we’ve seen in this series, manual instrumentation can be straightforward ...