Home > @cerbos/core > Client
Base implementation of a client for interacting with the Cerbos policy decision point server.
Signature:
export declare abstract class Client
The constructor for this class is marked as internal. Third-party code should not call the constructor directly or create subclasses that extend the Client
class.
Method |
Modifiers |
Description |
---|---|---|
Add policies, or update existing policies. | ||
Add schemas to be used for validating principal or resource attributes, or update existing schemas. | ||
Check a principal's permissions on a resource. | ||
Check a principal's permissions on a set of resources. | ||
Delete a schema. | ||
Delete multiple schemas. | ||
Disable multiple policies. | ||
Disable a policy. | ||
Enable multiple policies. | ||
Enable a policy. | ||
Fetch an access log entry by call ID from the policy decision point server's audit log. | ||
Fetch a decision log entry by call ID from the policy decision point server's audit log. | ||
Fetch multiple policies by ID. | ||
Fetch a policy by ID. | ||
Fetch a schema by ID. | ||
Fetch multiple schemas by ID. | ||
Inspect policies in the store. | ||
Check if a principal is allowed to perform an action on a resource. | ||
List access log entries from the policy decision point server's audit log. | ||
List decision log entries from the policy decision point server's audit log. | ||
List policies. | ||
List schemas. | ||
Produce a query plan that can be used to obtain a list of resources on which a principal is allowed to perform a particular action. | ||
Reload the store. | ||
Retrieve information about the Cerbos policy decision point server. | ||
Create a client instance with a pre-specified principal. |