Jump to content

Recommended Posts

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 post
Share on other sites

Hi @AndyGilly,

This can be done using the Hornbill API. An example in Postman:

image.png

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):

image.png

The request is authenticated using a Hornbill API Key in the request headers:

image.png

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"
				}
			]
		}
	}
}

image.png  

 

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 post
Share on other sites

@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 post
Share on other sites

@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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...