To get the list of vCenter servers in your cloud, use the following request:

GET /settings/vcenter_servers.xml
GET /settings/vcenter_servers.json

XML Request Example

curl -i -X GET -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass --url http://onapp.test/settings/vcenter_servers.xml
CODE

JSON Request Example

curl -i -X GET -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass --url http://onapp.test/settings/vcenter_servers.json
CODE

XML Output Example

<vcenter_vcenter_servers type="array">
<vcenter_vcenter_server>
<id type="integer">1</id>
<label>RD-vCenter-vc-c.onappdev.lviv</label>
<api_url>vc-c</api_url>
<login>quserpass</login>
<online type="boolean">true</online>
<host>vc-c.onappdev.lviv</host>
<machine>linux-x64</machine>
<release>6.7.3</release>
<instance_uuid>f2df5ee8-6bb4-4379-9155-05405a92b209</instance_uuid>
<cpu_mhz>2800</cpu_mhz>
<cpus type="integer">4</cpus>
<threads_per_core type="integer">1</threads_per_core>
<cpu_cores type="integer">24</cpu_cores>
<total_mem type="integer">122873</total_mem>
<free_mem type="integer">20478</free_mem>
<public_key_hash>9384a4af045bb20ab13aef4da54a45984ba0e6ec512884ba6eeb69c0699e96a4</public_key_hash>
</vcenter_vcenter_server>
<vcenter_vcenter_server>
<id type="integer">2</id>
<label>RD-vCenter-vc-g.onappdev.lviv</label>
<api_url>vc-g</api_url>
<login>userpass</login>
<online type="boolean">true</online>
<host>vc-g.onappdev.lviv</host>
<machine>linux-x64</machine>
<release>7.0.0.0</release>
<instance_uuid>1a7cb88e-3790-46f4-888c-a5e32c0e6866</instance_uuid>
<cpu_mhz>2799</cpu_mhz>
<cpus type="integer">4</cpus>
<threads_per_core type="integer">1</threads_per_core>
<cpu_cores type="integer">4</cpu_cores>
<total_mem type="integer">20478</total_mem>
<free_mem type="integer">20478</free_mem>
<public_key_hash>0e19888e239c42f7c2ec6ec160a555ff0e07d470acc7f0329805127908b45f7f</public_key_hash>
</vcenter_vcenter_server>
<vcenter_vcenter_server>
<id type="integer">3</id>
<label>RD-vCenter-vc-qa.onappdev.lviv</label>
<api_url>vc-qa.onappdev.lviv</api_url>
<login>administrator@vsphere.local</login>
<online type="boolean">true</online>
<host>vc-qa.onappdev.lviv</host>
<machine>linux-x64</machine>
<release>6.7.1</release>
<instance_uuid>aa662944-d65b-431d-a1bb-f94b11783d82</instance_uuid>
<cpu_mhz>2933</cpu_mhz>
<cpus type="integer">4</cpus>
<threads_per_core type="integer">1</threads_per_core>
<cpu_cores type="integer">8</cpu_cores>
<total_mem type="integer">16382</total_mem>
<free_mem type="integer">8191</free_mem>
<public_key_hash>114869c8d6f9919d8ace1b28a6f9e6b760ab2277cb9104bb6e89be6bf8a243cc</public_key_hash>
</vcenter_vcenter_server>
</vcenter_vcenter_servers>
CODE

Where:

id - the ID of the vCenter server

label -  the label of the vCenter server

api_url - the API URL of the vCenter server on the vCenter side

login - vCenter login

online - true, if the server is online; otherwise, false

host - the hostname of the vCenter server

machine - operation system type of vCenter server

release -  the vCenter version

instance_uuid - universally unique identifier of an instance

cpu_mhz - CPU frequenc

cpus - number of CPUs for this vCenter server

threads_per_core - threads per core

cpu_cores - number of CPU cores for this vCenter server

total_mem  - the total amount of RAM for this vCenter server

free_mem - the amount of free RAM for this vCenter server

public_key_hash - hash of a public key