Rolls back a file system to the state of a specified historical snapshot.
Operation description
-
This feature is in free public preview. During the public preview, the File Storage NAS Service-Level Agreement (SLA) is not guaranteed.
-
Only Advanced Extreme NAS file systems support this feature.
-
The file system must be in the Normal state.
-
The specified SnapshotId parameter must be a historical snapshot created from the same file system specified by FileSystemId.
-
Dependency chain:
-
(1) Grant the AliyunNASManageENIRole permission in the Resource Access Management (RAM) console.
-
(2) Call CreateFileSystem (FileSystemType=extreme, StorageType=advance).
-
(3) Call DescribeFileSystems and poll until Status=Running.
-
(4) Call CreateSnapshot (FileSystemId=ID from the previous step).
-
(5) Call DescribeSnapshots and poll until Status=available.
-
(6) Call ResetFileSystem (FileSystemId, SnapshotId).
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
nas:ResetFileSystem |
update |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| FileSystemId |
string |
Yes |
The ID of the Advanced Extreme NAS file system. |
extreme-012dd**** |
| SnapshotId |
string |
Yes |
The ID of the historical snapshot to which you want to roll back the specified file system. |
s-extreme-snapsho**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3**** |
Examples
Success response
JSON format
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidFileSystem.NotFound | The specified filesystem does not exist. | The specified file system does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.