Cerbos JavaScript SDK
    Preparing search index...

    Interface Resource

    A resource on which to check a principal's permissions.

    interface Resource {
        attr?: Record<string, Value>;
        attributes?: Record<string, Value>;
        id: string;
        kind: string;
        policyVersion?: string;
        scope?: string;
    }
    Index

    Properties

    attr?: Record<string, Value>

    Application-specific attributes describing the resource.

    {}

    attributes?: Record<string, Value>

    Application-specific attributes describing the resource (deprecated).

    {}

    Use Resource.attr instead, for consistency with policy expressions.

    id: string

    A unique identifier for the resource.

    kind: string

    The type of resource.

    policyVersion?: string

    The policy version to use when checking the principal's permissions on the resource.

    The Cerbos policy decision point server's configured default version.
    
    scope?: string

    The policy scope to use when checking the principal's permissions on the resource.

    ""