Skip to main content

Rules

List all audit rules

Request

Definition

GET /api/v1/audit/rules

Headers

  • Authorization required

    Authentication token with privileges to view the resource.

    Bearer {token}

Query string parameters

ParameterTypeRequiredDescription
paginatebooleanNoIf the result must be paginated.
pageintegerYes if paginate is truePage index.
page_sizeintegerYes if paginate is trueNumber of items displayed per page.
rule_idstringNoFilters operations whose rule_id matches the string entered.
rule_id_listarray<string>NoFilters operations whose rule_id matches one of those in the list.
timestamp_startintegerNoFilters operations performed after the date entered.
timestamp_endintegerNoFilters operations performed before the date entered.
usernamestringNoFilters the operations carried out by the user whose name matches the string entered.
username_listarray<string>NoFilters the operations performed by the user whose name matches any of the list items.
actionstringNoFilters operations whose action performed matches the string entered.
action_listarray<string>NoFilters the operations performed by the user whose action matches any of the list items.

Response

Status codes

Status codeMessage
200"List of audit rules"
403"Forbidden"

Body

  • data.audit_rules.rule_id string

    Identification code of the rule concerned by the operation.

  • data.audit_rules.action string

    Executed action.

  • data.audit_rules.username string

    Username of the user who performed the operation.

  • data.audit_rules.timestamp integer

    Date in which the operation has been performed in UNIX format (microseconds).

  • data.audit_rules.enabled boolean

    Indicates if rule has been enabled.

  • data.audit_rules.deleted boolean

    Indicates if rule has been deleted.

  • data.audit_rules.loaded boolean

    Indicates if rule has been loaded on WAF.

  • data.audit_rules.priority string

    Indicates the priority of execution of one rule over another.

  • data.audit_rules.start_time integer

    Date on which the rule was enabled.

  • data.audit_rules.duration integer

    Rule duration.