Querying Details About a Flavor
Function
This API is used to query the details of a flavor with a specified ID.
Calling Method
For details, see Calling APIs.
URI
GET /v1.1/{project_id}/flavors/{flavor_id}
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
flavor_id |
Yes |
String |
Flavor ID. For details about how to obtain it, see Querying Version Flavors. |
Request Parameters
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. This parameter is mandatory when token authentication is used. You can obtain it from the value of X-Subject-Token in the response message header returned by the "Obtaining a User Token" API of the IAM service. |
Response Parameters
Status code: 200
Parameter |
Type |
Description |
---|---|---|
name |
String |
Flavor name |
str_id |
String |
Flavor ID |
flavor_detail |
Array of flavorAttribute objects |
List of flavor details |
Example Requests
GET /v1.1/1551c7f6c808414d8e9f3c514a170f2e/flavors/a79fd5ae-1833-448a-88e8-3ea2b913e1f6
Example Responses
Status code: 200
Request succeeded.
{ "str_id" : "a79fd5ae-1833-448a-88e8-3ea2b913e1f6", "name" : "cdm.large", "flavor_detail" : [ { "name" : "cpu", "value" : 8 }, { "name" : "mem", "value" : 16 }, { "name" : "volumeType", "value" : "SATA" }, { "name" : "flavor", "value" : "s6.2xlarge.2" } ] }
Status Codes
Status Code |
Description |
---|---|
200 |
Request succeeded. |
400 |
Request error. |
401 |
Authentication failed. |
403 |
No operation permissions. |
404 |
No resources found. |
500 |
Internal service error. For details about the returned error code, see Error Codes. |
503 |
Service unavailable. |
Error Codes
See Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.