Skip to main content
PUT
/
network
/
firewalls
/
{firewallUuid}
Update Firewall
curl --request PUT \
  --url https://api.tenbytecloud.com/v1/network/firewalls/{firewallUuid} \
  --header 'Content-Type: application/json' \
  --header 'apikey: <api-key>' \
  --data '
{
  "name": "Updated Database Firewall",
  "description": "Updated firewall for database servers",
  "rules": [
    {
      "uuid": "db9acadc-91e1-4225-b934-7f264f9f75a2",
      "direction": "inbound",
      "protocol": "tcp",
      "port_start": 3306,
      "port_end": 3306,
      "endpoint_spec_type": "ip_prefixes",
      "endpoint_spec": [
        "10.0.0.0/24",
        "192.168.5.0/24"
      ]
    }
  ]
}
'
{
  "uuid": "2a874f44-310f-4df8-9340-1dc274c2bd51",
  "display_name": "Database Firewall",
  "rules": [
    {
      "uuid": "db9acadc-91e1-4225-b934-7f264f9f75a2",
      "direction": "inbound",
      "protocol": "tcp",
      "port_start": 3306,
      "port_end": 3306,
      "endpoint_spec_type": "ip_prefixes",
      "endpoint_spec": [
        "10.0.0.0/24",
        "192.168.5.0/24"
      ]
    }
  ],
  "resources_assigned": []
}

Authorizations

apikey
string
header
required

Path Parameters

firewallUuid
string
required

UUID of the firewall to update

Body

application/json
name
string
description
string
rules
object[]

Array of FirewallRule objects with updated fields

Response

200 - application/json

Updated Firewall object

The response is of type object.