1

Is it possible to launch a Orchestrator Runbook via the web service only? I know you can access the web service via, http://server01.contoso.com:81/Orchestrator2012/Orchestrator.svc, but is it possible to execute a runbook? If so what would be the correct syntax using the following GUID:247474a3-9f5f-411f-b877-4886262f230a.

Running System Center 2012 R2.

Thanks

Noah Stahl
  • 453
  • 2
  • 8
Paul S.
  • 203
  • 3
  • 9
  • What environment are you looking to invoke the runbook from. Command line, code, other? – Noah Stahl May 14 '15 at 12:46
  • Ideally I was thinking of using a SharePoint list, with the required inputs, and kicking off the runbook. I don't want the runbook constantly polling Sharepoint, thus I want the run book to launch on demand. A way around this at the moment is using the Orchestrator Console website, and it seems to work, albeit, a little clunky and way more information than I want for end users to see. – Paul S. May 15 '15 at 13:49
  • OK. My first choice would be to have Orchestrator as the responsible party for performing actions by polling for requests, since you can provide extra error handling, retries, logging, etc. The overhead of polling is likely negligible -- have you seen evidence otherwise, or why the reason to avoid it? Barring that, I'd try to work with a SharePoint workflow to call the Orchestrator web service, although I haven't tried this personally. See e.g. https://msdn.microsoft.com/en-us/library/office/dn567558.aspx. – Noah Stahl May 15 '15 at 21:36
  • For an example of polling SharePoint list from Orchestrator runbook: https://automys.com/library/asset/self-service-active-directory-user-provisioning-using-system-center-orchestrator – Noah Stahl May 15 '15 at 21:36

1 Answers1

2

Yes, you can send an HTTP POST message using an XML request payload that has the runbook ID and the parameter values. There are some examples available on the web, including this request example and this code example.

If you are able to use PowerShell, there is an Orchestrator Web Service PowerShell module that takes care of all the details for you and simplifies using the web service.

Noah Stahl
  • 453
  • 2
  • 8