Upgrading a Microservice Engine
Function
This API is used to upgrade a microservice engine, including exclusive ServiceComb engine and registry/configuration center.
Authorization Information
Each account has all of the permissions required to call all APIs, but IAM users must have the required permissions specifically assigned.
- If you are using role/policy-based authorization, see the required permissions in Permissions and Supported Actions.
- If you are using identity policy-based authorization, the permission listed below is required.
Action
Access Level
Resource Type (*: required)
Condition Key
Alias
Dependency
cse:engine:upgrade
write
engine
-
-
URI
PUT /v2/{project_id}/enginemgr/engines/{engine_id}/upgrade
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Project ID. |
|
engine_id |
Yes |
String |
ID of the engine to be upgraded. |
Request
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
X-Auth-Token |
Yes |
String |
User token. |
|
X-Enterprise-Project-ID |
No |
String |
If this parameter is not set, the default enterprise project is default and the ID is 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 |
|---|---|---|---|
|
version |
Yes |
String |
Version number. Maximum length: 24 |
Response
|
Parameter |
Type |
Description |
|---|---|---|
|
id |
String |
Microservice engine ID. |
|
name |
String |
Microservice engine name. |
|
jobId |
Integer |
ID of the job executed by a 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
{
"version" : "2.4.0"
}
Example Response
Status code: 200
Response structure for upgrading a microservice engine.
{
"id" : "891bf21a-4024-4f47-b38c-bd259ca8f10a",
"name" : "test",
"jobId" : 17655
}
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