UpdateServiceRollout

Updated at:

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

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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

  • Type: string

  • Required: yes

  • Description: The region ID. The identifier of the region where the service resides.

  • Example: cn-shanghai

cn-shanghai

ServiceName

string

Yes

ServiceName

  • Type: string

  • Required: yes

  • Description: The service name. The name of the service for which you want to update the rollout policy.

  • Example: my-service

my-service

Request parameters

Parameter

Type

Required

Description

Example

body

object

No

The request body.

Partition

object

No

Partition

  • Type: object

  • Required: no

  • Description: The partition rollout configuration. Used to adjust partition policy parameters. Mutually exclusive with Batch.

Partition

string

No

Partition

  • Type: string

  • Required: yes

  • Description: The partition value. Supports two formats:
    1. Integer format: such as "5", which indicates that 5 old replicas are retained.

    2. Percentage format: such as "50%", which indicates that 50% of the old replicas are retained. Adjustment strategies:

    • Increase the value: Roll back to the old version and increase the proportion of old replicas.

    • Decrease the value: Proceed to the new version and decrease the proportion of old replicas.

    • Set to "0%": Complete the full update and switch all replicas to the new version.

  • Example: 30%

30%

Batch

object

No

Batch

  • Type: object

  • Required: no

  • Description: The batch rollout configuration. Used to adjust batch policy parameters. Mutually exclusive with Partition.

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": The policy is updated.

  • "Rollout paused successfully": The rollout is paused.

  • "Rollout resumed successfully": The rollout is resumed.

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.