• Bare Metal Server

bms
  1. Help Center
  2. Bare Metal Server
  3. API Reference
  4. API
  5. BMS Flavor Query (Native OpenStack APIs)
  6. Querying Details About BMS Flavor extra_specs (Native OpenStack API)

Querying Details About BMS Flavor extra_specs (Native OpenStack API)

Function

This interface is used to query details about BMS flavor extra_specs.

URI

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

Table 1 lists the parameters.

Table 1 Parameter description

Parameter

Mandatory

Description

project_id

Yes

Specifies the project ID.

flavors_id

Yes

Specifies the flavor ID.

Request Message

N/A

Response Message

  • Response parameters

    Parameter

    Type

    Description

    extra_specs

    Dict

    Specifies the key-value pair of a BMS flavor.

    NOTE:

    Local disk: The value of baremetal:extBootType is LocalDisk.

    System disk (quick BMS provisioning): The value of baremetal:extBootType is Volume.

  • Example response
    {
        "extra_specs": {
            "capabilities:cpu_arch": "x86_64",
            "baremetal:disk_detail": "SAS 8T",
            "capabilities:hypervisor_type": "ironic",
            "baremetal:__support_evs": "true",
            "baremetal:extBootType": "LocalDisk",
            "capabilities:board_type": "s2m",
            "baremetal:net_num": "2",
            "baremetal:netcard_detail": "2*10GE",
            "baremetal:cpu_detail": "2*8coreIntel Xeon E5-2667 V43.2GHz",
            "resource_type": "ironic",
            "baremetal:memory_detail": "256GB DDR4 RAM(GB)"
        }
    }

Returned Values

See section Common Returned Values.

Error Codes

Error Code

Description

Handling Measure

404

The resource could not be found.

Check whether the flavor exists.