Home > @cerbos/core > Client > getDecisionLogEntry
Fetch a decision log entry by call ID from the policy decision point server's audit log.
Signature:
getDecisionLogEntry(callId: string, options?: RequestOptions): Promise<DecisionLogEntry | undefined>;
Parameter |
Type |
Description |
---|---|---|
callId |
string | |
options |
(Optional) |
Returns:
Promise<DecisionLogEntry | undefined>
Requires
-
the client to be configured with Options.adminCredentials; and
-
the Cerbos policy decision point server to be at least v0.18 and configured with
-
the admin API enabled
-
the local audit logging backend, and
-
decision logs enabled.
const entry = await cerbos.getDecisionLogEntry("01F9VS1N77S83MTSBBX44GYSJ6");