Obtaining All Supported Flavors of Application Resources
Function
This API is used to obtain all supported flavors of application resources.
URI
GET /v2/{project_id}/cas/metadata/flavors
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Tenant's project ID. See Obtaining a Project ID. |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
Content-Type |
Yes |
String |
Message body type (format). Default value: application/json;charset=utf8. |
X-Auth-Token |
Yes |
String |
API calling can be authenticated using a token or AK/SK. If you use a token, this parameter is mandatory and must be set to the token. For details about how to obtain a token, see Obtaining a User Token. |
Response
Parameter |
Type |
Description |
---|---|---|
flavors |
Array of objects |
Flavor parameters. See Table 4. |
Parameter |
Type |
Description |
---|---|---|
flavor_id |
String |
Flavor ID. |
storage_size |
String |
Storage size. |
num_cpu |
String |
CPU limit. |
num_cpu_init |
String |
Initial CPU value. |
memory_size |
String |
Memory limit. |
memory_size_init |
String |
Initial memory value. |
label |
String |
Label. |
custom |
boolean |
Whether resource specifications are customized. |
Example
None
Example Response
{ "flavors": [ { "flavor_id": "MICRO-5G:0.5C:1G", "storage_size": "5G", "num_cpu": "500m", "num_cpu_init": "200m", "memory_size": "1Gi", "memory_size_init": "200Mi", "label": "Micro: 5G Storage, 0.5 CPU, 1G Memory", "custom": false } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
404 |
Not Found |
500 |
Internal Server Error |
Error Code
The error code format is SVCSTG.00100.[Error_ID], for example, SVCSTG.00100400. For details, see ServiceStage Error Codes.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot