Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud SDK for Java
Browsing latest articles
Browse All 144 View Live

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 Article


Redirect 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 Article


vCloud 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 Article

javax.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 Article

How 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 Article


How 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 Article

Snapshot 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 Article

Rename / 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 Article


How 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 Article


Get 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 Article

Cloning 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 Article

How 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 Article

SSL 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 Article


I 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 Article

Who 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 Article


Image may be NSFW.
Clik here to view.

List 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 Article

Network 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 Article


Unable 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 Article

Detecting 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Creating 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 Article


Set 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 Article


Retrieving/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 Article

vcloud 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 Article

monitor 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 Article


Getting 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 Article

How 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 Article

xml 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 Article

Image may be NSFW.
Clik here to view.

How to programmatically disable IP masquerade ?

How using Java API, programmatically remove "IP masquerade" option from "network -> configure sevices -> NAT Mapping" tab ?should become : 

View Article



problem 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 Article

Sources for Java SDK

Are there source jars available for the vcloud-5.10.jar and rest-api-schemas.jar?

View Article

How 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 Article

SDK 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 Article


Organization 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 Article

VappTemplate 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 Article

vCloud 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 Article


Adding 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 Article


java 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 Article

ssoLogin 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 Article

Redefining 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 Article

What 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 Article


what 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 Article

Best 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 Article


how 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 Article

The 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 Article


How 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 Article

Renaming 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 Article

Error 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 Article

Image may be NSFW.
Clik here to view.

VM 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 Article


Image may be NSFW.
Clik here to view.

On 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

Browsing latest articles
Browse All 144 View Live


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