Quantcast
Channel: VMware Communities : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 176483

vCenter Orchestrator v5.1 with vCloud Director v5.1

$
0
0

I am using vCenter Orchestrator v5.1 with vCloud v5.1 and I am trying to change the vApp Storage Profile at the point of Instantiation using the following code

 

var objVclDefaultStorageProfileSection;
objVclDefaultStorageProfileSection = new VclDefaultStorageProfileSection();
objVclDefaultStorageProfileSection["info"] = new VclMsg();
objVclDefaultStorageProfileSection["info"].value = "DefaultStorageProfileSection";
objVclDefaultStorageProfileSection["required"] = true;
objVclDefaultStorageProfileSection["storageProfile"] = strStorageProfile;
var objVclInstantiationParams;
objVclInstantiationParams = new VclInstantiationParams();
objVclInstantiationParams["section"].add(objVclLeaseSettingsSection);

var objVclInstantiateVAppTemplateParams;

objVclInstantiateVAppTemplateParams = new VclInstantiateVAppTemplateParams();

objVclInstantiateVAppTemplateParams["name"] = strVclVAppName;

objVclInstantiateVAppTemplateParams["description"] = "vCO Deployed vApp - " + fullname + " (" + username + ")";

objVclInstantiateVAppTemplateParams["source"] = objVclVAppTemplate.getReference();

objVclInstantiateVAppTemplateParams["vAppParent"] = objVclVdc.getReference();

objVclInstantiateVAppTemplateParams["isSourceDelete"] = false;

objVclInstantiateVAppTemplateParams["linkedClone"] = true;

objVclInstantiateVAppTemplateParams["deploy"] = false;

objVclInstantiateVAppTemplateParams["powerOn"] = false;

objVclInstantiateVAppTemplateParams["allEULAsAccepted"] = true;

objVclInstantiateVAppTemplateParams["instantiationParams"] = objVclInstantiationParams;

 

But I get an error message saying that "DefaultStorageProfileSection" is an un-supported Instantiation section.

 

Please can someone assist me inresolving this issue.


Viewing all articles
Browse latest Browse all 176483

Trending Articles



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