Creates an automatic snapshot policy that schedules snapshots for WUYING Workspace based on a cron expression.
Try it now
Test
RAM authorization
Request parameters
Parameter | Type | Required | Description | Example |
RegionId | string | Yes | The region ID. For more information, see DescribeRegions to get a list of regions supported by WUYING Workspace. | cn-hangzhou |
PolicyName | string | Yes | The name of the automatic snapshot policy. It can contain 2 to 128 English or Chinese characters. It must start with a letter or a Chinese character, and cannot start with | test_auto_policy |
RetentionDays | integer | Yes | The retention period of the automatic snapshot, in days. Valid values: 1 to 180. | 2 |
CronExpression | string | Yes | The cron expression for the recurring schedule. | 0 0 2 ? * 1-7 |
DiskType | string | No |
Response elements
Element | Type | Description | Example |
object | |||
PolicyId | string | The ID of the automatic snapshot policy. | sp-3hpa78d0qyt99**** |
RequestId | string | The request ID. | 51592A88-0F2C-55E6-AD2C-2AD9C10D**** |
Examples
Success response
JSON format
{
"PolicyId": "sp-3hpa78d0qyt99****",
"RequestId": "51592A88-0F2C-55E6-AD2C-2AD9C10D****"
}Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.