Filtering the List of Snapshots
Describes how to filter the list of snapshots using the Control System or the CLI.
About this task
Filtering the List of Snapshots Using the Control System
Procedure
-
Log in to the Control System and click Snapshots page.
to filter list of snapshots in the
NOTEWhen running on a Kubernetes cluster, click to filter list of snapshots in the Snapshots page.
-
Click and
select one of the following from the Add Filter drop
down menu:
- Snapshot Name — to filter the list by snapshot name
- Volume — to filter the list by volume name
- Created on — to filter the list by snapshot creation date range
- Expires on — to filter the list by snapshot expiration date range
-
Specify the value in the drop-down field for the selected filter (on which
to filter the list of snapshots) and click
Filter.
As you make selections and specify the filtering criteria, the pane displays only the snapshots that match the specified filtering criteria.
-
Click:
- Add Filter to add another filtering criteria.
- to remove a filtering criteria.
- to clear all filter settings.
Filtering the List of Snapshots Using the CLI and REST API
About this task
The volume snapshot list
command can
be used with the -filter
option, which let you
specify large numbers of snapshots by matching specified values in
specified fields rather than by typing each name explicitly. For
example, you can display all snapshots associated with the volume
test as follows:
maprcli volume snapshot list -filter [vn=="test"] -json
Send a request of type GET. For example, to display all snapshots associated with the volume test, send a request similar to the following:
curl -k -X GET 'https://<hostname>:8443/rest/volume/snapshot/list?filter=%5Bvn%3D%3D%22test%22%5D' --user <username>:<pwd>
volume snapshot list
.