Home > @cerbos/core > Client > disablePolicies
Disable multiple policies.
Signature:
disablePolicies(request: DisablePoliciesRequest, options?: RequestOptions): Promise<DisablePoliciesResponse>;
Parameter |
Type |
Description |
---|---|---|
request | ||
options |
(Optional) |
Returns:
Promise<DisablePoliciesResponse>
Requires
-
the client to be configured with Options.adminCredentials,
-
the Cerbos policy decision point server to be at least v0.25 and configured with the admin API enabled, and
-
a dynamic storage backend.
const result = await cerbos.disablePolicies({
ids: ["resource.document.v1", "resource.image.v1"],
});