Modifies an automatic snapshot policy's parameters, including its name and snapshot retention period.
Try it now
Test
RAM authorization
Action | Access level | Resource type | Condition key | Dependent action |
ecd:ModifyAutoSnapshotPolicy | update | *All Resource
| None | None |
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The region ID. Call DescribeRegions to get a list of regions where Elastic Desktop Service (EDS) is available. | 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. It must start with a letter. The name cannot start with | 系统自动快照 |
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 |
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.