Skip to main content

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

NameLocationTypeRequiredSample valueDescription
repeatWeekdaysBODYstringNo["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 (,).
autoSnapshotPolicyIdBODYstringYessp-bp12m37ccmxvbmi5****target automatic snapshot policy ID. You can call the DescribeAutoSnapshotPolicyEx to view the automatic snapshot policies available to you.
regionIdBODYstringYesNo sample value for this parameter.region id
autoSnapshotPolicyNameBODYstringNotest-autoSnapshotPolicyNamethe name of the automatic snapshot policy. If the parameter is empty, it means it will not be modified.
retentionDaysBODYintegerNo30The retention time of automatic snapshots, in days. Value range: -1 (default): permanently saved. 1~65536: specify the number of days to save.
versionBODYstringNo2016-01-01version of api
timePointsBODYstringNo["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

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}