Endpoints · GraphQL query

endpoint query

Retrieves an Endpoint by its graph object id: a Windows, macOS, or Linux computer running the Wartiva agent. The endpoint is the root of everything collected from that computer; its relationship fields lead to the installed applications, users and groups, disks, network interfaces, services, and security and policy configuration observed on it. Find endpoints with graphSearch on the ENDPOINT 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 an EndpointPayload!

Arguments

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

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

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

Example

Query

query endpoint(
  $id: ID!,
  $mockOptions: MockDataInput
) {
  endpoint(
    id: $id,
    mockOptions: $mockOptions
  ) {
    node {
      id
      orgId
      seen {
        ...SeenOnlineFragment
      }
      objectType
      objectTypeLabel
      displayName
      firstSeen
      lastSeen
      createdAt
      updatedAt
      snapshotInfo {
        ...GraphObjectSnapshotInfoFragment
      }
      enrollment {
        ...EndpointEnrollmentFragment
      }
      issuesSummary {
        ...IssuesSummaryFragment
      }
      lastClientIp {
        ...IpAddressFragment
      }
      lastHeartBeat
      lastConnectedAt
      online
      osInfo {
        ...OsInfoFragment
      }
      permissions {
        ...EndpointPermissionsFragment
      }
      systemInfo {
        ...SystemInfoFragment
      }
      tray {
        ...EndpointTrayFragment
      }
      version {
        ...EndpointVersionFragment
      }
      accountPolicy {
        ...AccountPolicyFragment
      }
      activeDirectory {
        ...ActiveDirectoryFragment
      }
      administrativeTemplatesWindows {
        ...AdministrativeTemplatesWindowsFragment
      }
      applicationInstalls {
        ...ApplicationInstallConnectionFragment
      }
      applicationInstallsSeenOn {
        ...ApplicationInstallConnectionFragment
      }
      arpTableEntries {
        ...ArpTableEntryConnectionFragment
      }
      arpTableEntriesSeen {
        ...ArpTableEntryConnectionFragment
      }
      auditPolicy {
        ...AuditPolicyFragment
      }
      devicesSeen {
        ...DeviceConnectionFragment
      }
      diskMounts {
        ...DiskMountConnectionFragment
      }
      diskMountsSeen {
        ...DiskMountConnectionFragment
      }
      disks {
        ...DiskConnectionFragment
      }
      disksSeen {
        ...DiskConnectionFragment
      }
      executables {
        ...ExecutableConnectionFragment
      }
      executablesSeen {
        ...ExecutableConnectionFragment
      }
      groups {
        ...EndpointGroupConnectionFragment
      }
      groupsSeen {
        ...EndpointGroupConnectionFragment
      }
      interfaces {
        ...InterfaceConnectionFragment
      }
      interfacesSeen {
        ...InterfaceConnectionFragment
      }
      lastPosition {
        ...PositionSeenFragment
      }
      lastLogonSession {
        ...LogonSessionFragment
      }
      localPolicies {
        ...LocalPoliciesFragment
      }
      logonSessions {
        ...LogonSessionConnectionFragment
      }
      networks {
        ...NetworkConnectionFragment
      }
      paths {
        ...EndpointPathConnectionFragment
      }
      portsSeen {
        ...OpenPortConnectionFragment
      }
      primaryPosition {
        ...PositionSeenFragment
      }
      processes {
        ...ProcessesPayloadFragment
      }
      positions {
        ...PositionSeenConnectionFragment
      }
      routes {
        ...RouteConnectionFragment
      }
      routesSeen {
        ...RouteConnectionFragment
      }
      security {
        ...SecurityFragment
      }
      softwareUpdatePreferences {
        ...SoftwareUpdatePreferencesFragment
      }
      systemServices {
        ...SystemServiceConnectionFragment
      }
      systemServicesSeen {
        ...SystemServiceConnectionFragment
      }
      systemSettings {
        ...SystemSettingsFragment
      }
      users {
        ...EndpointUserConnectionFragment
      }
      usersSeen {
        ...EndpointUserConnectionFragment
      }
      vulnerabilities {
        ...PlatformVulnerabilitiesFragment
      }
      wlanInterfaces {
        ...WlanInterfaceListFragment
      }
      wlanInterfacesSeen {
        ...WlanInterfaceListFragment
      }
      findings {
        ...FindingsPayloadFragment
      }
      issues {
        ...IssuesPayloadFragment
      }
    }
  }
}

Variables

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

Response

{"data": {"endpoint": {"node": Endpoint}}}