Listing resource provider traits

GET /resource_providers/{uuid}/traits

Return a list of traits for the resource provider with the specified ID.

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

Request

Parameters

Name In Type Description
uuid path string The UUID of a resource provider.

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

Response

Parameters

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.

Status codes

Success

Code Reason
200 - OK Request was successful.

Error

Code Reason
404 - Not Found

The requested resource could not be found.

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
}