Skip to main content
POST
/
flowrule
cURL
curl --request POST \
  --url https://api.ck-itsolutions.nl/v1/flowrule \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '
{
  "dst": false,
  "protocol": "<string>",
  "rate": {
    "mbit": 0,
    "kpps": 0
  },
  "layer4": false,
  "port": {
    "match": false,
    "src": {
      "start": 0,
      "end": 0
    },
    "dst": {
      "start": 0,
      "end": 0
    }
  },
  "packetlength": {
    "start": 0,
    "end": 0
  },
  "threshold": {
    "set": false,
    "mbit": 0,
    "kpps": 0
  },
  "layer7": false,
  "priority": 123
}
'
{}

Authorizations

x-api-key
string
header
required

Body

application/json

Plant to add to the store

dst
string
required

Destination IP the flowrule needs to be created for (subnets supported).

Example:

false

protocol
string
required

Protocol type (e.g., tcp, udp).

rate
object
required
layer4
boolean
required

Indicates if layer 4 filtering is applied

Example:

false

port
object
packetlength
object
threshold
object
layer7
boolean

Indicates if layer 7 filtering is applied

Example:

false

priority
integer

Rule priority with 1 being highest priority.

Response

Returns newly created flowrule with uuid as json.

The response is of type object.