The operation that you want to perform. Set the value to \*\*ModifyAutoSnapshotPolicyEx\*\*.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
regionId | string | Yes | The ID of the automatic snapshot policy. You can call the DescribeAutoSnapshotPolicyEx operation to query available automatic snapshot policies. | cn-hangzhou |
autoSnapshotPolicyId | string | Yes | The name of the automatic snapshot policy. If this parameter is not specified, the original name of the automatic snapshot policy is retained. | sp-bp12m37ccmxvbmi5**** |
autoSnapshotPolicyName | string | No | The points in time of the day at which to create automatic snapshots. The time must be in UTC+8. Unit: hours. Valid values are 0 to 23, which correspond to the 24 points in time on the hour from 00:00:00 to 23:00:00. For example, a value of 1 indicates 01:00:00. To schedule multiple automatic snapshots to be created in a day, you can specify multiple hours.
| SPTestName |
timePoints | string | No | The days of the week on which to create automatic snapshots. Valid values are 1 to 7, which correspond to the days of the week. For example, a value of 1 indicates Monday. To schedule multiple automatic snapshots to be created in a week, you can specify multiple days.
| ["0", "1"] |
repeatWeekdays | string | No | The retention period of the automatic snapshot. Unit: days. Valid values:
Default value: -1. | ["1", "7"] |
retentionDays | integer | No | Specifies whether to enable cross-region replication for the automatic snapshot.
| 30 |
EnableCrossRegionCopy | boolean | No | The destination region to which to copy the snapshot. You can specify only a single destination region. | false |
TargetCopyRegions | string | No | The retention period of the snapshot copy in the destination region. Unit: days. Valid values:
Default value: -1. | ["cn-hangzhou"] |
CopiedSnapshotsRetentionDays | integer | No | The ID of the request. | 30 |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E"
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
403 | ParameterInvalid | The specified RegionId parameter is invalid. | The specified region ID is invalid. |
403 | ParameterInvalid | The specified RepeatWeekDays parameter is invalid. | The specified RepeatWeekdays parameter is invalid. |
403 | ParameterInvalid | The specified TimePoints parameter is invalid. | The specified TimePoints parameter is invalid. |
403 | ParameterInvalid | The specified AutoSnapshotPolicyId is invalid. | The specified automatic snapshot policy ID is invalid. |
403 | ParameterInvalid | The specified RetentionDays parameter is invalid. | The specified RetentionDays parameter is invalid. |
403 | InvalidParameter.TargetCopyRegions | The specified TargetCopyRegions is invalid. | - |
403 | InvalidParameter.CopiedSnapshotsRetentionDays | The specified CopiedSnapshotsRetentionDays is invalid. | - |
404 | ParameterInvalid | The specified automatic snapshot policy does not exist. | The specified automatic snapshot policy does not exist. |
404 | ParameterInvalid | The specified automatic snapshot policy does not exist in the region. | The specified automatic snapshot policy does not exist. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
2024-03-21 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2024-02-29 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2024-02-28 | The Error code has changed | see changesets | ||||||||||||
| ||||||||||||||
2024-02-28 | The Error code has changed. The request parameters of the API has changed | see changesets | ||||||||||||
|