MichalCz
Contributor
Contributor

vRO 8.1 Python

Hello,

Are there any libraries and documentation how to use Python for actions/workflows programming in vRO 8.1?

Speciffically I am looking for a method how can I access vRO Inventory, what is possible with Javascript by doing for example:

var hosts = RESTHostManager.getHosts()

Regards,

Michał

1 Reply
maverix7
VMware Employee
VMware Employee

Accessing system APIs in the new runtimes, the way it was in the classic JavaScript script, is not supported. For now the recommended path is to use an HTTP/REST client in the runtime of choice and call vRO's REST API to retrieve any vRO objects. V00Z11​ has an example for PowerShell here: Re: vRO 8.1 scriptable task with PowerShell error: Function was stopped. Most likely because it hit ...  , for python it should be similar.