Skip to content

snapshotOfASnappableConnection

Returns a list of snapshots for a workload.

Arguments

Argument Type Description
first Int Returns the first n elements from the list.
after String An opaque cursor returned from a previous query's endCursor field. Pass this value verbatim to retrieve the next page of results.
last Int Returns the last n elements from the list.
before String An opaque cursor returned from a previous query's startCursor field. Pass this value verbatim to retrieve the previous page of results.
workloadId (required) String! The FID of the workload.
snapshotFilter [SnapshotQueryFilterInput!] Filters for snapshot connection.
sortOrder SortOrder Sorts the order of results.
sortBy SnapshotQuerySortByField Sorts snapshots by field.
timeRange TimeRangeInput Time range input.
ignoreActiveWorkloadCheck Boolean Specifies whether to ignore the active workload check.
showSnapshotRetentionInfo Boolean Specifies whether to show retention information of snapshots of RSC native workloads.
includeOnlySourceSnapshots Boolean Specifies whether to include source snapshots or not. If its true, response will contain only source snapshots.
shouldExcludeCdmSnapshotRetentionInfo Boolean Specifies whether to show snapshot retention for snapshots of CDM workloads.
shouldShowCdmSnapshotLocationInfoArg Boolean Specifies whether to show snapshot location information.
snapshotLocationView SnapshotLocationView Filter for per-location entries in snapshot retention info. Defaults to EXCLUDE_EXPIRED when omitted.

Returns

GenericSnapshotConnection!

Sample

query SnapshotOfASnappableConnection($workloadId: String!) {
  snapshotOfASnappableConnection(
    workloadId: $workloadId
    first: 10
  ) {
    nodes {
      date
      expirationDate
      id
      indexingAttempts
      isAnomaly
      isCorrupted
      isExpired
      isIndexed
      isOnDemandSnapshot
      isQuarantineProcessing
      isQuarantined
      isUnindexable
      snappableId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "workloadId": "example-string"
}
{
  "data": {
    "snapshotOfASnappableConnection": {
      "nodes": [
        [
          {
            "date": "2024-01-01T00:00:00.000Z",
            "expirationDate": "2024-01-01T00:00:00.000Z",
            "id": "00000000-0000-0000-0000-000000000000",
            "indexingAttempts": 0,
            "isAnomaly": true,
            "isCorrupted": true
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}