VMware Cloud Community
slavena
Contributor
Contributor

How to get VCO version from exposed API, for VCO 4.2.x ?

As a developer, I have to write custom client code which has to be able to support different VCO servers.

For VCO version 5.1.X, I'm able to hit the server to https://vco_host:8281/api/versions and get:

<supported-versions xmlns="http://www.vmware.com/vco">
<version latest="true">5.1.0</version>
</supported-versions>

However, If I try the same thing for a VCO version 4.2.x, I get a 404.

So, there is any way to get the VCO version from the API ?

Thanks,

Sebastian

0 Kudos
2 Replies
cdecanini_
VMware Employee
VMware Employee

The vCO REST API was released with vCO 5.1 so you will not be able to use any previous version of vCO using the REST API.

For vCO 4.X you can use the SOAP based API.

Christophe.

If my answer resolved or helped you, please mark it as Correct or Helpful to award points. Thank you! Visit http://www.vcoteam.info & http://blogs.vmware.com/orchestrator for vCenter Orchestrator tips and tutorials - @vCOTeam on Twitter
0 Kudos
iiliev
VMware Employee
VMware Employee

SOAP API does not provide a method to get version information similar to REST API. Also, in vCO 5.5+ the REST endpoint URL has changed from https://vco_host:8281/api/versions to https://vco_host:8281/vco/api/versions

So, in order to determine vCO version the logic should be:

0 Kudos