May 07 2020 06:54 AM
We can trigger playbooks manually on an incident from the incident page, but is it possible to do this via an API? The goal is to produce some sort of playbook chaining without having to build complex playbooks that are error prone.
Any input appreciated!
May 07 2020 08:23 AM
May 07 2020 08:24 AM
Yes, you can build a Playbook which trigger is when an HTTP POST is received. As you can see in the screenshot below, you get the URL that you should use in your POST call. You can then execute this POST call from another LogicApp/Playbook.
Does that answer your question?
May 10 2020 06:19 AM
Running multiple playbooks when a rule triggers will be available real soon now.
Also, you probably refer to alert triggers (manual or automated) as those are available today. Incident triggers are expected in the near future.
~ Ofer
May 13 2020 11:03 AM
@Javier Soriano sorry for the late reply. That seems like a good alternative, although not exactly what I'm after. Do you have any more details on the request body JSON schema or a link with more information so that I can poke around a bit more? :)
May 15 2020 05:03 AM
@Ofer_Shezaf that's nice to hear that running multiple playbooks will be available soon, will be a welcome addition!
What I'm asking for here is an API-version of this button:
Which is found after clicking here on an incident alert page:
For example being able to trigger the playbook by sending a request to an API-endpoint and specifying the workspace, resource group, incident id or number, and the name or id of the playbook. Makes sense? :)
May 17 2020 12:07 AM
@wadstromdev : gotcha. today you will have to use a webhook and fetch the incident information using the API. We will look into this request for the future.
Thanks!
~ Ofer