Querying the Flavor List of a Microservice Engine
Function
This API is used to query the flavor list of a microservice engine, including exclusive ServiceComb engines and registry/configuration centers.
URI
GET /v2/{project_id}/enginemgr/flavors
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID, which must be unique. The value contains 1 to 64 characters. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
specType |
No |
String |
Deployment type of a microservice engine.
|
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
User token. |
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
Accept |
Yes |
String |
Set it to application/json. |
Response
Parameter |
Type |
Description |
---|---|---|
total |
Integer |
Total number of microservice engine flavors. |
data |
Array of FlavorBrief objects |
Microservice engine flavor details. |
Parameter |
Type |
Description |
---|---|---|
flavor |
String |
Microservice engine flavor. |
description |
String |
Microservice engine flavor description. |
spec |
EngineSpec object |
Parameters about an exclusive microservice engine. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Parameter |
Type |
Description |
---|---|---|
error_code |
String |
Error code. |
error_msg |
String |
Error message. |
detail |
String |
Location details. |
Example Request
GET https://{endpoint}/v2/{project_id}/enginemgr/flavors?specType=CSE2
Example Response
Status code: 200
Response struct for querying the flavor list of a microservice engine.
{ "total" : 0, "data" : [ { "flavor" : "cse.s1.small2", "description" : "string", "spec" : [ { "availableCpuMemory" : "2-4", "linear" : false, "availablePrefix" : "s,c,t" } ] } ] }
Status Code
Status Code |
Description |
---|---|
200 |
OK |
400 |
Bad Request |
500 |
Internal Server Error |
Error Code
See 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