Quantcast
Channel: VMware Communities : All Content - vRealize Automation Tools
Viewing all articles
Browse latest Browse all 9859

vRA 7.2 Change catalog resource iconID

$
0
0

Hello everybody,

 

I tried to change an iconID of a catalog resource in vRA with the following code in vRO:

 

var catalogItems = vCACCAFEEntitiesFinder.getCatalogResources(host)

 

for each(var c in catalogItems){

     if(c.name == "VM-YPHUF-002"){

     System.log(c.name + " - " + c.getIconId());

     c.setIconId("Infrastructure.CatalogItem.Machine.Virtual.vSphere");

     System.log(c.name + " - " + c.getIconId());

     }

}

 

But, when I refresh vRA the iconID still the same (cafe_default_icon_genericCatalogItem)

 

Also I tried to make a post via Rest Api in catalog-service/api/consumer/resources/. But the method is not allow.

 

Any ideas?


Viewing all articles
Browse latest Browse all 9859

Trending Articles



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