Karnamkiran
Contributor
Contributor

How to get the vcloud director version from the Java sdk

Jump to solution

Hi,

I am trying to get the vcloud director version from API. I am currently using

client.login("administrator@System", "dangerous", client.getSupportedVersions().get("1.0"));

to get the version.. but i want to get the version of the VCD not the api version.. i am using both VCD 1.5 and 1.0 so depending on the ip i need to fetch the version of the VCD.

Thanks,

Kiran

0 Kudos
1 Solution

Accepted Solutions
Todor_Todorov
Hot Shot
Hot Shot

Hi Kiran,

The <VCloud> object returned when GET-ting /api/admin contains a <Description> element showing the vCD version. It's available both in 1.0 and 1.5 APIs.

Since I'm not very acquainted with the SDKs, someone familiar with the Java SDK can point you to the relevant class representing this API call.

Regards,

Todor

View solution in original post

0 Kudos
2 Replies
Todor_Todorov
Hot Shot
Hot Shot

Hi Kiran,

The <VCloud> object returned when GET-ting /api/admin contains a <Description> element showing the vCD version. It's available both in 1.0 and 1.5 APIs.

Since I'm not very acquainted with the SDKs, someone familiar with the Java SDK can point you to the relevant class representing this API call.

Regards,

Todor

View solution in original post

0 Kudos
rkamal
VMware Employee
VMware Employee

Hi Kiran,

To get the vCD version information.

VcloudClient.getVcloudAdmin().getResource().getDescription();

Regards,
Rajesh Kamal.