Read data from OPA
opa_get_dataRetrieve OPA data using a path; use dotted notation, or segments when keys contain dots or slashes.
Instructions
Read a path from OPA's data hierarchy. A path is read as dotted (users.alice) unless it contains a slash, in which case slash is the only separator (users/alice), so a key such as example.com is addressable as hosts/example.com. Pass segments instead when a key contains both.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | No | Data path under `data.`, e.g. "users" or "users/alice". | |
| 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. |