iya-sts
    Preparing search index...

    Variable setRiskLevel

    setRiskLevel: (
        id: unknown,
        level: unknown,
        reason?: unknown,
        options?: any,
    ) => any = ...

    Type Declaration

      • (id: unknown, level: unknown, reason?: unknown, options?: any): any
      • Sets a device's risk level, sending CAEP risk-level-change with principal DEVICE when the level moved.

        Parameters

        • id: unknown

          the device's id

        • level: unknown

          LOW, MEDIUM or HIGH, or empty to forget the assessment (which sends nothing)

        • Optionalreason: unknown

          CAEP's risk_reason

        • Optionaloptions: any

          source (risk by default, compromise or admin), actor and initiatingEntity

        Returns any

        { ok, device, previous, level, changed }, or a refusal