All Products
Search
Document Center

Elastic Desktop Service:ModifyAutoSnapshotPolicy

Last Updated:Jun 29, 2026

Modifies the configuration items of an automatic snapshot policy, including the policy name and snapshot retention period.

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

No authorization for this operation. If you encounter issues with this operation, contact technical support.

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID. You can call DescribeRegions to query the regions supported by Elastic Desktop Service.

cn-hangzhou

PolicyId

string

Yes

The ID of the automatic snapshot policy.

sp-itcmrhqt01tdo****

PolicyName

string

No

The name of the automatic snapshot policy. The name must be 2 to 128 characters in length. The name must start with a letter and cannot start with http:// or https://. The name can contain digits, colons (:), underscores (_), or hyphens (-). Default value: empty.

系统自动快照

RetentionDays

integer

No

The retention period of automatic snapshots. Unit: days. Valid values: 1 to 180.

2

CronExpression

string

No

The cron expression.

0 20 16 ? * 1,2,3,4,5,6,7

DiskType

string

No

The type of cloud disk for which the automatic snapshot policy creates snapshots.

Valid values:

  • SYSTEM :

    system cloud disk.

  • ALL :

    all cloud disks.

  • DATA :

    data cloud disk.

ALL

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

51592A88-0F2C-55E6-AD2C-2AD9C10D****

Examples

Success response

JSON format

{
  "RequestId": "51592A88-0F2C-55E6-AD2C-2AD9C10D****"
}

Error codes

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.