4.12. Deleting host aggregates

DELETE /os-aggregates/{aggregate_id}

Delete an aggregate.

Source: https://docs.openstack.org/api-ref/compute/?expanded=remove-host-detail,create-or-update-aggregate-metadata-detail#delete-aggregate

4.12.1. Request

Name In Type Description
aggregate_id path integer The aggregate ID.

4.12.1.1. Example

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8774/v2.1/6ef5371261ea42008e3d1d41ba051977/os-aggregates/4

4.12.2. Response

4.12.2.1. Status codes

4.12.2.1.1. Success

Code Reason
200 - OK Request was successful.

4.12.2.1.2. Error

Code Reason
400 - Bad Request Some content in the request was invalid.
401 - Unauthorized User must authenticate before making a request.
403 - Forbidden Policy does not allow current user to do this operation.
404 - Not Found The requested resource could not be found.