This API endpoint responds with a list of all policy modules on the server (result response)
643 matches
14 actions
Open Policy Agent (OPA) REST
14 actions
- CompilePOSTv1.0.0
- Create or overwrite a documentPUTv1.0.0
- Create or update a policy modulePUTv1.0.0
- Delete a documentDELETEv1.0.0
- Delete a policy moduleDELETEv1.0.0
- Execute a simple queryPOSTv1.0.0
- Execute an ad-hoc query (complex)POSTv1.0.0
- Execute an ad-hoc query (simple)GETv1.0.0
- Get a documentGETv1.0.0
- Get a document (with input)POSTv1.0.0
- Get a policy moduleGETv1.0.0
- Get configurationsGETv1.0.0
- List policiesGETv1.0.0
- Update a documentPATCHv1.0.0
Other/Open Policy Agent (OPA) REST
List policies
v1.0.0Input
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
{
"type": "object",
"properties": {
"pretty": {
"type": "boolean"
}
},
"additionalProperties": false
}Output
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
- 21
- 22
- 23
- 24
- 25
- 26
- 27
- 28
- 29
- 30
- 31
- 32
- 33
- 34
- 35
- 36
- 37
- 38
- 39
- 40
- 41
- 42
- 43
- 44
- 45
- 46
- 47
- 48
- 49
- 50
- 51
- 52
- 53
- 54
- 55
- 56
- 57
- 58
- 59
- 60
- 61
- 62
- 63
- 64
- 65
- 66
- 67
- 68
- 69
- 70
- 71
- 72
- 73
- 74
- 75
- 76
- 77
- 78
- 79
- 80
- 81
- 82
- 83
- 84
- 85
- 86
- 87
- 88
- 89
- 90
- 91
- 92
- 93
- 94
- 95
- 96
- 97
- 98
{
"type": "object",
"properties": {
"result": {
"type": "array",
"items": {
"properties": {
"ast": {
"type": "object",
"description": "The types for declarations and runtime objects passed to your implementation. This consists of an abstract syntax tree (AST) of policy modules, package and import declarations, rules, expressions, and terms.",
"properties": {
"package": {
"type": "object",
"properties": {
"path": {
"type": "array",
"description": "The path to the package",
"items": {
"properties": {
"type": {
"type": "string",
"description": "The type of the path operation",
"enum": [
"import",
"package"
]
},
"value": {
"type": "string",
"description": "The path variable"
}
}
}
}
}
},
"rules": {
"type": "array",
"description": "When OPA evaluates a rule, it generates the content of a [virtual documents](https://www.openpolicyagent.org/docs/latest/philosophy/#the-opa-document-model)",
"items": {
"properties": {
"body": {
"type": "array",
"description": "A list of the terms in this rule",
"items": {
"properties": {
"index": {
"type": "object",
"additionalProperties": true
},
"terms": {
"type": "object",
"additionalProperties": true
}
}
}
},
"head": {
"type": "object",
"properties": {
"key": {
"type": "object",
"description": "The type/value pairing for this rule's head",
"properties": {
"type": {
"type": "object",
"additionalProperties": true
},
"value": {
"type": "object",
"additionalProperties": true
}
}
},
"name": {
"type": "string",
"description": "The head of the rule"
}
}
}
}
}
}
}
},
"id": {
"type": "string",
"description": "The name of a policy module"
},
"raw": {
"type": "string",
"description": "A string representation of the full Rego policy"
}
}
}
}
}
}