To add a vCenter compute resource, use the following request:

POST /settings/hypervisors.xml
POST /settings/hypervisors.json

XML Request Example

curl -i -X POST http://onapp.test/settings/hypervisors.xml -d '<hypervisor><label>vcenter_compute_resource</label><hypervisor_type>vcenter</hypervisor_type><vcenter_server_id>1</vcenter_server_id><vcenter_cluster_id>1</vcenter_cluster_id><hypervisor_group_id>3</hypervisor_group_id></hypervisor>' -u user:userpass -H 'Accept:application/xml' -H 'Content-type:application/xml'
CODE

JSON Request Example

curl -i -X POST http://onapp.test/settings/hypervisors.json -d '{"hypervisor": {"label": "cluster_label", "hypervisor_type": "vcenter", "vcenter_server_id": 1,"vcenter_cluster_id": 1, "hypervisor_group_id": 3}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'
CODE

Where:

label* - the name of the compute resource

hypervisor_type* - specify compute resource type (vcenter)

vcenter_server_id - the ID of the vCenter server logical point

vcenter_cluster_id - the ID of the necessary vCenter cluster

hypervisor_group_id - the ID of the necessary compute zone


Page History

v. 6.4 Edge 1

  • added the following parameters:
    • vcenter_server_id

    • vcenter_cluster_id

    • hypervisor_group_id

  • removed the following parameters:
    • enabled
    • collect_stats
    • cpu_units
    • disable_failover
    • connection_options
    • login
    • password
    • api_url

v 6.0

  • removed the following parameters:
    •  ip_address  
    • backup_ip_address
  • added the api_url parameter