hostname prameter for InventoryNavigator. searchManagedEntity() API
Hi, I am trying to obtain ESXi Host information. For that I have written the following piece of code using vijava API-----HostSystem host = (HostSystem) new InventoryNavigator(si.getRootFolder())...
View ArticleHow Do I Get Annotation Attributes Programatically
Hi All, I'm looking to grab the "Attributes" from the "Edit Annotations" dialog from the Java SDK. I can get the "Notes" part of this section with the "getAnnotation" call but not the attributes. I...
View ArticleHow to tell when a VApp is safely stored in a catalog
I was wondering when you are programmatically adding a VApp from the cloud to a Catalog, if it's possible to know when it is done? Sometime the code down below: CatalogItemType catalogItemType =...
View ArticleWhat should go in as an argument to selectSet : Attribute xsi:nil not allowed...
Below is from the sample code: PropertyFilterSpec spec = new PropertyFilterSpec(); spec.getObjectSet().add(new ObjectSpec()); spec.getObjectSet().get(0).setObj(objmor);...
View ArticleHow to check if an VM is marked with annotations com.vmware.vdp2.is-protected...
I woul like to check via java vCloud api if a VM is marked with annotations com.vmware.vdp2.is-protected or com.vmware.vdp2.protected-by.Does anyone now if it is possible to check those annotations via...
View ArticleHow to check if some annotations are set to VM via java vCloud api
HiIs it possible to check if a VM has the annotations com.vmware.vdp2.is-protected and com.vmware.vdp2.protected-by set, via java vCloud api?
View ArticleGet a List of VMs
I'd like to get a very very basic java class created that does nothing but connect to vcenter and list all VMs. What is the simplest code snippet that I can use do this in Java? Thanks!
View ArticleUnable to create group on ESX 4.1.0
I am trying to create a local group on ESX 4.1.0 Server using vSphere SDK. It is giving me an error saying "Invalid Argument". Version Details===============VMware ESX 4.1.0 build-260247Server type is...
View ArticlevCloud SDK's equivalent to vSphere's "...
Hello,Is there in vCloud an equivalent to vSphere's "GuestInfo.getToolsRunningStatus().equals("guestToolsRunning")" to ensure that a VM is up and running?Cyrille
View ArticleRetrieve Virtual Hardware information for VM in VappTemplate using API
How do you obtain the Virtual Hardware configuration for a VM that is in a VappTemplate, using the java API? Here is what I have so far, but cannot find anywhere the information about the number of...
View ArticleGet VMs with Java
Does someone have an example of the most simple "get a list of all VMs" snippet for java?
View ArticleNot able to make SSL connection with ESX Server using webservices
I am trying to connect and login into to ESX Server using the web-services.I have not included trustAllManager code as I do not wish to trust all certificates. I have imported the server certificate...
View Articlevijava HostSystem network configuration update
I'm in need of some help. I have tried several things, but I can't seem to be able to update/copy the network settings from one HostSystem to another HostSystem.Say I have one HostSystem with the...
View ArticleHow to Retrieve and print all Cluster names using vSphere SDK
I have a requirement for listing all clusters of the vCenter. I am writing a client program similar to (https://communities.vmware.com/thread/481931) for printing clusters. I need your help printing...
View ArticleProprety Collector
Hello everyone!I have VCenter v 5.1 & SDK v 5.1.I've create the class to give me the list of all Hosts & list of VMs for vcenter (below you will find the code)--> List of all hosts-->...
View Articleparse response from API
is there any java object that manage the parsing when I get a response from the API, for example, when I want to get all the data about a specific VM, is there any JAVA object that make the parsing for...
View ArticleIs there a way to determine the necessary space for a linked or full clone in...
Hi, I need to find a way to determine the size of a linked or full clone before the cloning process starts. I need to check that size with the space available in the destination datastore, that way I...
View ArticleLocking a Snapshot
Hello! I'm trying doing a backup code, and I would like to lock the snapshot I do during the all proccess. I've tried with flags... but I did not succes. What should I do? Is it possible? Thanks a lot!
View ArticleHow to retrieve a custom field value?
Hi everybody, I've created a custom field that holds a kind of identifier for my virtual machines. The problem is that I haven't found the way to retrieve its value. The custom field name and its key...
View Article