Skip to content

snapshotsOfCloudDirectBucket

Returns a list of NAS Cloud Direct snapshots for a bucket.

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.
cloudDirectTargetId UUID The NAS Cloud Direct target ID.

Returns

CloudDirectSnapshotConnection!

Sample

query SnapshotsOfCloudDirectBucket($workloadId: String!) {
  snapshotsOfCloudDirectBucket(
    workloadId: $workloadId
    first: 10
  ) {
    nodes {
      cloudDirectId
      clusterUuid
      completed
      date
      expirationDate
      expiryHint
      id
      indexingAttempts
      isAnomaly
      isCorrupted
      isCustomRetentionApplied
      isDownloadedSnapshot
      isExpired
      isIndexed
      isOnDemandSnapshot
      isQuarantineProcessing
      isQuarantined
      isUnindexable
      policyName
      protocol
      snappableId
      state
      systemId
      target
      targetId
      type
      workloadId
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "workloadId": "example-string"
}
{
  "data": {
    "snapshotsOfCloudDirectBucket": {
      "nodes": [
        [
          {
            "cloudDirectId": "00000000-0000-0000-0000-000000000000",
            "clusterUuid": "00000000-0000-0000-0000-000000000000",
            "completed": "2024-01-01T00:00:00.000Z",
            "date": "2024-01-01T00:00:00.000Z",
            "expirationDate": "2024-01-01T00:00:00.000Z",
            "expiryHint": true
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}