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

PATCH /settings/hypervisors/:hypervisor_id.xml
PATCH /settings/hypervisors/:hypervisor_id.json

XML Request Example

curl -i -X PATCH http://onapp.test/settings/hypervisors/:hypervisor_id.xml -d '<hypervisor><label>vcenter_compute_resource_label</label><hypervisor_group_id>41</hypervisor_group_id></hypervisor>' -u user:userpass -H 'Accept:application/xml' -H 'Content-type:application/xml'
CODE

JSON Request Example

curl -i -X PATCH http://onapp.test/settings/hypervisors/:hypervisor_id.json -d '{"hypervisor": {"label": "vcenter_compute_resource_label", "hypervisor_group_id": 41}}' -u user:userpass -H 'Accept:application/json' -H 'Content-type:application/json'
CODE

Where:

label - the name of the compute resource

compute zone - the name of the compute zone

Please note that an ability to edit a compute zone is available only if no virtual server is imported.

Page History

v. 6.4 Edge 1

  • 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