Filtering the List of Snapshots

Describes how to filter the list of snapshots using the Control System or the CLI.

About this task

The filter in the Snapshots tab on the Data > Volumes page lets you build search expressions to provide sophisticated filtering capabilities for locating specific data on views that display a large number of volumes. Expressions are implicitly connected by the AND operator.
NOTE
When running on a Kubernetes cluster, the filter is present in the Snapshots tab on the Volumes page under the Volumes menu.

Filtering the List of Snapshots Using the Control System

Procedure

  1. Log in to the Control System and click Data > Volumes > Snapshots to filter list of snapshots in the Snapshots page.
    NOTE
    When running on a Kubernetes cluster, click Volumes > Snapshots to filter list of snapshots in the Snapshots page.
  2. 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
  3. 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.

  4. 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>
For more information, see volume snapshot list.