Deleting traits

DELETE /traits/{name}

Delete a custom trait with the specified name.

Source: https://docs.openstack.org/api-ref/placement/?expanded=delete-traits-detail#delete-traits

Request

Parameters

Name In Type Description
name path string The name of a trait.

Example

curl -ks -X DELETE -H 'Content-Type: application/json' -H 'OpenStack-API-Version: placement 1.32' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8780/traits/CUSTOM_HCI_0A7F6A35E650420CB30200A8359861D9

Response

Status codes

Success

Code Reason
204 - No Content The server has fulfilled the request.

Error

Code Reason
400 - Bad Request

Some content in the request was invalid.

404 - Not Found

The requested resource could not be found.

409 - Conflict

This operation conflicted with another operation on this resource.