AuthZ API Reference
Base URL
authz.<csp>.<region>.pangea.cloud
post/v1/tuple/create
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/create' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
Write tuples.
POST
https://authz.aws.us.pangea.cloud/v1/tuple/createWrite tuples. The request will fail if tuples do not validate against the schema defined resource types.
post/v1/tuple/list
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/list' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
Get tuples.
POST
https://authz.aws.us.pangea.cloud/v1/tuple/listReturn a paginated list of filtered tuples. The filter is given in terms of a tuple. Fill out the fields that you want to filter. If the filter is empty it will return all the tuples.
post/v1/tuple/delete
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/delete' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
Delete tuples
POST
https://authz.aws.us.pangea.cloud/v1/tuple/deleteDelete tuples.
post/v1/check
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/check' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
Perform a check request
POST
https://authz.aws.us.pangea.cloud/v1/checkCheck if a subject has permission to do action on the resource.
post/v1/list-resources
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/list-resources' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
List resources
POST
https://authz.aws.us.pangea.cloud/v1/list-resourcesGiven a type, action, and subject, list all the resources in the namespace that the subject has access to the action with.
post/v1/list-subjects
cURL
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/list-subjects' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
200
List subjects
POST
https://authz.aws.us.pangea.cloud/v1/list-subjectsGiven a resource and an action, return the list of subjects who have access to the action for the given resource.
Status Codes
Status | Status Code | Description |
---|---|---|
ReBACError | 400 | Error in ReBAC library |
Was this article helpful?