Test an OPA access policy, can only be requested with ADMIN privileges
POST/sites/:siteId/opa/accessPolicy/test
Evaluates the site's saved OPA access policy, or draft policy items supplied in the request, against simulated request and user input. The operation does not persist policies or modify documents.
Request
Responses
- 200
- 400
- 401
- 404
- 500
- 504
OPA access policy test completed
Response Headers
Access-Control-Allow-Origin
Access-Control-Allow-Methods
Access-Control-Allow-Headers
Invalid OPA access policy test request
User is not authenticated or does not have ADMIN privileges for the site
No saved OPA access policy exists for the site
OPA evaluation failed
OPA evaluation timed out