• Native OpenStack API

noa
  1. Help Center
  2. Native OpenStack API
  3. API Reference
  4. Nova
  5. Flavor Management
  6. Querying the extra_specs Value for an ECS Flavor

Querying the extra_specs Value for an ECS Flavor

Function

This API is used to query the extra_specs value for a specified ECS flavor.

URI

GET /v2.1/{project_id}/flavors/{flavors_id}/os-extra_specs

Table 1 describes the parameters in the URI.
Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

flavors_id

Yes

Specifies the flavor ID.

Request

N/A

Response

Response parameters

Table 2 describes the response parameters.

Table 2 Response parameters

Parameter

Type

Description

extra_specs

Dict

Specifies the key-value pair of an ECS flavor.

For details about the returned fields, see the os_extra_specs field description in "Querying Details About Flavors and Extended Flavor Information".

Examples

  • Example request
    GET v2/775ad4f543e247938551b93417b27f0b/flavors/c2.medium/os-extra_specs
    GET v2.1/775ad4f543e247938551b93417b27f0b/flavors/c2.medium/os-extra_specs
  • Example response
    {
        "extra_specs": {
            "key1": "value1",
            "key2": "value2"
        }
    }

Returned Values

See General Request Returned Values.