Skip to content

searchHost

Search a host's file or path index.

Arguments

Argument Type Description
id (required) String! ID of the host to search.
path (required) String! The path query. Either path prefix or filename prefix.

Returns

SearchResponseListResponse!

Sample

query SearchHost($id: String!, $path: String!) {
  searchHost(
    id: $id
    path: $path
  ) {
    hasMore
    nextCursor
    total
  }
}
{
  "id": "example-string",
  "path": "example-string"
}
{
  "data": {
    "searchHost": {
      "hasMore": true,
      "nextCursor": "example-string",
      "total": 0,
      "data": [
        {
          "filename": "example-string",
          "path": "example-string"
        }
      ]
    }
  }
}