ModifyAutoSnapshotPolicyEx
Description
call ModifyAutoSnapshotPolicyEx to modify an automatic snapshot policy. After the automatic snapshot policy is modified, the cloud disk that has previously applied the policy executes the modified automatic snapshot policy.
Request Method
POST
Request Path
/apsara/route/Ecs/ModifyAutoSnapshotPolicyEx
Request Parameters Common Parameters
Name | Location | Type | Required | Sample value | Description |
---|---|---|---|---|---|
repeatWeekdays | BODY | string | No | ["1", "7"] | The repeat date of the automatic snapshot, the unit is days, and the period is week. Value range: 1 to 7, for example, 1 means Monday. When you need to create multiple automatic snapshots within a week, you can pass in multiple points in time: can pass in up to 7 time points. Multiple points in time are similar to "1", "2",... The JSON array of "7" indicates that the time points are separated by half-width commas (,). |
autoSnapshotPolicyId | BODY | string | Yes | sp-bp12m37ccmxvbmi5**** | target automatic snapshot policy ID. You can call the DescribeAutoSnapshotPolicyEx to view the automatic snapshot policies available to you. |
regionId | BODY | string | Yes | No sample value for this parameter. | region id |
autoSnapshotPolicyName | BODY | string | No | test-autoSnapshotPolicyName | the name of the automatic snapshot policy. If the parameter is empty, it means it will not be modified. |
retentionDays | BODY | integer | No | 30 | The retention time of automatic snapshots, in days. Value range: -1 (default): permanently saved. 1~65536: specify the number of days to save. |
version | BODY | string | No | 2016-01-01 | version of api |
timePoints | BODY | string | No | ["0", "1"] | The time when the automatic snapshot is created, in hours. Value range: 0~23, representing 24 time points from 00:00 to 23:00, for example, 1 means 01:00. When you need to create multiple automatic snapshots in one day, you can pass in multiple points in time: can pass in up to 24 time points. Multiple points in time are similar to "0", "1",... The JSON array of "23" indicates that the time points are separated by half-width commas (,). |
Return data
Name | Type | Sample value | Description |
---|---|---|---|
RequestID | string | 1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC | Request id |
Example
Successful Response example
{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}
Failed Response example
{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}
}