Skip to main content

How to rerun any Action if it got failed due to some reason via job

  • July 23, 2024
  • 4 replies
  • 35 views

messier63
Forum|alt.badge.img+5

Hi team,

I want to know if there is any possibility that I can rerun any failed action via the job

Also, can I check if any action failed and rerun via script? 

Thanks

 

4 replies

dnehoda
Staff
Forum|alt.badge.img+16
  • Staff
  • August 5, 2024

Hi messier63 - inside the case there is a re-run option.  

Also, there is an API call that could be scripted to run and check - Ill check around and see if I can find anything useful.  

curl -X 'POST' \\ 'https://yourSOARinstance.siemplify-soar.com/api/external/v1/playbooks/RerunPlaybook' \\

{
  "cyberCaseId": 0,
  "alertGroupIdentifier": "string",
  "alertIdentifier": "string",
  "shouldRunAutomatic": true,
  "wfName": "string",
  "originalWorkflowDefinitionIdentifier": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
curl -X 'POST' \\
  'https://yourSOARinstance.siemplify-soar.com/api/external/v1/playbooks/RerunPlaybook' \\
  -H 'accept: */*' \\
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \\
  -d '{
  "cyberCaseId": 0,
  "alertGroupIdentifier": "string",
  "alertIdentifier": "string",
  "shouldRunAutomatic": true,
  "wfName": "string",
  "originalWorkflowDefinitionIdentifier": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

 


SoarAndy
Staff
Forum|alt.badge.img+12
  • Staff
  • August 9, 2024

Look at your swagger file to see supported API calls
https://____.siemplify-soar.com/swagger/index.html

Sometimes to find the right call, I use "Network" tab under DevTools, then complete the action on the Web front end, look for the API call the UI initiated and clone that. 

HTH


messier63
Forum|alt.badge.img+5
  • Author
  • Bronze 1
  • October 8, 2024

Hi messier63 - inside the case there is a re-run option.  

Also, there is an API call that could be scripted to run and check - Ill check around and see if I can find anything useful.  

curl -X 'POST' \\ 'https://yourSOARinstance.siemplify-soar.com/api/external/v1/playbooks/RerunPlaybook' \\

{
  "cyberCaseId": 0,
  "alertGroupIdentifier": "string",
  "alertIdentifier": "string",
  "shouldRunAutomatic": true,
  "wfName": "string",
  "originalWorkflowDefinitionIdentifier": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}
curl -X 'POST' \\
  'https://yourSOARinstance.siemplify-soar.com/api/external/v1/playbooks/RerunPlaybook' \\
  -H 'accept: */*' \\
  -H 'Content-Type: application/json;odata.metadata=minimal;odata.streaming=true' \\
  -d '{
  "cyberCaseId": 0,
  "alertGroupIdentifier": "string",
  "alertIdentifier": "string",
  "shouldRunAutomatic": true,
  "wfName": "string",
  "originalWorkflowDefinitionIdentifier": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
}'

 


hi dnehoda,

i m looking for an action rerun rather than a whole playbook return. I tried to look around the doc but could not find anything.


messier63
Forum|alt.badge.img+5
  • Author
  • Bronze 1
  • October 8, 2024

Look at your swagger file to see supported API calls
https://____.siemplify-soar.com/swagger/index.html

Sometimes to find the right call, I use "Network" tab under DevTools, then complete the action on the Web front end, look for the API call the UI initiated and clone that. 

HTH


Hi Andy,

let me try this once.