Quantcast
Channel: VMware Communities : Discussion List - VMware vCloud SDK for Java
Viewing all articles
Browse latest Browse all 144

Unable to get vApp after Compose vApp failing from Java SDK

$
0
0

Hi All,

 

I have this code that composes Vapp. Once the Vapp is created, it tries to power on the vApp. I was not able to find the vApp, it

        Vdc vdc2Use = main.findVdc("VDC02");
        ReferenceType orgNetworkToUseRef = main.getOrgNetworkMatchingVdc(vdc2Use);
        ReferenceType vAppTemplateRef = main.findVappTemplateRef("myCatalog", "mytemplate");
        main.composeVapp(vAppTemplateRef, vdc2Use, orgNetworkToUseRef);


        System.out.println("Total number of vApps:"+vdc2Use.getVappRefs().size());
     
       
        for(ReferenceType vappRef : vdc2Use.getVappRefs()){
            System.out.println("Vapp: " + vappRef.getName());
            main.powerOnVapp(vappRef);
            //main.deleteVapp(vappRef);
        }

 

What I am finding is that, the vApp is getting created, but the vdc2Use.getVappRefs().size() is returning me 0.

Can somone help me understand this.

 

Thanks..


Viewing all articles
Browse latest Browse all 144

Trending Articles



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