Montage
1.0

Policies

List all policies

GET /api/v1/policy/

Create a new policy

POST /api/v1/policy/
Query Parameters:
 
  • description – A short, one-line description of the policy
  • policy – Policy document as JSON

Get a single policy

GET /api/v1/policy/<uuid:policy_id>/

Update a policy

PUT /api/v1/policy/<uuid:policy_id>/
Query Parameters:
 
  • name – Role name
  • add_users – List of user IDs to add to the role
  • remove_users – List of user IDs to remove from the role
PATCH /api/v1/policy/<uuid:policy_id>/

Delete a policy

DELETE /api/v1/policy/<uuid:policy_id>/

Check permissions

GET /api/v1/policy/check/
Query Parameters:
 
  • action – Action
  • resource – Resource