Get OPA Access Policy Items
GET/sites/:siteId/opa/accessPolicy/policyItems
Returns OPA Access Policy Items, can only be requested with ADMIN privileges
Request
Path Parameters
Site Identifier
Responses
- 200
200 OK
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
]
policyItems
object[]
Type of Opa Policy Item
Possible values: [ALLOW
]
OPA Policy in REGO format
User must match all roles
User must match any role
attributes
object[]
Attribute Key
eq
object
Attribute EQ criteria
The value to compare the Attribute Key value to
The value to compare the Attribute Key value to
The value to compare the Attribute Key value to
input
object
Match Input Username
gt
object
Attribute greater than criteria
The value to compare the Attribute Key value to
gte
object
Attribute greater than and equals to criteria
The value to compare the Attribute Key value to
lt
object
Attribute less than criteria
The value to compare the Attribute Key value to
lte
object
Attribute less than and equals to criteria
The value to compare the Attribute Key value to
neq
object
Attribute not equal to criteria
The value to compare the Attribute Key value to
{
"policyItems": [
{
"type": "ALLOW",
"policy": "string",
"allRoles": [
"string"
],
"anyRoles": [
"string"
],
"attributes": [
{
"key": "string",
"eq": {
"stringValue": "string",
"numberValue": 0,
"booleanValue": true,
"input": {
"matchUsername": true
}
},
"gt": {
"numberValue": 0
},
"gte": {
"numberValue": 0
},
"lt": {
"numberValue": 0
},
"lte": {
"numberValue": 0
},
"neq": {
"stringValue": "string"
}
}
]
}
]
}