Modifies the configuration items of an automatic snapshot policy, including the policy name and snapshot retention period.
Try it now
Test
RAM authorization
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 |
系统自动快照 |
| 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:
|
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.