Changing Microservice Engine Specifications
Function
This API is used to change microservice engine specifications.
URI
PUT /v2/{project_id}/enginemgr/engines/{engine_id}/resize
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
project_id |
Yes |
String |
Project ID. |
engine_id |
Yes |
String |
Engine ID. |
Request
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
X-Auth-Token |
Yes |
String |
IAM token. |
X-Enterprise-Project-ID |
No |
String |
If this parameter is not set, the default enterprise project is default and the ID is 0. Default value: 0 |
Content-Type |
Yes |
String |
Set it to application/json;charset=UTF-8. |
Accept |
Yes |
String |
Set it to application/json. |
Parameter |
Mandatory |
Type |
Description |
---|---|---|---|
flavor |
No |
String |
New flavor. |
inputs |
No |
Map<String,String> |
New configuration, which overwrites the input parameter of the component. |
Response
Parameter |
Type |
Description |
---|---|---|
id |
String |
Engine ID. |
name |
String |
Engine name. |
job_id |
Integer |
Job ID. |
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
PUT https://{endpoint}/v2/{project_id}/enginemgr/engines/{engine_id}/resize { "flavor" : "string", "inputs" : { "additionalProp1" : "string", "additionalProp2" : "string", "additionalProp3" : "string" } }
Example Response
Status code: 200
Response structure for changing microservice engine specifications.
{ "id" : "string", "name" : "string", "job_id" : 0 }
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