How to get Internal IP and External IP of a Org.
Hi All, How to get the External IP and Internal IP of a Organization using vCloud SDK for JAVA. and Total number of IP's exist Thanks
View ArticleRedirect API logging
Hi, Currently, the API seems to only log messages to the console. For my application this isn't practical - are there any settings I can change to redirect the output to my own logging framework?
View ArticlevCloud SDK redistributables
Hello, In the Redistributable and Modifiable files section it is mentioned: vcloud‐java‐sdk‐1.5.0.jar, rest‐api‐schemas‐1.5.0.jarHowever, in the SDK for 5.1 the name of these files is:...
View Articlejavax.net.ssl.SSLPeerUnverifiedException with proxy
Dear all, I get a SSLPeerUnverifiedException when tyring to login (from one of the samples): javax.net.ssl.SSLPeerUnverifiedException: peer not authenticated at...
View ArticleHow to build Java bindings for the 5.1 vCloud API via JAXB?
How to build Java bindings for the 5.1 vCloud API via JAXB? There is an excellent thread on HOWTO: Build Java bindings for the vCloud API via JAXB at http://communities.vmware.com/thread/327055.The...
View ArticleHow to get user with their respective role
Hi, I want to get role of user by which I login. I tried below sample code it shows all the roles at system level for (ReferenceType roleRef : vcloudClient.getVcloudAdmin().getRoleRefs()) {...
View ArticleSnapshot size of VM
Dear All, I want to know the snapshot size of a vm in datastore.Please hep me out on this. ThanksMahesh
View ArticleRename / Name VM at Compose / Recompose Time
Is it possible to specify a name for a VM at the time of specifying it as a source for a vApp composition or recomposition? I am trying to add multiple copies of the same VM to a vApp, each with known,...
View ArticleHow to get static routing details
Hi, I am trying to get static routing details programatically( Name , Network , Next Hop IP , Route ).Pls find attachment. Below is sample code I am trying. Not sure which methods will give me...
View ArticleGet No. of vAPPS deployed in a day and time taken for provisioning each of them
I want to pull below two statistics information from the vCD: Number of VM’s (or vAPPs for that sake) provisioned in a dayTime taken for provisioning each of these vAPP. I am using the vCloud Java SDK...
View ArticleCloning a VM using Cloud Director/VMWare SDK 5.1
I am probably missing something obvious, but how can I clone a VM (can do VApps and Templates, etc.) [NOT using vSphere APIs], whether to the same VDC or another? I would love to understand all the...
View ArticleHow to get Snapshot space on Datastore using vi java api??
Hi, Plz help me to get the Snapshop space on datastore by using vi java api. Is there any method or property or any calculation to get the snapshot spac???
View ArticleSSL connection to VCD using vcloud SDK
We are using vCloud SDK to connect to the vCD. In the sample code we saw that FakeSSLSocketFactory has been used as shown below:vcloudClient.registerScheme("https", 443,...
View ArticleI have got the management object reference, how to obtain management object
I have got the management object reference(MOR), how to obtain management object. For example: I know virtual machine reference, I will be how to get the virtual machine management object?
View ArticleWho can give me a virtual machine configuration information for the sample code
Who can give me a virtual machine configuration information for the sample code.First of all thank you!
View ArticleList of Possible Wildcards for QueryService?
Hello all, I know I had this at one point or another, but cannot seem to find it. Is there a published list of wildcards avaliable for Expressions / Query Service... Might have been right in front of...
View ArticleNetwork configuration for composing a vApp
I am facing some (Network doesn't exists) error while composing vApp . Please tell me how to configure network setting to compose a vApp.
View ArticleUnable to connect VCD through web application
When calling the login method (with the appropriate username and password strings) from a vCloudClient object, I got the following NullPointerException:java.lang.NullPointerExceptionat...
View ArticleDetecting vCloudClient timed out session and extending
I am using the VCD 5.1 SDK for .NET, and am running into an issue where I get "Access Denied" errors when the vCloudClient session expires. I have a static vCloudClient object...
View ArticleHow to retrieve firewall rules of an org network
Hi, I am using vCloud SDK 1.5 for java, I want to retrieve firewall rules of an organisation. There are some classes in SDK related to firewall (...
View ArticleCreating routed org network with org admin crendentials
Hi, Questions 1: Is it possible to create 'routed org network' with 'org admin' credentials using vCloud SDK 5.1 API ?? (I am able to create routed org network using provider level/...
View ArticleSet network adapter type using Java API
Hello, When composing a vapp using Java vCloud API, how to set the network adapter type ? Thank you
View ArticleRetrieving/stamping Org metadata using vCloud SDK java
Could anyone please point out relavent documentation for stamping/retreiving metadata on objects like Org, orgVDC, VM etc?
View Articlevcloud director VcloudAdminExtension exception raised
Hi,I'm using vcloud director sdk for java and in ImportVmAsvAppTemplate community example this exception: Exception in thread "main" com.vmware.vcloud.sdk.VCloudException: This operation is denied....
View Articlemonitor Vm using vcloud director sdk
Hi, I have to monitor performances of VirtualMachines configured in a Vapp in vcloud director (i.e cpu, RAM and disk usage). Can you suggest me some examples using vcloud director sdk? thanksluca
View ArticleGetting null value while retrieving firewall rules using vCD 5.1 SDK
I am trying to retrieve firewall rules using vCD 5.1 SDK. Please refer to the below code snippet for more details: vcloudClient.login(userName, password); ReferenceType adminOrgRef =...
View ArticleHow to set the language for sdk exception details
We got an SDK exception, the details for this exception is not english, please take a look at the attached file. Does anybody know how to set it back to english? Thanks!
View Articlexml binding for vcloud 5.1 api for scala, using scalaxb
Is there a prescribed way to generated scala xml bindings for vcloud 5.1 api, We tried to generate class files using scala 2.10.0 and scalaxb 1.0.0, Unexpectedly compile failed at...
View ArticleHow to programmatically disable IP masquerade ?
How using Java API, programmatically remove "IP masquerade" option from "network -> configure sevices -> NAT Mapping" tab ?should become :
View Articleproblem downloading sdk
I'm trying to download the sdk for java from this page. http://www.vmware.com/support/pubs/vcd_pubs.html THe download link does not function for me. Is this link good?
View ArticleSources for Java SDK
Are there source jars available for the vcloud-5.10.jar and rest-api-schemas.jar?
View ArticleHow to get the groups a user is in
I am trying to get all the groups that a specific user is a member of. I am trying the following: ReferenceType newUserReference = getCommandSession().getUserReferenceByName("user"); //method that gets...
View ArticleSDK returns StorageCapacity null
I'm using Java SDK to access VMWare VCoud Director. I need same data from the VDC's (CPU used, CPU limit, memory used, etc.). I've no problem with all data except "storage capacity" which is always...
View ArticleOrganization network cannot be deleted, because it is in use ?
Using vCD 5.1 and having difficulty deleting the organization network after deleting the vApp that was using it. Code snippet below. Why would this happen if using the waitForTask(0)? Thanks for your...
View ArticleVappTemplate uploadFile(String fileName, InputStream is, long startByte, long...
Hi, I'm trying to use the uploadFile() API in the VappTemplate class to upload large VMDK files in chunks so I can determine and report upload progress over the entire upload time using...
View ArticlevCloud Director vApp hot clone doesn't work with the Java API
Hello, We have an important use case in vCD 5.1.2 to clone/copy a fenced vApp without shutdown the vApp.It is not possible from the GUI, that's why we are trying to handle it from the Java API.We tried...
View ArticleAdding more than 15 disks to a VM fails
Hi, I'm attempting to attach disks to a blank VM. I can add up to 16 disks just fine, but adding any more returns the vSphere error "The device '0' is referring to a nonexisting controller '1,001". I...
View Articlejava sdk vcloudclient ssoLogin() w/ samlassertion
Hi all, I have an issue attempting to perform an ssoLogin. Please see: https://communities.vmware.com/message/2276630 Thank you!
View ArticlessoLogin w/ samlAssertion from idp fails: Signature is not trusted or invalid...
I am attempting to login via the java sdk ssoLogin() with a samlassertion from an openam idp. The result is a signature validation exception. I must be missing some trust configuration, but where?...
View ArticleRedefining network settings when creating vApp from template
I need some assistance with redefining Network settings on vApp instantiation.I want to able able to change the network that is defined in a vApp Template when I deploy a vApp from it. For instance, if...
View ArticleWhat exactly does the compute capacity's Limit field map to ?
I am provisioning an Org VDC using the Java SDK. Code Snippet 1, below shows the allocation being set to "2048 MB" and limit is set to "4048 MB". Shown in Code Snippet 2, the guarantees are set to 0.5....
View Articlewhat is vSphere SDK for Java versus VCloud SDK for Java?
Hi: I'm new to VMware and after reading the API overview , I still haven't "got it" since its confusing as to its intended usage. Q1: What is vSphere versus vCloud API and what usage they were...
View ArticleBest practice for the client app to maintain session information across...
Hi all, I am new to using VCD Java SDK API so this might be an easy one and I just haven't found the answer in the API docs and forums. To provide some context to my question, I will briefly describe...
View Articlehow to change a disk size
I nead to programaticly adjust a disk size via java vCloud api... how can I do that if I use thic sode it gives me errors like com.vmware.vcloud.sdk.VCloudException: Not a Hard Disk - SCSI Controller 0...
View ArticleThe guest operations agent could not be contacted
I tried to read an environment variable from the guest using Java API and got : Caused by: javax.xml.ws.soap.SOAPFaultException: The guest operations agent could not be contacted.at...
View ArticleHow to renew the lease of a VApp in VCloud director 5.1 Java API?
So I'm writing a java service that will use the VCloudDirector API to extend the storage life of a Vapp. How the method that I need VappTemplate.updateSection() is deprecated. Why is it deprecated and...
View ArticleRenaming a Vapp template in a catalog
Hello, I'm trying to rename a vApp template in that is stored in a Catalog. It ran fine but when I went to the VCloud director UI, the catalog name did not properly reflect that. Am I missing something...
View ArticleError during initiateFileTransferFromGuest
I'm getting javax.xml.ws.soap.SOAPFaultException: The object has already been deleted or has not been completely createdwhen I try to executevimPortType.initiateFileTransferFromGuest Could someone help...
View ArticleVM in Vapps with unique IP: How to do it?
I am creating vApp from vApp Template using Java. Each of the vApp has 2 Vm(Vm1 and Vm2). i.e. vApp1-> (Vm1 & Vm2) & vApp2-> (Vm1 & Vm2). But when ever I clone I see that the Vm1 in...
View ArticleOn the problem of VM vSphere Sdk!
In VM vSphere Sdk, if I want to open the console, which *.java is he likely to be in?
View Article