Page tree
Skip to end of metadata
Go to start of metadata
POST /recipes/:recipe_id/run.xml
POST /recipes/:recipe_id/run.json

XML Request example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type:application/xml' -u user:userpass -d '<smart_servers type="array"><smart_server>identifier1</smart_server><smart_server>identifier2</smart_server></smart_servers>'  --url http://onapp.test/recipes/:recipe_id/run.xml

JSON Request example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:password -d ' {"smart_servers":["identifier1","identifier2"]}' --url http://onapp.test/recipes/:recipe_id/run.json

Where you have to specify:

identifier - identifier of a smart server you want to run the recipe on

ID of the required recipe in the URL

When applying one recipe to several servers via API, there is possibility to run the recipe incompatible with the server type (Unix recipe on Windows server or vice versa). In this case the transaction will be scheduled and completed, but the recipe will not do anything.

To view the list of server the particular recipe is applied to, see the Get List of Recipes Applied to Server request.

#trackbackRdf ($trackbackUtils.getContentIdentifier($page) $page.title $trackbackUtils.getPingUrl($page))
  • No labels