UpdateServiceRollout
Updates the service rollout plan.
Operation description
Request description
Provide at least one parameter: You must specify at least one of the Partition, Batch, or Paused parameters in the request.
Mutually exclusive policies: You cannot provide both Partition and Batch configurations at the same time.
Immediate effect: Updates take effect immediately and affect the ongoing service rollout process.
Rollback operations: You can roll back to a previous version by increasing the Partition value. However, this is not triggered automatically and requires you to manually update the service image.
Pausing does not affect parameters: Pausing the rollout does not change the configured Partition or Batch parameters. It only pauses the execution of the current policy.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
eas:UpdateServiceRollout |
update |
*All Resource
|
None | None |
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/rollout HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
ClusterId
|
cn-shanghai |
| ServiceName |
string |
Yes |
ServiceName
|
my-service |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Partition |
object |
No |
Partition
|
|
| Partition |
string |
No |
Partition
|
30% |
| Batch |
object |
No |
Batch
|
|
| BatchSize |
string |
No |
The batch size. The number of replicas to update in each batch. Supports integer or percentage format. Default value: "25%". |
25% |
| Interval |
string |
No |
The batch interval. The wait time between two rollouts. Supported units: s (seconds), m (minutes), and h (hours). |
60s |
| Paused |
boolean |
No |
Specifies whether to pause the rollout. A value of true indicates that the rollout is paused. A value of false indicates that the rollout is resumed. |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. The unique identifier returned for each request, used for troubleshooting and tracking. |
40325405-579C-4D82**** |
| Message |
string |
The returned message. Describes the request processing result. Valid values:
|
Rollout updated successfully |
Examples
Success response
JSON format
{
"RequestId": "40325405-579C-4D82****",
"Message": "Rollout updated successfully"
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.