Set opa access policy items, can only be requested with ADMIN privileges
PUT/sites/:siteId/opa/accessPolicy/policyItems
Sets opa access policy items
Request
Path Parameters
Site Identifier
- application/json
Body
required
Array [
Array [
]
]
policyItems
object[]
required
List of OPA policy items
OPA Policy in REGO format
User must match all roles
User must match any role
User must NOT have these roles
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
in
object
Attribute In to criteria
The value to compare the Attribute Key value to
notIn
object
Attribute Not In to criteria
The value to compare the Attribute Key value to
input
object
httpMethod
object
List of HTTP Methods
List of HTTP Methods
resource
object
List of Resources
List of Resources
Responses
- 200
- 400
200 CREATED
Response Headers
Access-Control-Allow-Origin
string
Access-Control-Allow-Methods
string
Access-Control-Allow-Headers
string
- application/json
- Schema
- Example (from schema)
Schema
Result message
{
"message": "string"
}
400 OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
errors
object[]
List of errors
Error Key
Error Message
{
"errors": [
{
"key": "string",
"error": "string"
}
]
}