
OPA (Open Policy Agent) List
CertifiedEnterprise EditionList loaded OPA policies
OPA (Open Policy Agent) List
Certified
Enterprise Edition
List loaded OPA policies
Retrieves all policy modules from OPA /v1/policies. Control output with fetchType; STORE writes to internal storage.
yaml
type: io.kestra.plugin.ee.opa.policy.ListExamples
List OPA policies
yaml
id: list_policies
namespace: company.team
tasks:
- id: list_policies
type: io.kestra.plugin.ee.opa.policy.List
url: "{{ secret('OPA_URL') }}"
token: "{{ secret('OPA_TOKEN') }}"
Properties
url *Requiredstring
OPA base URL
fetchType string
Default
FETCHPossible Values
STOREFETCHFETCH_ONENONEFetch strategy
FETCH returns all policies (default); FETCH_ONE returns the first; STORE writes all to a file; NONE skips output.
pluginDefaultsRef Non-dynamicstring
Reference (ref) of the pluginDefaults to apply to this task.
token string
Bearer token
Outputs
policies array
SubTypeobject
Policies
All policies (FETCH)
policy object
Policy
First policy only (FETCH_ONE)
size integer
Number of policies
total integer
Total number of policies
uri string
Format
uriStored policies URI
Only populated if fetchType=STORE