Query OPA decision
opa_query_decisionEvaluate OPA decisions by POSTing input to a data path and returning the rule result; undefined paths return defined: false, not false.
Instructions
Evaluate a decision against the running OPA server. POSTs to the data path with {input} and returns whatever the rule produces, plus defined: false when the path produced no value, which OPA reports by leaving result out. Undefined is not false; a caller that treats it as false or as allow decides on something the policy never said. Use this to ask the server "given this input, what does data.X.allow say?"
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Decision path under `data.`, e.g. "rbac/allow" or "rbac.allow". | |
| input | No | Input document to evaluate against. | |
| explain | No | Include a trace at the requested level. | |
| metrics | No | Include metrics in the response. | |
| segments | No | Path as literal key segments, e.g. ["labels", "app.kubernetes.io/name"]. Use instead of `path` when a key contains a dot or a slash. |