• 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 a BMS Flavor (Native OpenStack API)

Querying Details About a BMS Flavor (Native OpenStack API)

Function

This interface is used to query details about a BMS flavor based on the flavor ID.

URI

GET /v2.1/{project_id}/flavors/{flavors_id}

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

    flavor

    Dictionary data structure [1]

    Specifies the BMS flavor.

    [1] flavor field data structure description

    Parameter

    Type

    Description

    id

    String

    Specifies the ID of the BMS flavor.

    name

    String

    Specifies the name of the BMS flavor.

    vcpus

    Integer

    Specifies the number of CPU cores in the BMS flavor.

    ram

    Integer

    Specifies the memory size (MB) in the BMS flavor.

    disk

    Integer

    Specifies the disk size (GB) in the BMS flavor.

    swap

    String

    This is a reserved attribute.

    OS-FLV-EXT-DATA:ephemeral

    Integer

    This is a reserved attribute.

    OS-FLV-DISABLED:disabled

    Boolean

    This is a reserved attribute.

    rxtx_factor

    Float

    This is a reserved attribute.

    os-flavor-access:is_public

    Boolean

    This is a reserved attribute.

    links

    List data structure [2]

    Specifies the shortcut link of the BMS flavor.

    [2] links field data structure description

    Parameter

    Type

    Description

    rel

    String

    Specifies the shortcut link marker name.

    href

    String

    Specifies the corresponding shortcut link.

  • Example response
    {
        "flavor": {
            "name": "physical.83.medium",
            "links": [
                {
                    "href": "https://openstack.example.com/v2/c685484a8cc2416b97260938705deb65/flavors/physical.83.medium",
                    "rel": "self"
                },
                {
                    "href": "https://openstack.example.com/c685484a8cc2416b97260938705deb65/flavors/physical.83.medium",
                    "rel": "bookmark"
                }
            ],
            "ram": 192705,
            "OS-FLV-DISABLED:disabled": false,
            "vcpus": 24,
            "swap": "",
            "os-flavor-access:is_public": true,
            "rxtx_factor": 1,
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "disk": 1862,
            "id": "physical.83.medium"
        }
                    }

Returned Values

See section Common Returned Values.