Quantcast
Channel: VMware Communities : Discussion List - vRealize Orchestrator
Viewing all articles
Browse latest Browse all 6251

vCloud Director - provider storage profile

$
0
0

I am having difficulty starting with the vcloud director API.

 

var host = vcdHost;
var adminHost = host.toAdminObject();
var providerVdcs = adminHost.getProviderVdcs();
foreach (var vdc in providerVdcs) {
if(vdc.id = "xxx") {
var providerVdc = vdc.toAdminExtensionObject();
}
}
var params = System.getModule("com.vmware.library.vCloud.schema.objects.extension").createUpdateProviderStorageProfilesParams(
Array("192.168.10.130"),
null,
null,
null
);
providerVdc.updateStorageProfiles(params, null);

 

However this results in a null pointer error.  Am I starting this in the right direction?


Viewing all articles
Browse latest Browse all 6251

Trending Articles



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