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

Renaming a Vapp template in a catalog

$
0
0

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 here? Here is the code that I am using:

 

Catalog catalog = manager.searchForCatalog(vCloudClient, org, "CatalogA");

ReferenceType catalogRef = catalog.getCatalogItemRefByName("VApp Template to be renamed");

try {

     CatalogItem catalogItem = CatalogItem.getCatalogItemByReference(vCloudClient, catalogRef);

     CatalogItemType type = catalogItem.getResource();

     type.setName("Name to change to");

     catalogItem.updateCatalogItem(type);

} catch (VCloudException e) {

     // TODO Auto-generated catch block

     e.printStackTrace();

}


Viewing all articles
Browse latest Browse all 144

Trending Articles



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