API
Firewalls
Update firewall

Update a Firewall

  • Name
    put
    Type
    /v1/firewalls/:uuid
    Description

    Send a PUT request to update a firewall.

Request

Required Attributes

  • Name
    name
    Type
    string
    Description

    Firewall new name given by the user.

Example

curl -X PUT "https://api.simplystack.com/v1/firewalls/c85b4c53-4b37-4163-b8fa-a6d88b78eda8" \
  -H "Content-Type: application/json" \
  -H "Authorization: Token d359ad9cc9422b5ff07aede0cd2707da4ff82be0" \
  -d '{"name": "TestFirewall"}'

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