0baba40b1b
Exposes flavor extra_specs in the flavor representation since microversion 2.61. Now users can see the flavor extra-specs in flavor APIs response only and do not need to call ``GET /flavors/{flavor_id}/extra_specs`` API. Flavor extra_specs will be included in Response body of the following APIs: * ``GET /flavors/detail`` * ``GET /flavors/{flavor_id}`` * ``POST /flavors`` * ``PUT /flavors/{flavor_id}`` Part of blueprint add-extra-specs-to-flavor-list Change-Id: I048747633babf690a63c6de9773bff5547872053
27 lines
732 B
JSON
27 lines
732 B
JSON
{
|
|
"flavor": {
|
|
"OS-FLV-DISABLED:disabled": false,
|
|
"disk": 1,
|
|
"OS-FLV-EXT-DATA:ephemeral": 0,
|
|
"os-flavor-access:is_public": true,
|
|
"id": "1",
|
|
"links": [
|
|
{
|
|
"href": "http://openstack.example.com/v2.1/6f70656e737461636b20342065766572/flavors/1",
|
|
"rel": "self"
|
|
},
|
|
{
|
|
"href": "http://openstack.example.com/6f70656e737461636b20342065766572/flavors/1",
|
|
"rel": "bookmark"
|
|
}
|
|
],
|
|
"name": "m1.tiny",
|
|
"ram": 512,
|
|
"swap": "",
|
|
"vcpus": 1,
|
|
"rxtx_factor": 1.0,
|
|
"description": "updated description",
|
|
"extra_specs": {}
|
|
}
|
|
}
|