Synopsis
--show-input and --output json, the document the policy read as input is
added under .input: each trail as it stood at the evaluation’s request time.
With --fixture and --dir, what the evaluation was given is written to the
directory, so it can be replayed with stock OPA:
input.json: the document the policy read asinput.data.json: the params, which the policy reads asdata.params.policy/: the files of the policy that ran, at their paths in the bundle. The directory must be empty or not exist yet. An evaluation that is still pending can be written too, as its input does not depend on its outcome.
Flags
Flags inherited from parent commands
Examples Use Cases
These examples all assume that the flags--api-token, --org, --host, (and --flow, --trail when required), are set/provided.
get an evaluation
get an evaluation
get an evaluation with the input its policy read
get an evaluation with the input its policy read
write what an evaluation was given to ./replay, and replay it with OPA
write what an evaluation was given to ./replay, and replay it with OPA