The content of this article is about how to apply automatic snapshot strategy for one or more disks. It has certain reference value. Friends in need can refer to it. I hope it will be helpful to you.
ApplyAutoSnapshotPolicy
Apply an automatic snapshot policy to one or more disks. When the automatic snapshot policy has been applied to the target disk, calling ApplyAutoSnapshotPolicy can replace the automatic snapshot policy currently applied to the disk.
Description
When calling this interface, you need to note:
Only one automatic snapshot policy can be applied to a disk.
An automatic snapshot policy can be applied to multiple disks.
If there are a large number of automatic snapshot tasks at a certain point in time, there will be a short queue waiting time, about zero to three minutes, so there is no guarantee that the automatic snapshot tasks at that point in time can be carried out at the same time.
Request parameters
##Return parameters
are all public return parameters. See Public Parameters.Example
Request example
https://ecs.aliyuncs.com/?Action=ApplyAutoSnapshotPolicy &RegionId=cn-hangzhou &AutoSnapshotPolicyId=p-233e6ylv0 &DiskIds=["d-233e6ylv0", "d-23vbpbi03", "d-23vasz3ds"] &<公共请求参数>
Return example
XML format
<ApplyAutoSnapshotPolicyResponse> <RequestId>F3CD6886-D8D0-4FEE-B93E-1B73239673DE</RequestId> </ApplyAutoSnapshotPolicyResponse>
JSON format
{ "RequestId":"F3CD6886-D8D0-4FEE-B93E-1B73239673DE" }
Error code
The following are error codes unique to this interface. For more error codes, please visit the API Error Center.The above is the detailed content of How to apply an automatic snapshot policy for one or more disks. For more information, please follow other related articles on the PHP Chinese website!