VMware Cloud Community
mcfadyenj
Hot Shot
Hot Shot
Jump to solution

Third party retrieving a list of VCO types

vcoAttributesWindow.png

hi all,

I am trying to replicate the attached diagram in a third party system to allow better integration of VCO workflows from remote entities. Anyone know how I can obtain a list of types including types from installed plugins.

I have already obtained handles to the ModuleInfo items from plugins, but that doesn't seem to interrogate the types provided by that plugin.

John

0 Kudos
1 Solution

Accepted Solutions
iiliev
VMware Employee
VMware Employee
Jump to solution

List of types from installed plug-ins can be obtained via the following REST API calls

First, get the list of plug-ins

GET https://[vcoip]:8281/vco/api/plugins


then, for each plug-in, retrieve the list of its types from its metadata

GET https://[vcoip]:8281/vco/api/catalog/{plugin-module-name}/metadata


Non-plugin types are more problematic. Some of them (for example, primitive types like boolean, string, etc.) cannot be obtained via REST. You may hard-code their names in your code.

View solution in original post

0 Kudos
1 Reply
iiliev
VMware Employee
VMware Employee
Jump to solution

List of types from installed plug-ins can be obtained via the following REST API calls

First, get the list of plug-ins

GET https://[vcoip]:8281/vco/api/plugins


then, for each plug-in, retrieve the list of its types from its metadata

GET https://[vcoip]:8281/vco/api/catalog/{plugin-module-name}/metadata


Non-plugin types are more problematic. Some of them (for example, primitive types like boolean, string, etc.) cannot be obtained via REST. You may hard-code their names in your code.

0 Kudos