List of items to recover with the vCAC 6.0.1 via the COFFEE server plugin?  Can't seem to do this with vCACCAFEEntitiesFinder

What I would like to make is the query to the list of issues I see in the record.  If you go in the inventory and select vCloud Automation Center, select your COFFEE server and look in the folder 'Éléments' you will probably see all the same elements, you can interact with in the GUI.  I want to develop scripts that can do things with these elements.  I tried to create a simple query to retrieve all the elements for an individual owner, but I can't understand how do.  If all goes well, he will miss just something very obvious.  I started with the vCACCAFEEntitiesFinder and it seems to be able to target everything except for the list of items.  Is it possible to do this?  I do not see vCO type for these objects is.

The elements of the 'Éléments' folder in the plug-in are catalog resources (vCACCAFECatalogResource), so that if you have the host configured with the right credentials (the user that you want to get the catalogue of resources of), then you can do:

var items = vCACCAFEEntitiesFinder.getCatalogResources (host);

or find the specific by name/description with:

var = vCACCAFEEntitiesFinder.findCatalogResources (host, query) elements.

And if you want to directly cast the underlying API, you can get the catalogue of services consumers of resources and verify methods are available here:

var service = host.createCatalogClient () .getCatalogConsumerResourceService ();

where is the service type vCACCAFECatalogConsumerResourceService

Tags: VMware

Similar Questions

Maybe you are looking for