Update a Linode's firewalls

Replace the current list of assigned firewalls with a new list, or provide an empty list to remove all firewalls from this Linode.

linode-cli linodes firewalls-update 123 \ --firewall_ids '[1234, 4567]'
Learn more...
linodes:read_write
Learn more...
Path Params
string
required

Enum Call either the v4 URL, or v4beta for operations still in Beta.

integer
required

The ID of the Linode.

Query Params
integer
≥ 1
Defaults to 1

The page of a collection to return.

integer
25 to 500
Defaults to 100

The number of items to return per page.

Body Params
firewall_ids
array of integers
required
length ≥ 0

A complete list of firewall IDs to assign to this Linode or NodeBalancer. This operation replaces any existing assignments. To remove all firewalls, pass an empty list, [].

firewall_ids*
Responses

Response body
object
data
array of objects
data
object
date-time

Filterable, Read-only When this Firewall was created.

integer

Filterable, Read-only The Firewall's unique ID.

string
length between 3 and 32

Filterable The Firewall's label, for display purposes only.

Firewall labels have the following constraints:

  • Must begin and end with an alphanumeric character.
  • May only consist of alphanumeric characters, hyphens (-), underscores (_) or periods (.).
  • Cannot have two hyphens (--), underscores (__) or periods (..) in a row.
  • Must be between 3 and 32 characters.
  • Must be unique.
rules
object

The inbound and outbound access rules to apply to the Firewall.

A Firewall may have up to 25 rules across its inbound and outbound rulesets.

Multiple rules are applied in order. If two rules conflict, the first rule takes precedence. For example, if the first rule accepts inbound traffic from an address, and the second rule drops inbound traffic the same address, the first rule applies and inbound traffic from that address is accepted.

string

Read-only The status of this Firewall.

  • When a Firewall is first created its status is enabled.
  • Run the Update a firewall operation to set a Firewall's status to enabled or disabled.
  • Run the Delete a firewall operation to delete a Firewall.

enabled disabled deleted

tags
array of strings

Filterable An array of tags applied to this object. Tags are for organizational purposes only.

tags
date-time

Filterable, Read-only When this Firewall was last updated.

integer

Read-only The current page.

integer

Read-only The total number of pages.

integer

Read-only The total number of results.

Language
Credentials