Help Center/ ServiceStage/ API Reference/ Historical APIs/ Application Management V2 APIs/ Meta/ Obtaining All Supported Flavors of Application Resources
Updated on 2025-11-28 GMT+08:00

Obtaining All Supported Flavors of Application Resources

Function

This API is used to obtain all supported flavors of application resources.

Debugging

You can debug this API in API Explorer which supports automatic authentication. API Explorer automatically generates sample SDK code and provides the debug function.

URI

GET /v2/{project_id}/cas/metadata/flavors

Table 1 Path parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant's project ID. See Obtaining a Project ID.

Request

Table 2 Request header parameters

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

Table 3 Response parameters

Parameter

Type

Description

flavors

Array of objects

Flavor parameters. See Table 4.

Table 4 flavors

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

See ServiceStage Error Codes.