• Elastic Cloud Server

ecs
  1. Help Center
  2. Elastic Cloud Server
  3. API Reference
  4. OpenStack Nova APIs
  5. Flavor Management
  6. Querying Details About an ECS Flavor

Querying Details About an ECS Flavor

Function Description

This interface is used to query the details about an ECS flavor based on the flavor ID.

URI

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

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

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

flavor

Dictionary data structure

Specifies ECS flavors. For details, see Table 3.

Table 3 flavor field description

Parameter

Type

Description

id

String

Specifies the ID of ECS flavor.

name

String

Specifies the name of the ECS flavor.

description

String

Specifies detailed information about an ECS flavor.

This field is supported in microversions later than 2.55.

vcpus

Integer

Specifies the number of vCPUs in the ECS flavor.

ram

Integer

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

disk

Integer

Specifies the system disk size in the ECS flavor. The value 0 indicates that the disk size is not limited.

The field is invalid in this system.

swap

String

Reserved

OS-FLV-EXT-DATA:ephemeral

Integer

Reserved

OS-FLV-DISABLED:disabled

Boolean

Reserved

rxtx_factor

Float

Reserved

os-flavor-access:is_public

Boolean

Reserved

links

List data structure

Specifies shortcut links for ECS flavors. For details, see Table 4.

Table 4 links field description

Parameter

Type

Description

rel

String

Specifies the shortcut link marker name.

href

String

Provides the corresponding shortcut link.

Examples

  • Example response
    {
        "flavor": 
    {
            "id": "104",
            "name": "m1.large",
            "vcpus": 4,
            "ram": 8192,
            "disk": 80,
            "swap": "",
            "links": [
    {
                    "rel": "self",
                    "href": "https://compute.Region.dc1.domainname.com/v2/a1d8bff5d3d240adab0665cf6843c770/flavors/104"
                    }, 
    {
                    "rel": "bookmark",
                    "href": "https://compute.Region.dc1.domainname.com/a1d8bff5d3d240adab0665cf6843c770/flavors/104"
                    }
                ], 
            "OS-FLV-EXT-DATA:ephemeral": 0,
            "rxtx_factor": null,
            "OS-FLV-DISABLED:disabled": null,
            "rxtx_quota": null,
            "rxtx_cap": null,
            "os-flavor-access:is_public": null
                    }
                    }

Returned Values

See General Request Returned Values.