Queries the information about one or more snapshots of a file system.
Operation description
- The snapshot feature is in public preview and is provided free of charge. File Storage NAS Service Level Agreement (SLA) is not guaranteed in public preview.
- Only advanced Extreme NAS file systems support this feature.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
nas:DescribeSnapshots | get | *Snapshot acs:nas:{#regionId}:{#accountId}:snapshot/* |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
FileSystemType | string | No | The type of the file system. Valid value: extreme, which indicates Extreme File Storage NAS (NAS) file systems. | extreme |
FileSystemId | string | No | The ID of the file system. | extreme-22f**** |
SnapshotIds | string | No | The snapshot IDs. You can specify a maximum of 100 snapshot IDs. You must separate snapshot IDs with commas (,). | s-extreme-67pxwk9aevrkr****,s-extreme-snapsho****,s-extreme-6tmsbas6ljhwh**** |
SnapshotName | string | No | The snapshot name. | FinanceJoshua |
SnapshotType | string | No | The type of the snapshot. Valid values:
| all |
Status | string | No | The status of the snapshot. Valid values:
| all |
PageSize | integer | No | The number of entries per page. Valid values: 1 to 100. Default value: 10. | 10 |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"TotalCount": 36,
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PageSize": 10,
"PageNumber": 1,
"Snapshots": {
"Snapshot": [
{
"Status": "accomplished",
"Progress": "100",
"CreateTime": "2014-07-24T13:00:52Z",
"SourceFileSystemId": "extreme-012****",
"RetentionDays": 30,
"RemainTime": 38,
"SourceFileSystemSize": 2000,
"SourceFileSystemVersion": "1",
"SnapshotName": "FinanceJoshua",
"EncryptType": 1,
"Description": "FinanceDept",
"SnapshotId": "s-extreme-snapsho****",
"FileSystemType": "extreme",
"SnapshotType": "user"
}
]
}
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-05-10 | The response structure of the API has changed | View Change Details |