Get the App
SLTechnology News&Howtos  ›  Servers  › 

How can the created automatic snapshot policy be applied to any disk

Shulou Source: shulou.com Published: 2022-06-02 03:21:49 11月13日 Update

This article mainly introduces how to create the automatic snapshot strategy can be applied to any disk, has a certain reference value, friends in need can refer to. I hope you will learn a lot after reading this article. Next, let the editor take you to learn about it.

CreateAutoSnapshotPolicy

Create an automatic snapshot policy. The created automatic snapshot policy can be applied to any disk (ApplyAutoSnapshotPolicy), and the successfully created automatic snapshot policy can later modify the policy content (ModifyAutoSnapshotPolicyEx).

Description

When calling this interface, you need to be aware of:

An Aliyun account can create up to 100 automatic snapshot policies in a region.

If there is a large amount of disk data and the time taken to create an automatic snapshot at a time exceeds two time intervals, the next point in time is automatically skipped.

Example: you set 09:00, 10:00, 11:00, and 12:00 as the automatic snapshot time steps. Due to the large amount of disk data, the snapshot was created at 09:00 and finished at 10:20, which actually took 80 minutes. The system skips 10:00 and waits until 11:00 to continue creating automatic snapshots for you.

Request parameter

Return parameters

Example

Request example

Https://ecs.aliyuncs.com/?Action=CreateAutoSnapshotPolicy&RegionId=cn-hangzhou&TimePoints=["0", "11", "21"] & RepeatWeekdays= ["1", "2", "4", "7"] & RetentionDays=30&

Return the example

XML format

F3CD6886-D8D0-4FEE-B93E-1B73239673DE p-233e6ylv0

JSON format

{"RequestId": "F3CD6886-D8D0-4FEE-B93E-1B73239673DE"AutoSnapshotPolicyId": "p-233e6ylv0"}

Error code

The following are the error codes specific to this API. For more error codes, please visit the API error Center.

Thank you for reading this article carefully. I hope the editor can share how the automatic snapshot strategy can be applied to any disk. At the same time, I also hope that you can support it, pay attention to the industry information channel, and find out if you encounter problems. Detailed solutions are waiting for you to learn!

Tags: Snapshot policy disk example error any application time article content parameter interface data format success two value at the same time region actual Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Docker Shulou Technology NVidia Linux vpn