VMware Cloud Community
blanket
Enthusiast
Enthusiast
Jump to solution

Get count of running workflows on VRO server

Hi all,

is there a way to read number of running workflows on a VRO server?

The same number, that VRO client displays:

pastedImage_0.png

Best options would be a REST call...

Second best would be some internal VRO class that holds this information...

Worst case would be to iterate all the workflows' executions and check their state... Smiley Happy

The scenario is: I want to wait for the last workflow to finish before wiping the server as a part of CI. Any other way to approach that?

Thanks!

1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

The REST API call to fetch the running workflows is GET https://<host>:<port>/vco/api/catalog/System/WorkflowExecution?conditions=state=running

where <host> and <port> are the IP address/FQDN and the port of your vRO server.

The response contains attribute total having as value the number of the running workflows.

-----------------------------------------

Was it helpful? Let us know by completing this short survey here.

View solution in original post

2 Replies
iiliev
VMware Employee
VMware Employee
Jump to solution

Hi,

The REST API call to fetch the running workflows is GET https://<host>:<port>/vco/api/catalog/System/WorkflowExecution?conditions=state=running

where <host> and <port> are the IP address/FQDN and the port of your vRO server.

The response contains attribute total having as value the number of the running workflows.

-----------------------------------------

Was it helpful? Let us know by completing this short survey here.