AndyGilly Posted May 14, 2020 Share Posted May 14, 2020 We have some automated jobs that run on a change of state of a data set outside of Hornbill Could anyone help with the best way to trigger the runbook from these areas. Is it the case we would need a service manager request to trigger the runbook or is there another way of talking straight to ITOM?? thanks Andy Link to comment Share on other sites More sharing options...
Steve G Posted May 14, 2020 Share Posted May 14, 2020 Hi @AndyGilly, This can be done using the Hornbill API. An example in Postman: Where the URL is built using the Endpoint field from the About modal in the Admin console, followed by the service (automation) and the method (runbookRun): The request is authenticated using a Hornbill API Key in the request headers: And the body is JSON, and made up of the service, method and params, including the Runbook Name (the Process ID from the Runbok settings), and an array containing the input params as defined in your Runbook settings: { "methodCall":{ "@service":"automation", "@method":"runbookRun", "params": { "name":"add-ram-to-vm", "inputParam":[ { "name":"VMName", "value":"DEV-A-WRK-10-64" }, { "name":"SetRAM", "value":"1.5GB" } ] } } } The API is documented here: https://api.hornbill.com/automation/?op=runbookRun Let me know if you need any more information regarding this! Cheers, Steve Link to comment Share on other sites More sharing options...
AndyGilly Posted May 14, 2020 Author Share Posted May 14, 2020 thanks @Steve G will a look Link to comment Share on other sites More sharing options...
Gerry Posted May 14, 2020 Share Posted May 14, 2020 @AndyGilly When you say "that run on a change of state of a data set outside of Hornbill" can you be more specific here? Are you looking for something other than an API, or does the API cover it? Gerry Link to comment Share on other sites More sharing options...
AndyGilly Posted May 14, 2020 Author Share Posted May 14, 2020 Hi @Gerry I have got James to take a look at the post and I got a thumbs up on the API, so think we are all good thanks Andy 1 Link to comment Share on other sites More sharing options...
Gerry Posted May 19, 2020 Share Posted May 19, 2020 @AndyGilly So you you envisage using the Hornbill Platform and its ITOM capabilities outside of automation within the servicedesk? presumably in the same way as you currently do with the other workflow tool you are using? If so, how do you currently your runbooks? do you use some form of launchpad/control panel? Gerry Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now