VMware {code} Community
reshmi39
Contributor
Contributor
Jump to solution

VApp snapshot section returned without any data

Hi,

I created a snapshot via vapp.createSnapshot("name", "description", false, false). But when I try to retrieve the details, no data is returned.

SnapshotSectionType snapshot = Vapp.getSnapshotSection(vcloudClient, vdc.getVappRefByName("vapp-name"));

The log shows the following:

<SnapshotSection xmlns="http://www.vmware.com/vcloud/v1.5" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="true" xsi:schemaLocation="http://www.vmware.com/vcloud/v1.5 http://XXXXXXXXXX/api/v1.5/schema/master.xsd"></SnapshotSection>

How to get the details of a snapshot like snapshot size and creation date? Any help would be much appreciated.

Thanks,

Reshmi

0 Kudos
1 Solution

Accepted Solutions
reshmi39
Contributor
Contributor
Jump to solution

Hi,

I was trying with 5.1 jar file but logging in with version V1_5. When I changed this to version V5_1, I got the details I wanted.

Thanks.

View solution in original post

0 Kudos
1 Reply
reshmi39
Contributor
Contributor
Jump to solution

Hi,

I was trying with 5.1 jar file but logging in with version V1_5. When I changed this to version V5_1, I got the details I wanted.

Thanks.

0 Kudos