---
title: disk query | Wartiva GraphQL API
description: Retrieves a Disk by its graph object id: a physical disk drive attached to an endpoint, with its partitions, volumes, and I/O statistics, on Windows, macOS.
url: https://wartiva.com/api-docs/queries/disk.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL query

# `disk` query

Retrieves a [Disk](https://wartiva.com/api-docs/types/disk.html) by its graph object id: a physical disk drive attached to an endpoint, with its partitions, volumes, and I/O statistics, on Windows, macOS, and Linux. An [Endpoint](https://wartiva.com/api-docs/types/endpoint.html) lists its current disks through `disks` and their history through `disksSeen`; find them across endpoints with [graphSearch](https://wartiva.com/api-docs/queries/graph-search.html) on the DISK object type. Returns a not-found error when no object has the id, and an error when the id belongs to another object type.

## Response

Returns a [`DiskPayload!`](https://wartiva.com/api-docs/types/disk-payload.html)

## Arguments

| Name | Description |
|---|---|
| `id` - [`ID!`](https://wartiva.com/api-docs/types/id.html) | The Disk identifier. |
| `mockOptions` - [`MockDataInput`](https://wartiva.com/api-docs/types/mock-data-input.html) | Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] } |

## Example

### Query

```graphql
query disk(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  disk(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      endpoint {
        ...EndpointFragment
      }
      driveId
      serial
      size
      vendor
      model
      manufacturer
      description
      busType
      partitions {
        ...PartitionFragment
      }
      volumes {
        ...VolumeFragment
      }
      stats {
        ...DiskIoStatFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

```

### Variables

```json
{"id": 4, "mockOptions": MockDataInput}

```

### Response

```json
{"data": {"disk": {"node": Disk}}}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
