Delete vCenter Server

To remove a vCenter server, use the following request:

1
2
DELETE /settings/vcenter_servers/:vcenter_server_id.xml
DELETE /settings/vcenter_servers/:vcenter_server_id.json

XML Request Example

1
curl -i -X DELETE -u user:userpass http://onapp.test/settings/vcenter_servers/56.xml -H 'Accept: application/xml' -H 'Content-type: application/xml'

JSON Request Example

1
curl -i -X DELETE -u user:userpass http://onapp.test/settings/vcenter_servers/56.json -H 'Accept: application/json' -H 'Content-type: application/json'

Returns HTTP 204 on successful deletion. HTTP 404 appears when a vCenter server with the ID specified is not found.