Networks, devices, and sensors · GraphQL query

deviceModel query

Retrieves a DeviceModel by its graph object id: a specific product model of discovered devices, known only when a device identifies its exact product through UPnP, mDNS, IPP, or DHCP fingerprinting. Its devices field lists the Device objects of that model; find models with graphSearch on the DEVICE_MODEL 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 DeviceModelPayload!

Arguments

Name Description
id - ID! The DeviceModel identifier.
mockOptions - MockDataInput Options for mock data generation. Options supported: none.

Example

Query

query deviceModel(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  deviceModel(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      seen {
        ...SeenOnlineFragment
      }
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      manufacturer {
        ...DeviceManufacturerFragment
      }
      name
      friendlyName
      description
      number
      url
      devices {
        ...DeviceConnectionFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
    }
  }
}

Variables

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

Response

{"data": {"deviceModel": {"node": DeviceModel}}}