VMware {code}

 View Only

 VRO: Trying to retrieve a particular workflow is running or not via rest api

modonnellAgFirs's profile image
modonnellAgFirs posted Feb 06, 2025 10:40 AM

Haven't really had much luck.  I have a couple of workflows that bomb out if another instance is currently running.  

$url = "https://<vrahost>/vco/api/workflows/<workflowid>/executions/?state=completed"

$res = Invoke-RestMethod -Uri $url -Headers $headers1

I have tried state,status,condition etc. Every time I just return all instances of the workflow.