Updates a service rollout.
Operation description
Usage notes
Provide at least one parameter: Specify at least one of the
Partition,Batch, orPausedparameters.Mutually exclusive strategies: You cannot specify both the
PartitionandBatchparameters in the same request.Immediate effect: Updates take effect immediately and affect ongoing service rollouts.
Rollback: You can perform a rollback by increasing the
Partitionvalue. However, this is not an automatic process, and you must manually update the service image.Pause does not affect parameters: Pausing a rollout does not change the configured
PartitionorBatchparameters. It only suspends the current rollout strategy.
Try it now
Test
RAM authorization
Request syntax
PUT /api/v2/services/{ClusterId}/{ServiceName}/rollout HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The region ID where the service is located.
|
cn-shanghai |
| ServiceName |
string |
Yes |
The name of the service.
|
my-service |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| body |
object |
No |
The request body. |
|
| Partition |
object |
No |
The partition rollout configuration. This parameter is mutually exclusive with
|
|
| Partition |
string |
No |
Partition value
|
30% |
| Batch |
object |
No |
The batch rollout configuration. This parameter is mutually exclusive with
|
|
| BatchSize |
string |
No |
The number of replicas to update in each batch. This can be an integer or a percentage. The default is |
25% |
| Interval |
string |
No |
The interval to wait between batches. Supported units include |
60s |
| Paused |
boolean |
No |
Set to |
true |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
A unique identifier for the request. You can use this request ID for troubleshooting and tracking. |
40325405-579C-4D82**** |
| Message |
string |
A message that indicates the result of the request. Possible values include:
|
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.