Skip to content

Latest commit

 

History

History
87 lines (43 loc) · 1.4 KB

core.client.disablepolicies.md

File metadata and controls

87 lines (43 loc) · 1.4 KB

Home > @cerbos/core > Client > disablePolicies

Client.disablePolicies() method

Disable multiple policies.

Signature:

disablePolicies(request: DisablePoliciesRequest, options?: RequestOptions): Promise<DisablePoliciesResponse>;

Parameters

Parameter

Type

Description

request

DisablePoliciesRequest

options

RequestOptions

(Optional)

Returns:

Promise<DisablePoliciesResponse>

Remarks

Requires

Example

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