Querying Details About an ECS Flavor
Function
This API is used to query the details about an ECS flavor based on the flavor ID.
URI
GET /v2.1/{project_id}/flavors/{flavor_id}
| Parameter | Mandatory | Description |
|---|---|---|
| project_id | Yes | Specifies the project ID. For details about how to obtain the ID, see Obtaining a Project ID. |
| flavors_id | Yes | Specifies the flavor ID. |
Request
None
Response
| Parameter | Type | Description |
|---|---|---|
| flavor | Object | Specifies the ECS flavor. For details, see Table 3. |
| Parameter | Type | Description |
|---|---|---|
| id | String | Specifies the ID of the ECS flavor. |
| name | String | Specifies the name of the ECS flavor. |
| vcpus | Integer | Specifies the number of vCPUs in the ECS flavor. |
| ram | Integer | Specifies the memory size (MiB) in the ECS flavor. |
| disk | Integer | Specifies the system disk size in the ECS flavor. This parameter has not been used. Its default value is 0. |
| swap | String | Specifies the swap partition size required by the ECS flavor. This parameter has not been used. Its default value is "". |
| OS-FLV-EXT-DATA:ephemeral | Integer | Specifies the temporary disk size. This is an extended attribute. This parameter has not been used. Its default value is 0. |
| OS-FLV-DISABLED:disabled | Boolean | Specifies whether the ECS flavor has been disabled. This is an extended attribute. This parameter has not been used. Its default value is false. |
| rxtx_factor | Float | Specifies the ratio of the available network bandwidth to the network hardware bandwidth of the ECS. This parameter has not been used. Its default value is 1.0. |
| os-flavor-access:is_public | Boolean | Specifies whether a flavor is available to all tenants. This is an extended attribute.
Default value: true |
| links | Array of objects | Specifies shortcut links for ECS flavors. For details, see Table 4. |
Example Request
Query details about an ECS flavor.
GET https://{endpoint}/v2.1/743b4c0428d94531b9f2add666642e6b/flavors/c3.2xlarge.2 Example Response
{
"flavor": {
"name": "c3.2xlarge.2",
"links": [
{
"href": "https://compute.region.example.com/v2.1/743b4c0428d94531b9f2add666642e6b/flavors/c3.2xlarge.2",
"rel": "self"
},
{
"href": "https://compute.region.example.com/743b4c0428d94531b9f2add666642e6b/flavors/c3.2xlarge.2",
"rel": "bookmark"
}
],
"ram": 16384,
"OS-FLV-DISABLED:disabled": false,
"vcpus": 8,
"swap": "",
"os-flavor-access:is_public": true,
"rxtx_factor": 1,
"OS-FLV-EXT-DATA:ephemeral": 0,
"disk": 0,
"id": "c3.2xlarge.2"
}
} Returned Values
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.