Networks, devices, and sensors · GraphQL query

sensorRequestRun query

Retrieves a SensorRequestRun: the record of one attempt to run a SensorRequest, with its outcome, the endpoint that ran it when one did, and the ports and services it reported. Only a completed run adds the open ports and services it found to the security graph. Restricted to organization administrators.

Response

Returns a SensorRequestRunPayload!

Arguments

Name Description
id - ID! The unique identifier of the SensorRequestRun.

Example

Query

query sensorRequestRun($id: ID!) {
  sensorRequestRun(id: $id) {
    sensorRequestRun {
      id
      sensorRequestId
      sensorRequest {
        ...SensorRequestFragment
      }
      timestamp
      version
      device {
        ...DeviceFragment
      }
      endpoint {
        ...EndpointFragment
      }
      result
      errors
      ports {
        ...OpenPortSummaryFragment
      }
      services {
        ...ServiceSummaryFragment
      }
      portsFound
      servicesFound
    }
  }
}

Variables

{"id": "4"}

Response

{
  "data": {
    "sensorRequestRun": {
      "sensorRequestRun": SensorRequestRun
    }
  }
}