[root@controller01 ~(keystone)]# curl -s -H "X-Auth-Token: $(openstack token issue -f value -c id)" \
-H "Content-Type: application/json" \
https://controller01.osp.local:8778/resource_providers | jq
{
"resource_providers": [
{
"uuid": "9e12284f-2f9a-4a2e-874f-cfa87d62a77c",
"name": "compute01.osp.local",
"generation": 3,
"links": [
{
"rel": "self",
"href": "/resource_providers/9e12284f-2f9a-4a2e-874f-cfa87d62a77c"
},
{
"rel": "inventories",
"href": "/resource_providers/9e12284f-2f9a-4a2e-874f-cfa87d62a77c/inventories"
},
{
"rel": "usages",
"href": "/resource_providers/9e12284f-2f9a-4a2e-874f-cfa87d62a77c/usages"
}
]
}
]
}
[root@controller01 ~(keystone)]#
[root@controller01 ~(keystone)]# curl -s -H "X-Auth-Token: $(openstack token issue -f value -c id)" \
-H "Content-Type: application/json" \
https://controller01.osp.local:8778/resource_providers/9e12284f-2f9a-4a2e-874f-cfa87d62a77c/inventories | jq
{
"resource_provider_generation": 3,
"inventories": {
"VCPU": {
"total": 2,
"reserved": 0,
"min_unit": 1,
"max_unit": 2,
"step_size": 1,
"allocation_ratio": 16.0
},
"MEMORY_MB": {
"total": 5665,
"reserved": 512,
"min_unit": 1,
"max_unit": 5665,
"step_size": 1,
"allocation_ratio": 4.0
},
"DISK_GB": {
"total": 9,
"reserved": 0,
"min_unit": 1,
"max_unit": 9,
"step_size": 1,
"allocation_ratio": 4.0
}
}
}
[root@controller01 ~(keystone)]#