Add vCenter Compute Resources

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

1
2
POST /settings/hypervisors.xml
POST /settings/hypervisors.json

XML Request Example

1
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'

JSON Request Example

1
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'

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