Login Exception: The request has invalid accept header
I get this exception when I call the vCloudClient.Login method. We're running 1.5.0.464915 of vCloud Director and I have 1.5.0.1 of the .NET SDK installed and referenced in my Visual Studio project....
View Article.NET SDK: Setting VM Hardware During vApp Compose Problems
I want to set CPU, Hardware, Memory and Hard Disk values for a child VM during vApp composition. If someone can tell me how to do this, that would be great. As another way of achieving what I need, I...
View ArticleHow to update (set) ParentNetwork on vApp
I have a vApp that was instantiated from a vAppTemplate. The vAppTemplate contains one network, and this network is bridged to an OrgNetwork. Everything works as expected when the instantiation is to...
View ArticleAdding a new hard disk?
I am trying to add a new hard disk to a VM. Does anyone have an example for doing this? I'm finding it is not a trivial task using the SDK.
View ArticleAdding/Importing User to Org Issues
Hello, I am attemping to import a user from LDAP using the SDK, then share a vApp with that user. I am trying to adapt the sample code which demonstrates how to add a user to do this. First of all,...
View ArticleHow to get vAppTemplate network configuration
I am hitting a problem trying to get the vAppTemplate network configuration. With the 1.0 SDKtemplate.GetNetworkConfigSection().NetworkConfig[0].Featureshad a bunch of information - like...
View ArticleNetworkConfigSectionType does not have href set via SDK
In the code below url should get a value that can be used to directly get a network configuration - it does not. It is null. If I look at trhe rest XML directly the data exists in the returned XML)...
View ArticleHow to get VAppScopedLocalId from SDK
If using the rest API directly a tag exists:<Vm> <VAppScopedLocalId>169b20c8-8a41-40f0-bbbb-52a842efa66a</VAppScopedLocalId></Vm>This ID is used for network connection and nat...
View ArticleHow to import OVF to catalog
I know I have to be missing something, but figured I would ask while I am looking. I have an OVF and disk files. I want to import it into the system, how via the SDK can I do this? I assumed Catalog...
View ArticleDuplicate children VM's listed
I am having an problem where when I load a vAppTemplate and look at the children (GetChildren) I see two of every VM. Quick example: VappTemplate has 3 VM's in it. ServerA, ServerB, ServerC foreach...
View ArticleVapp.GetChildrenVms() Throwing Exception
I keep getting the same “Object reference not set to an instance of an object" exception when the GetChildrenVms() method is called on an instantiated Vapp object. I'm debugging and I can see that the...
View ArticleUnsigned assemblies
Hello guys, My aplication has only strong-named assemblies...How can I add references to these SDK's assemblies? thx
View Articleobtaining shadow vm's references
Hello, When I try to callList<ReferenceType> refs = com.vmware.vcloud.sdk.VappTemplate.GetVappTemplateByReference(client, vdc.GetVappTemplateRefs()[0])....
View ArticlePowerOn operation not working
I have some vApps that the PowerOn operation is not working for soem VM's. Code run... isDeployed = TRUE, status=8 bool isDeployed = vapp.IsDeployed();int status =...
View Articlevdc.GetOrgReference() causes null pointer exception
Looks like possible 1.5 sdk bug in getting Org settings froma VDC. Vdc vdc = Vdc.GetVdcByReference(client, template.GetVdcReference());ReferenceType temp = vdc.GetOrgReference();temp.href at this point...
View ArticleUnique instance ID
How can I get a unique VCD Instance ID (Installation ID, unique vcloud name)?
View ArticleHaving issue with QueryService
I am attempting to get a list of VM's back that have a specific status. Code: QueryService queryService = client.GetQueryService();QueryParams<QueryVMField> query = new...
View ArticleHow to get ShadowVM information
I am trying to use the API to figure out if a shadow VM is being used currently, and if so by what. How would I go about this?I do not see a method at the VM level that will let you see its...
View ArticleLooking for documentation on SdkUtil and RestUtil packages
Looking for documentation on SdkUtil and RestUtil packages... I have uses RestUtil.Put to perfom an action that returned a task, and it worked fine. However if I take the exact same url, message, and...
View ArticleProblem with SDK QueryService for getting ADMINSHADOWVM
I am getting an error trying to use the query service for getting shadowVM records.Onc I get this list I will be deleting some - but I cannot seem to get the query to work. Bug in the SDK? Error:...
View Article