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 | Type | Mandatory | Description |
|---|---|---|---|
| project_id | String | Yes | Tenant's project ID. |
Request Parameters
Request parameters
None
Response Parameters
Response parameters
| Parameter | Type | Description |
|---|---|---|
| flavors | Array of objects | Flavor parameters. See Table 3. |
Example
Example request
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"
}
]
} Status Code
| HTTP Status Code | Description |
|---|---|
| 200 | OK |
| 400 | Bad Request |
| 404 | Not Found |
| 500 | Internal Server Error |
Error code must be in the format of SVCSTG.00100.[Error_ID]. Example: SVCSTG.00100400. See Error Codes of Application Management APIs.
Last Article: Obtaining All Supported Runtimes of Application Components
Next Article: Environments
Did this article solve your problem?
Thank you for your score!Your feedback would help us improve the website.