Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

Get datacenter or resource pool by using vRO script

$
0
0

I'm currently building a service blueprint but don't want the user to have to enter resource pool or folder information.

 

How do I retrieve objects such as a datacenter or resource pool using the vRO scripting language?

 

I'm currently trying to use var myDatacenters = VcPlugin.getAllDatacenters(); to retrieve a list of datacenters to search through but I am returning zero results.

 

Are there any tricks to doing this?  Do I need to connect to vCenter first?  Is vCenter perhaps not communicating with vRO?

 

Any help would be greatly appreciated!


Viewing all articles
Browse latest Browse all 9859

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>