List rules

GET
/v1/{namespace}/config/{firewall}/rules

Authorization

headerAuthorizationBearer <token>

A personal or service access token, sent as Authorization: Bearer <token>. See access tokens.

Path Parameters

namespace*string

The namespace id.

firewall*string

The firewall id.

Response Body

The firewall's own rules.

application/json
  1. response
[index: integer]?

A firewall's own rule, with whether the caller may add exceptions to it.

curl -X GET 'https://eu-sov-1.bytesafecloud.eu/v1/my-namespace-id/config/my-firewall-id/rules'
[  {    "id": "block-malware",    "executionPhase": "download",    "selector": {      "function": {        "name": "malware"      }    },    "ruleEffect": {      "block": true,      "log": true    },    "description": "Block packages with known malware.",    "canAddException": true  }]