7.2. Deleting Services¶
DELETE /services/{service_id}
Deletes the vzapi-compute
service of the specified compute node from the PowerPanel database.
Executed as a part of the procedure to delete a compute node from PowerPanel:
Delete node’s
vzapi-compute
service from the database as shown in this section.Delete the node itself from the database (see Deleting Hosts).
Stop the
vzapi-compute
service on the compute node.
To return an accidentally deleted vzapi-compute
service to the PowerPanel database, restart it on the node.
Request example:
# curl -s -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<controller_hostname>/api/v1/services/2
Response example:
{
"binary": "vzapi-compute",
"created_at": "2020-12-22T10:35:00.000000",
"disabled": false,
"version": 0,
"host_id": "59d7a0ea5e994e33a955b868472aadac",
"last_seen_up": "2020-12-22T10:37:51.000000",
"disabled_reason": null,
"id": 9
}
Dec 08, 2021