Help Center> ServiceStage> API Reference> CSE API> Engine Management> Querying Flavors Supported by an Exclusive Microservice Engine
Updated on 2024-06-14 GMT+08:00

Querying Flavors Supported by an Exclusive Microservice Engine

Function

This API is used to query the list of flavors supported by an exclusive microservice engine.

URI

GET /v2/{project_id}/enginemgr/flavors

Table 1 Path parameter

Parameter

Mandatory

Type

Description

project_id

Yes

String

Tenant sub-project ID, which must be unique. The value contains 1 to 64 characters. See Obtaining a Project ID.

Table 2 query parameter

Parameter

Mandatory

Type

Description

specType

No

String

  • To query a 1.x CSE engine, set it to CSE.
  • To query a 2.x CSE engine, set it to CSE2.

Request

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token.

X-Enterprise-Project-ID

No

String

Enterprise project ID.

If this parameter is not set, the default enterprise project is default and the ID is 0.

Response

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

total

Integer

Total number of flavors of an exclusive microservice engine.

data

Array of Flavor objects

Flavor details of an exclusive microservice engine.

Table 5 Flavor

Parameter

Type

Description

flavor

String

Flavor of an exclusive microservice engine.

description

String

Flavor description of an exclusive microservice engine.

Status code: 400

Table 6 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Status code: 500

Table 7 Response body parameters

Parameter

Type

Description

errorCode

String

Error code.

errorMessage

String

Error message.

detail

String

Location details.

Example Request

Query the list of flavors supported by an exclusive microservice engine.

GET /v2/{project_id}/enginemgr/flavors

Example Response

{   
  "total": 0,   
  "data": [     
    {       
      "flavor": "string",       
      "description": "string"     
    }   
  ]
}

Status Code

Status Code

Description

200

OK

400

Bad Request

500

Internal Server Error

Error Code

See CSE Error Codes.