none
HTTP GET - Initiate Orchestrator Runbook via Web Service RRS feed

  • Question

  • Ok, I have another thread open on this but figured it should be posted as a separate topic in hope that it can help someone else.  Some background info...trying to automate the installing of cross platform agents using Orchestrator because we are trying to automate the entire build process for our Linux and Windows servers.  For Linux, I've come up with a working powershell script in Orchestrator that will gather the computername from the initialize data and then discover the system and install the RHEL agent.  My problem now is how can I do a HTTP GET via the orchestrator web service to initiate the runbook from another program; ie PERL?

    Can I not simply do a HTTP POST to the webservice to start a runbook?? ie;

    http://orchestrator:81/Orchestrator2012/Orchestrator.svc/Runbooks(guid'037dbb9a-0f7d-4286-8485-b83ecd811e76')/ComputerName=test

    For this example my only parameter is called "ComputerName".

    I dont' want to have to leverage any other scripting language or program...just want to hit the URL with the parameter set and initiate the runbook. I'm failing miserably at the moment as I simply get page cannot be found.  I've taken a look at this page but it doesn't seem to help me as again, I don't want to have leverage Powershell; http://blogs.technet.com/b/orchestrator/archive/2012/03/25/starting-runbooks-and-stopping-jobs-using-the-system-center-2012-orchestrator-web-service.aspx .  I hope I'm clear with this, and I truly appreciate your help! 

    Garion


    • Edited by albogadoGB Monday, December 3, 2012 2:06 PM
    Monday, December 3, 2012 2:02 PM

Answers

All replies