109f21f3c8
Adds a new microversion (1.14) to the placement REST API for supporting
nested resource providers.
For POST /resource_providers and PUT /resource_providers/{uuid}, a new
optional 'parent_provider_uuid' field is added to the request payload.
For GET /resource_providers/{uuid} responses, the
'parent_provider_uuid' field and a convenience field called
'root_provider_uuid' are provided.
For GET /resource_providers, a new '?in_tree=<rp_uuid>' parameter is
supported. This parameter accepts a UUID of a resource provider. This
will cause the resulting list of resource providers to be only the
providers within the same "provider tree" as the provider identified by
<rp_uuid>
Clients for the placement REST API can specify either
'OpenStack-API-Version: placement 1.14' or 'placement latest' to handle
the new 'parent_provider_uuid' attribute and to query for resource
providers in a provider tree.
Change-Id: I4db74e4dc682bc03df6ec94cd1c3a5f5dc927a7b
blueprint: nested-resource-providers
APIImpact
34 lines
1.1 KiB
JSON
34 lines
1.1 KiB
JSON
{
|
|
"generation": 0,
|
|
"links": [
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868/aggregates",
|
|
"rel": "aggregates"
|
|
},
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868/inventories",
|
|
"rel": "inventories"
|
|
},
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868/usages",
|
|
"rel": "usages"
|
|
},
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868/traits",
|
|
"rel": "traits"
|
|
},
|
|
{
|
|
"href": "/placement/resource_providers/3b4005be-d64b-456f-ba36-0ffd02718868/allocations",
|
|
"rel": "allocations"
|
|
}
|
|
],
|
|
"name": "Ceph Storage Pool",
|
|
"uuid": "3b4005be-d64b-456f-ba36-0ffd02718868",
|
|
"parent_provider_uuid": "542df8ed-9be2-49b9-b4db-6d3183ff8ec8",
|
|
"root_provider_uuid": "542df8ed-9be2-49b9-b4db-6d3183ff8ec8"
|
|
}
|