Skip to content

Latest commit

 

History

History
67 lines (32 loc) · 1.13 KB

core.clientwithprincipal.planresources.md

File metadata and controls

67 lines (32 loc) · 1.13 KB

Home > @cerbos/core > ClientWithPrincipal > planResources

ClientWithPrincipal.planResources() method

Produce a query plan that can be used to obtain a list of resources on which the principal is allowed to perform a particular action. See Client.planResources() for details.

Signature:

planResources(request: Omit<PlanResourcesRequest, "principal">, options?: RequestOptions): Promise<PlanResourcesResponse>;

Parameters

Parameter

Type

Description

request

Omit<PlanResourcesRequest, "principal">

options

RequestOptions

(Optional)

**Returns:**

Promise<PlanResourcesResponse>