Decision

interface Decision {
    duration: string;
    id?: number;
    origin: string;
    scenario: string;
    scope: string;
    simulated?: boolean;
    type: string;
    until?: string;
    uuid?: string;
    value: string;
}

Properties

duration: string

the duration of the decisions

id?: number

(only relevant for GET ops) the unique id

origin: string

the origin of the decision : cscli, crowdsec

scenario: string
scope: string

the scope of decision : does it apply to an IP, a range, a username, etc

simulated?: boolean

true if the decision result from a scenario in simulation mode

type: string

the type of decision, might be 'ban', 'captcha' or something custom. Ignored when watcher (cscli/crowdsec) is pushing to APIL.

until?: string

the date until the decisions must be active

uuid?: string

only relevant for LAPI->CAPI, ignored for cscli->LAPI and crowdsec->LAPI

value: string

the value of the decision scope : an IP, a range, a username, etc