Edit vCenter Compute Resources

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

1
2
<ac:inline-comment-marker ac:ref="44ec704d-2e41-4487-92ec-08821c69b8d0">PATCH /settings/hypervisors/:hypervisor_id.xml</ac:inline-comment-marker>
<ac:inline-comment-marker ac:ref="44ec704d-2e41-4487-92ec-08821c69b8d0">PATCH /settings/hypervisors/:hypervisor_id.json</ac:inline-comment-marker>

XML Request Example

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

JSON Request Example

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

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