Skip to content

searchCloudDirectWorkload

SearchCloudDirectWorkload searches for files across all snapshots of a NAS Cloud Direct workload (share or 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.
workloadFid (required) UUID! ID of the NAS Cloud Direct workload to search.
searchQuery (required) String! Search query string to match against file names.
versionLimit Int Maximum number of file versions to return per file.

Returns

SearchCloudDirectWorkloadEntryConnection!

Sample

query SearchCloudDirectWorkload($workloadFid: UUID!, $searchQuery: String!) {
  searchCloudDirectWorkload(
    workloadFid: $workloadFid
    searchQuery: $searchQuery
    first: 10
  ) {
    nodes {
      filename
      path
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "workloadFid": "00000000-0000-0000-0000-000000000000",
  "searchQuery": "example-string"
}
{
  "data": {
    "searchCloudDirectWorkload": {
      "nodes": [
        [
          {
            "filename": "example-string",
            "path": "example-string"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}