Skip to content

snapshotsForUnmanagedObject

List of snapshots for unmanaged objects.

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.
input (required) QueryUnmanagedObjectSnapshotsV1Input! Input for V1QueryUnmanagedObjectSnapshotsV1.

Returns

SnapshotSummaryConnection!

Sample

query SnapshotsForUnmanagedObject($input: QueryUnmanagedObjectSnapshotsV1Input!) {
  snapshotsForUnmanagedObject(
    input: $input
    first: 10
  ) {
    nodes {
      date
      id
      isCustomRetentionApplied
      isRetentionLockApplied
      snapshotType
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{
  "input": {
    "clusterUuid": "example-string",
    "id": "example-string"
  }
}
{
  "data": {
    "snapshotsForUnmanagedObject": {
      "nodes": [
        [
          {
            "date": "2024-01-01T00:00:00.000Z",
            "id": "example-string",
            "isCustomRetentionApplied": true,
            "isRetentionLockApplied": true,
            "snapshotType": "UNMANAGED_SNAPSHOT_TYPE_ON_DEMAND"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}