Applies an automatic snapshot policy to file systems. If a file system has an automatic snapshot policy applied, you can call this API operation to change the automatic snapshot policy.

Precautions

  • You can apply only one automatic snapshot policy to each file system.
  • An automatic snapshot policy can be applied to multiple file systems.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ApplyAutoSnapshotPolicy

The operation that you want to perform. Set the value to ApplyAutoSnapshotPolicy.

AutoSnapshotPolicyId String Yes sp-extreme-233e6ylv0

The ID of the automatic snapshot policy to apply.

FileSystemIds String Yes extreme-233e6ylv0,extreme -23vbpbi03,extreme -23vasz3ds

The IDs of file systems. You can specify a maximum of 100 IDs at a time. If you want to apply an automatic snapshot policy to multiple file systems, separate multiple IDs with commas (,).

Response parameters

Parameter Type Example Description
RequestId String 473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E

The ID of the request.

Examples

Sample requests


GET https://nas.cn-hangzhou.aliyuncs.com/?Action=ApplyAutoSnapshotPolicy
&AutoSnapshotPolicyId=sp-extreme-6i0brwewjt0gfylh0
&FileSystemIds=extreme-xxx
& <Common request parameters>
...

Sample success responses

JSON format

{
	"RequestId":"12FA778B-C8D3-4D2B-88AD-C10ED0326C57"
}

Error codes

For a list of error codes, visit the API Error Center.