• Native OpenStack API

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

Querying extra_specs for an ECS Flavor

Function Description

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

URI

  • URI format

    GET /v2/{tenant_id}/flavors/{flavors_id}/os-extra_specs

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

  • Parameter description

    Parameter

    Mandatory

    Description

    tenant_id

    Yes

    Specifies the tenant or project ID.

    flavors_id

    Yes

    Specifies the flavor ID.

Restrictions

N/A

Extension Description

N/A

Request

N/A

Response

Parameter

Type

Mandatory

Description

extra_specs

Dict

No

Specifies the key-value pair of an ECS flavor.

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.