API
Firewalls
Retreive firewall

Retrieve a Firewall

  • Name
    get
    Type
    /v1/firewalls/:uud
    Description

    Send a GET request to get a firewall.

Request

Example

curl -X GET "https://api.simplystack.com/v1/firewalls/c85b4c53-4b37-4163-b8fa-a6d88b78eda8" \
  -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, inbound_rules and outbound_rules objects:

Firewall

See firewall model.

Rule

See firewall rule model.

Example

json
{
  "firewall": {
    "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": []
    }
  }
}