API
Firewalls
List firewalls

List Firewalls

  • Name
    get
    Type
    /v1/firewalls
    Description

    Send a GET request to list firewalls.

Request

Example

curl -X GET "https://api.simplystack.com/v1/firewalls" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \

Response

JSON object with key named firewall. which is an array of the following attributes for the firewall, inboud_rules and outboud_rules objects:

Firewall

See firewall model.

Rule

See firewall rule model.

Example

json
{
  "firewalls": [
    {
      "uuid": "c85b4c53-4b37-4163-b8fa-a6d88b78eda8",
      "name": "TestFirewall",
      "created_at": "2020-07-30T07:13:47.482593Z",
      "inbound_rules": [
        {
          "address": "0.0.0.0/0",
          "port": 22,
          "protocol": "tcp"
        },
        {
          "address": "0.0.0.0/0",
          "port": 80,
          "protocol": "tcp"
        }
      ],
      "outbound_rules": [
        {
          "address": "0.0.0.0/0",
          "port": null,
          "protocol": "tcp"
        },
        {
          "address": "0.0.0.0/0",
          "port": null,
          "protocol": "udp"
        },
        {
          "address": "0.0.0.0/0",
          "port": null,
          "protocol": "icmp"
        }
      ],
      "resources": {
        "stacklet_ids": []
      }
    }
  ],
  "meta": {
    "pagination": {
      "current_page": 1,
      "next_page": null,
      "pages": 1,
      "per_page": 25,
      "previous_page": null,
      "total": 1
    },
    "query": null,
    "sort": null
  }
}