Updates the version of a service or rolls back the service to a specific version.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateServiceVersion |
update |
*Service
|
None | None |
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/version HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The ID of the region where the service is deployed. |
cn-shanghai |
| ServiceName |
string |
Yes |
The service name. For more information about how to query the service name, see ListServices. |
echo |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Version |
integer |
Yes |
The destination version of the service. The value must be of the INT type. The value must be greater than 0 and smaller than the current version of the service. |
1 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RequestId |
string |
The request ID. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. |
Service [foo] in region [cn-shanghai] is starting |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Service [foo] in region [cn-shanghai] is starting"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.