Skip to content

allReclaimableClusterStats

Get reclaimable cluster stats data for multiple clusters. This RPC aggregates storage data from unmanaged_objects table and cluster stats.

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.
filter ReclaimableClusterStatsFilterInput Filter criteria for clusters.
sortBy ReclaimableClusterStatsSortBy Field to sort results by.
sortOrder SortOrder Sort order (ascending or descending).

Returns

ReclaimableClusterStatsDataConnection!

Sample

query {
  allReclaimableClusterStats(first: 10) {
    nodes {
      clusterName
      clusterUuid
      downloadedSnapshotsStorage
      otherStorage
      protectedObjectsStorage
      relicStorage
      totalCapacity
      totalUsedStorage
      unprotectedObjectsStorage
      version
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "allReclaimableClusterStats": {
      "nodes": [
        [
          {
            "clusterName": "example-string",
            "clusterUuid": "00000000-0000-0000-0000-000000000000",
            "downloadedSnapshotsStorage": 0,
            "otherStorage": 0,
            "protectedObjectsStorage": 0,
            "relicStorage": 0
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}