Skip to content

Latest commit

 

History

History
87 lines (43 loc) · 1.38 KB

core.client.enablepolicies.md

File metadata and controls

87 lines (43 loc) · 1.38 KB

Home > @cerbos/core > Client > enablePolicies

Client.enablePolicies() method

Enable multiple policies.

Signature:

enablePolicies(request: EnablePoliciesRequest, options?: RequestOptions): Promise<EnablePoliciesResponse>;

Parameters

Parameter

Type

Description

request

EnablePoliciesRequest

options

RequestOptions

(Optional)

Returns:

Promise<EnablePoliciesResponse>

Remarks

Requires

Example

const result = await cerbos.enablePolicies({
  ids: ["resource.document.v1", "resource.image.v1"],
});