Organizations and users · GraphQL query

pathSensor query

Retrieves a PathSensor configuration: an organization-wide instruction for endpoints to collect file metadata, and optionally checksums, ACLs, or file contents, under one path. Each endpoint that runs the sensor reports into its own EndpointPath. Disabled sensors are returned; deleted sensors return a not-found error. Restricted to organization administrators.

Response

Returns a PathSensorPayload!

Arguments

Name Description
id - PathSensorId! The PathSensor identifier.

Example

Query

query pathSensor($id: PathSensorId!) {
  pathSensor(id: $id) {
    node {
      id
      orgId
      name
      description
      path
      inclusions
      exclusions
      recursive
      interval
      collectChecksum
      checksumMaxBytes
      collectContents
      collectAcls
      contentMaxBytes
      isDefault
      enabled
      osTarget {
        ...PathSensorOsTargetFragment
      }
    }
  }
}

Variables

{"id": PathSensorId}

Response

{"data": {"pathSensor": {"node": PathSensor}}}

Related operations