Skip to content

targets

All archival locations.

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.
sortBy ArchivalLocationQuerySortByField Specifies the field by which the list of targets will be sorted.
sortOrder SortOrder Sorts the order of results.
filter [TargetFilterInput!] Specifies how to filter the list of targets.
contextFilter ContextFilterTypeEnum Specifies the context filter to use.

Returns

TargetConnection!

Sample

query {
  targets(first: 10) {
    nodes {
      clusterName
      consumedBytes
      failedTasks
      id
      isActive
      isArchived
      isComplianceImmutabilitySupported
      locationConnectionStatus
      locationScope
      name
      readerRetrievalMethod
      runningTasks
      status
      targetType
      upgradeStatus
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "targets": {
      "nodes": [
        [
          {
            "clusterName": "example-string",
            "consumedBytes": 0,
            "failedTasks": 0,
            "id": "example-string",
            "isActive": true
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}