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 Returns the elements in the list that occur after the specified cursor.
last Int Returns the last n elements from the list.
before String Returns the elements in the list that occur before the specified cursor.
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
      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"
      }
    }
  }
}