Stop an SC Orchestrator 2022 Runbook via JSON based Web API

McDaniel, Dave 71 Reputation points
2022-11-22T17:20:16.823+00:00

Has anyone had any luck stopping a running 2022 Orch runbook job via Powershell Invoke-RestMethod? If so, what method did you use, and how did you structure the request?

System Center Orchestrator
System Center Orchestrator
A family of System Center products that provide an automation platform for orchestrating and integrating both Microsoft and non-Microsoft IT tools.
219 questions
Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,455 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. McDaniel, Dave 71 Reputation points
    2022-11-24T14:47:08.04+00:00

    I figured this out from running debug on the console. It is fairly straightforward. The method is "Patch" and no JSON body is necessary. Below is my example. I hope this helps someone else.
    263947-powershell-stop-rb.jpg

    0 comments No comments