Policies and findings · GraphQL input

RuleBodyFileInput input

Input variant of RuleBodyFile.

Fields

Input Field Description
pathGlob - String! The paths checked, as an absolute glob. See RuleBodyFile.
pathSensorId - PathSensorId When set, only paths this path sensor collected are checked. It must be one of your organization's sensors.
existence - RuleFileExistence Requires matching paths to be present or absent on each endpoint. A rule with this set must apply to ENDPOINT and set no other check.
contents - RuleFileContentsInput The content check each matching file must pass. A rule with a file check must apply to ENDPOINT_PATH.
permissions - RuleFilePermissionsInput The permission check each matching file must pass.
ownership - RuleFileOwnershipInput The ownership check each matching file must pass.

Used by

Example

Example

{
  "pathGlob": "xyz789",
  "pathSensorId": PathSensorId,
  "existence": "MUST_EXIST",
  "contents": RuleFileContentsInput,
  "permissions": RuleFilePermissionsInput,
  "ownership": RuleFileOwnershipInput
}