Quantcast
Channel: VMware Communities: Message List - vSphere Management SDK
Viewing all articles
Browse latest Browse all 2052

Re: Creating a VMFS Datastore using Vi Perl Toolkit Question

$
0
0

If you use get_view() and just need it to call a method, I recommend you use properties => ['name'] to minimize the SDK overhead:

 

$thisDatastore = Vim::get_view(mo_ref => $dsRef, properties => ['name']);

 

You can also 'hack' out an entity object view as well, if you really wanted to avoid another SDK call to the API (though I'd recommend the get_view() process):

 

$thisDatastore = new Datastore();

$thisDatastore->{'mo_ref'} = $dsRef;


Viewing all articles
Browse latest Browse all 2052

Trending Articles



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