POST
/
firewall
/
rule
curl --request POST \
  --url https://api.ck-itsolutions.nl/v1/firewall/rule \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "descr": "<string>",
  "dst": "<string>",
  "src": {
    "start": "<string>",
    "end": "<string>"
  },
  "port": {
    "src": {
      "start": 123,
      "end": 123
    },
    "dst": {
      "start": 123,
      "end": 123
    }
  },
  "protocol": "<string>",
  "action": "<string>",
  "priority": 123,
  "disabled": true,
  "tcpflags": [
    "<any>"
  ],
  "ratelimit": 123,
  "packetlength": 123,
  "packettype": 123,
  "statetype": "<string>"
}'
{}

Authorizations

x-api-key
string
header
required

Body

application/json

Plant to add to the store

The body is of type object.

Response

200
application/json

Returns newly created firewall rule with uuid as json.

The response is of type object.

POST
/
firewall
/
rule
curl --request POST \
  --url https://api.ck-itsolutions.nl/v1/firewall/rule \
  --header 'Content-Type: application/json' \
  --header 'x-api-key: <api-key>' \
  --data '{
  "descr": "<string>",
  "dst": "<string>",
  "src": {
    "start": "<string>",
    "end": "<string>"
  },
  "port": {
    "src": {
      "start": 123,
      "end": 123
    },
    "dst": {
      "start": 123,
      "end": 123
    }
  },
  "protocol": "<string>",
  "action": "<string>",
  "priority": 123,
  "disabled": true,
  "tcpflags": [
    "<any>"
  ],
  "ratelimit": 123,
  "packetlength": 123,
  "packettype": 123,
  "statetype": "<string>"
}'
{}

Authorizations

x-api-key
string
header
required

Body

application/json

Plant to add to the store

The body is of type object.

Response

200
application/json

Returns newly created firewall rule with uuid as json.

The response is of type object.