VMware Cloud Community
MichalCz
Contributor
Contributor

vRO 8.1 python - get inventory hosts

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ł

0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee

Hi,

I don't think this is possible at the moment. Currently, the scripting API exposed by vRO plug-ins is fully available only in classic Javacript runtime.

One possible workaround would be to utilize public vRO platform REST API and call it from Python, using some Python REST client. Not exactly the same as the full-blown scripting API, but I guess it's better than nothing Smiley Happy

0 Kudos