4.3. Deleting traits

DELETE /traits/{name}

Delete a custom trait with the specified name.

Source: https://docs.openstack.org/api-ref/placement/?expanded=update-resource-provider-traits-detail,delete-traits-detail,list-resource-provider-traits-detail,update-traits-detail#delete-traits

4.3.1. Request

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

4.3.1.1. 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

4.3.2. Response

4.3.2.1. Status codes

4.3.2.1.1. Success

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

4.3.2.1.2. 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.