Querying Details About Flavors and Extended Flavor Information
Function
This API is used to query details about BMS flavors and extended flavor information. You can call this API to query the value of parameter baremetal:extBootType to check whether a flavor supports quick BMS provisioning.
URI
GET /v1/{project_id}/baremetalservers/flavors?availability_zone={availability_zone}
|
Parameter |
Mandatory |
Description |
|---|---|---|
|
project_id |
Yes |
Specifies the project ID. For details about how to obtain the project ID, see Obtaining a Project ID. |
Request
- Request parameters
The following table lists the parameter for querying BMS flavors.
Parameter
Mandatory
Type
Description
availability_zone
No
String
Specifies the AZ name.
For details, see Regions and Endpoints.
- Example request
1
GET https://{BMS Endpoint}/v1/c685484a8cc2416b97260938705deb65/baremetalservers/flavors?availability_zone=cn-north-1a
Response
- Response parameters
Parameter
Type
Description
flavors
Array of objects
Specifies BMS flavors. For details, see Table 2.
Table 2 flavors field data structure description Parameter
Type
Description
id
String
Specifies the ID of BMS flavor.
name
String
Specifies the name of the BMS flavor.
vcpus
String
Specifies the number of CPU cores in the BMS flavor.
ram
Integer
Specifies the memory size (MB) in the BMS flavor.
disk
String
Specifies the system disk size in the BMS flavor. The value 0 indicates that the disk size is not limited.
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
Integer
This is a reserved attribute.
rxtx_quota
String
This is a reserved attribute.
rxtx_cap
String
This is a reserved attribute.
os-flavor-access:is_public
Boolean
Specifies whether the flavor is public.
false indicates a private flavor and true indicates a public flavor.
links
Array of objects
Specifies shortcut links of the flavor. For details, see Table 3.
os_extra_specs
Object
Specifies extended fields of the BMS flavor. For details, see Table 4.
Table 3 links field data structure description Parameter
Type
Description
rel
String
Specifies the shortcut link marker name. The value can be:
- self: resource link that contains the version number. It is used when immediate tracing is required.
- bookmark: resource link that can be stored for a long time.
href
String
Specifies the corresponding shortcut link.
type
String
Specifies the shortcut link type.
Table 4 os_extra_specs field data structure description Parameter
Type
Description
resource_type
String
Specifies the resource type corresponding to the flavor. The value is ironic.
capabilities:cpu_arch
String
Specifies the CPU architecture of the BMS. The value can be:
- x86_64 (applicable to x86 servers)
- aarch64 (applicable to ARM servers)
baremetal:disk_detail
String
Specifies physical disk specifications.
capabilities:hypervisor_type
String
Specifies a flavor of the Ironic type.
baremetal:__support_evs
String
Specifies whether the BMS flavor supports EVS disks.
- true
- false
If the flavor does not contain this parameter, EVS disks are not supported either.
baremetal:extBootType
String
Specifies the boot source of the BMS.
- LocalDisk: local disk
- Volume: EVS disk (quick provisioning)
capabilities:board_type
String
Specifies the type of the BMS flavor in the format of flavor abbreviation. For example, if the flavor name is physical.o2.medium, the flavor type is o2m.
baremetal:net_num
String
Specifies the maximum number of NICs on the BMS.
baremetal:netcard_detail
String
Specifies physical NIC specifications.
baremetal:cpu_detail
String
Specifies physical CPU specifications.
baremetal:memory_detail
String
Specifies physical memory specifications.
cond:operation:status
String
Specifies the status of the BMS flavor. If this parameter is not set, its default value is normal.
- normal: indicates normal commercial use of the flavor.
- abandon: indicates that the flavor has been disabled (not displayed).
- sellout: indicates that the flavor has been sold out.
- obt: indicates that the flavor is under OBT.
- promotion: indicates the recommended flavor (commercial use, which is similar to normal).
cond:operation:az
String
Specifies the BMS flavor status in an AZ.
This parameter takes effect AZ-wide. If an AZ is not configured in this parameter, the value of the cond:operation:status parameter is used by default.
Its format is az (xx). xx indicates the status of the BMS flavor in an AZ, and it is mandatory. If xx is not specified, the configuration is invalid.
For example, a flavor is for commercial use in AZs 0 and 3, sold out in AZ 1, for OBT in AZ 2, and is canceled in other AZs. Then, set parameters as follows:
- cond:operation:status: abandon
- cond:operation:az: az0(normal), az1(sellout), az2(obt), az3(promotion)
NOTE:Configure this parameter if the flavor status in an AZ is different from the cond:operation:status value.
- Example response
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
{ "flavors": [ { "id": "physical.kl1.3xlarge", "name": "physical.kl1.3xlarge", "vcpus": "24", "ram": 321729, "disk": "6707", "swap": "", "links": [ { "rel": "self", "href": "https://compute.Region.dc1.domainname.com/v2/bbf1946d374b44a0a2a95533562ba954/flavors/physical.kl1.3xlarge", "type": null }, { "rel": "bookmark", "href": "https://compute.Region.dc1.domainname.com/bbf1946d374b44a0a2a95533562ba954/flavors/physical.kl1.3xlarge", "type": null } ], "OS-FLV-EXT-DATA:ephemeral": 0, "rxtx_factor": 1, "OS-FLV-DISABLED:disabled": false, "rxtx_quota": null, "rxtx_cap": null, "os-flavor-access:is_public": false, "os_extra_specs": { "capabilities:cpu_arch": "x86_64", "baremetal:disk_detail": "SAS SSD:2*800G Raid 1 + NVMe SSD Card1.6T", "capabilities:hypervisor_type": "ironic", "baremetal:__support_evs": "true", "baremetal:extBootType": "LocalDisk", "capabilities:board_type": "o2m", "baremetal:net_num": "2", "baremetal:netcard_detail": "2 x 2*10GE", "baremetal:cpu_detail": "Intel Xeon E5-2667 V4 (2*8core* 3.2 GHz)", "resource_type": "ironic", "baremetal:memory_detail": "256GB DDR4 RAM(GB)" } } ] }
Returned Values
|
Returned Values |
Description |
|---|---|
|
200 |
The server has successfully processed the request. |
For details about other returned values, see Status Codes.
Error Codes
See Error Codes.
Last Article: BMS Flavor Management
Next Article: BMS NIC Management
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.