6.2. Deleting Hosts

DELETE /hosts/{host_id}

Deletes a compute node from the PowerPanel database.

Executed as a part of the procedure to delete a compute node from PowerPanel:

  1. Delete node’s vzapi-compute service from the database (see Deleting Services).
  2. Delete the node itself from the database as shown in this section.
  3. Stop the vzapi-compute service on the compute node.

To return an accidentally deleted compute node to the PowerPanel database, restart the vzapi-compute service on that node. Instance assignment to users will be reset.

Request example:

# curl -s -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<controller_hostname>:6556/v1/hosts/d65ffa4f359545f98b8676ce3c7cc1aa

Response example:

{
  "created_at": "2020-12-14T10:49:55.000000",
  "hostname": "amo-compute.local",
  "id": "59d7a0ea5e994e33a955b868472aadac"
}