AuthZ API Reference
Base URL
authz.<csp>.<region>.pangea.cloud
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/create' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Write tuples.
Write tuples. The request will fail if tuples do not validate against the schema defined resource types.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/list' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Get tuples.
Return 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.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/tuple/delete' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Delete tuples
Delete tuples.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/check' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Perform a check request
Check if a subject has permission to do action on the resource.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/check/bulk' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
Perform a bulk check request
Perform multiple checks in a single request to see if a subjects have permission to do actions on the resources.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/list-resources' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
List resources
Given a type, action, and subject, list all the resources in the namespace that the subject has access to the action with.
curl -sSLX POST 'https://authz.aws.us.pangea.cloud/v1/list-subjects' \
-H 'Authorization: Bearer <your_token>' \
-H 'Content-Type: application/json' \
-d '{}'
Response
List subjects
Given 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?