Endpoint configuration · GraphQL query

diskMount query

Retrieves a DiskMount by its graph object id: a mounted file system on an endpoint, with its file system type, mount options, and capacity and inode usage, on Windows, macOS, and Linux. An Endpoint lists its current mounts through diskMounts and their history through diskMountsSeen; find them across endpoints with graphSearch on the DISK_MOUNT 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 DiskMountPayload!

Arguments

Name Description
id - ID! The DiskMount identifier.
mockOptions - MockDataInput

Options for mock data generation. Options supported: key: "PLATFORM", value: OsPlatform

example: "mockOptions": { "options": [ { "key": "PLATFORM", "value": "WINDOWS" } ] }

Example

Query

query diskMount(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  diskMount(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      endpoint {
        ...EndpointFragment
      }
      device
      mountpoint
      fstype
      options
      usage {
        ...DiskUsageFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

Variables

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

Response

{"data": {"diskMount": {"node": DiskMount}}}