Change vCenter Resource Pool Owner

To change the owner of a vCenter resource pool, use the following request:

1
2
PUT /vcenter/resource_pools/:owner_id/owner.xml
PUT /vcenter/resource_pools/:owner_id/owner.json

XML Request Example

1
curl -k -i -X PUT http://onapp.test/vcenter/resource_pools/:owner_id/owner.xml -d '<owner_change><new_owner_id>1</new_owner_id></owner_change>' -u user:userpass -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -k -i -X PUT http://onapp.test/vcenter/resource_pools/:owner_id/owner.json -d '{"owner_change": {"new_owner_id": 8}}' -u user:userpass -H 'Accept: application/json' -H 'Content-type: application/json'

Returns HTTP 204 on successful change of the owner. HTTP 422 appears when a vCenter resource pool owner with the ID specified is not found.

Where:

new_owner_id - the ID of the new vCenter resource pool owner