News: see our latest Casbin dashboard called Casdoor: https://github.com/casbin/casdoor
A portal & RESTful API for Casbin: https://cloud.casbin.org/
- GET
/tenants
: Get all tenants, each tenant has an ID and a name. - GET
/tenants/<TENANT_NAME>
: Get themetadata.json
for a tenant<TENANT_NAME>
. - GET
/tenants/<TENANT_NAME>/policies/<POLICY_NAME>
: Get thexxx.csv
policy for a tenant<TENANT_NAME>
. - POST
/tenants/<TENANT_NAME>
: Set themetadata.json
for a tenant<TENANT_NAME>
. - POST
/tenants/<TENANT_NAME>/policies/<POLICY_NAME>
: Set the<POLICY_NAME>.json
for a tenant<TENANT_NAME>
. - GET
/tenants/<TENANT_NAME>/users
: Get all users for a tenant<TENANT_NAME>
. - GET
/tenants/<TENANT_NAME>/users/<USER_NAME>/commands
: Get all commands that can be run by the user<USER_NAME>
of tenant<TENANT_NAME>
. - GET
/tenants/<TENANT_NAME>/users/<USER_NAME>/commands/<COMMAND>
: Run command<COMMAND>
as the user<USER_NAME>
of tenant<TENANT_NAME>
. - GET
/reset
: Reset all data to the initial state.
- https://cloud.casbin.org/tenants
- https://cloud.casbin.org/tenants/tenant1
- https://cloud.casbin.org/tenants/tenant1/policies/custom-policy.csv
- https://cloud.casbin.org/models/enable_model.conf
- https://cloud.casbin.org/models/restrict_model.conf
- https://cloud.casbin.org/models/custom_model.conf
- https://cloud.casbin.org/tenants/admin/users/admin/commands
- https://cloud.casbin.org/tenants/admin/users/admin/commands/nova%20service-list
- https://cloud.casbin.org/tenants/tenant1/users/user1/commands/nova%20service-list
- https://cloud.casbin.org/tenants/tenant1/users/user1/commands/nova%20list
- https://cloud.casbin.org/tenants/tenant1/users/user2/commands/nova%20list