Skip to content

Latest commit

 

History

History
64 lines (52 loc) · 889 Bytes

baleen_custom_static_rule.md

File metadata and controls

64 lines (52 loc) · 889 Bytes

Table: baleen_custom_static_rule

A static rule allow to classify traffic with some conditions.

Notes:

  • List queries require a namespace.

Examples

List static rule of a namespace

select
  id,
  category,
  description
from
  baleen_custom_static_rule
where
  namespace='kfuAlneru9fjrG==';

List static rules of all namespaces

select
  n.name,
  csr.id,
  csr.category,
  csr.description
from
  baleen_custom_static_rule csr
join
  baleen_namespace n on csr.namespace = n.id;

List enabled static rules of a namespace

select
  id,
  category,
  description
from
  baleen_custom_static_rule
where
  namespace='kfuAlneru9fjrG=='
  and enabled;

List static custom that block traffic

select
  id,
  category,
  description
from
  baleen_custom_static_rule
where
  namespace='kfuAlneru9fjrG=='
  and category='block';