Skip to content

gcpNativeDisks

List of GCP disks.

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.
sortBy GcpNativeDiskSortFields Sort fields for list of GCP disks.
sortOrder SortOrder Sorts the order of results.
diskFilters GcpNativeDiskFilters Filters for list of GCP disks.

Returns

GcpNativeDiskConnection!

Sample

query {
  gcpNativeDisks(first: 10) {
    nodes {
      authorizedOperations
      cloudNativeId
      diskId
      diskName
      diskType
      fileIndexingStatus
      id
      isExocomputeConfigured
      isProtectionOnboarded
      isRelic
      kmsKey
      legallyHeldSnapshotCount
      name
      nativeName
      numWorkloadDescendants
      objectType
      onDemandSnapshotCount
      projectId
      region
      replicaZones
      rscPendingObjectPauseAssignment
      sizeInGiBs
      slaAssignment
      slaPauseStatus
      zone
    }
    pageInfo {
      hasNextPage
      endCursor
    }
  }
}
{}
{
  "data": {
    "gcpNativeDisks": {
      "nodes": [
        [
          {
            "authorizedOperations": [
              "DELETE_SNAPSHOT"
            ],
            "cloudNativeId": "example-string",
            "diskId": "example-string",
            "diskName": "example-string",
            "diskType": "example-string",
            "fileIndexingStatus": "DISABLED"
          }
        ]
      ],
      "pageInfo": {
        "endCursor": "example-string",
        "hasNextPage": true,
        "hasPreviousPage": true,
        "startCursor": "example-string"
      }
    }
  }
}