Restores a file system from a snapshot.

Precautions

  • The file system must be in the Running state.
  • To restore a file system, you must use a snapshot that is created for the file system.

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 ResetFileSystem

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

FileSystemId String Yes extreme-012ddfsdf

The ID of the file system.

SnapshotId String Yes s-extreme-snapshotid1

The ID of the snapshot.

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=ResetFileSystem
&FileSystemId=extreme-xoxo
&SnapshotId=s-extreme-67pxwk9aevrkrwwj8
& <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.