4.5. Listing resource provider traits¶
GET /resource_providers/{uuid}/traits
Return a list of traits for the resource provider with the specified ID.
4.5.1. Request¶
Name | In | Type | Description |
---|---|---|---|
uuid |
path | string | The uuid of a resource provider. |
4.5.1.1. Example¶
curl -ks -H 'Content-Type: application/json' -H 'OpenStack-API-Version: placement 1.32' -H 'X-Auth-Token: gAAAAA<...>' \
https://<node_IP_addr>:8780/resource_providers/acf24470-ff88-4208-88ce-e040c0bb4c91/traits
4.5.2. Response¶
Name | In | Type | Description |
---|---|---|---|
traits |
body | array | A list of traits. |
resource_provider_generation |
body | integer | A consistent view marker that assists with the management of concurrent resource provider updates. |
4.5.2.1. Status codes¶
4.5.2.1.1. Success¶
Code | Reason |
---|---|
200 - OK |
Request was successful. |
4.5.2.1.2. Error¶
Code | Reason |
---|---|
404 - Not Found |
The requested resource could not be found. |
4.5.2.2. Example¶
{
"traits": [
"COMPUTE_DEVICE_TAGGING",
"COMPUTE_TRUSTED_CERTS",
"COMPUTE_VOLUME_EXTEND",
"COMPUTE_NET_ATTACH_INTERFACE_WITH_TAG",
"COMPUTE_NET_ATTACH_INTERFACE",
"COMPUTE_VOLUME_ATTACH_WITH_TAG",
"COMPUTE_VOLUME_MULTI_ATTACH",
"CUSTOM_HCI_E3A45A6A4B614263893D72015BFB1A5F"
],
"resource_provider_generation": 7936
}
Version 5.0.0 — Feb 01, 2022