Skip to main content

firewall_settings

Creates, updates, deletes, gets or lists a firewall_settings resource.

Overview​

Namefirewall_settings
TypeResource
Idlinode.networking.firewall_settings

Fields​

The following fields are returned by SELECT queries:

Returns default firewalls.

NameDatatypeDescription
linodeintegerThe Linode's default firewall.
nodebalancerintegerThe NodeBalancer's default firewall.
public_interfaceintegerThe public interface's default firewall.
vpc_interfaceintegerThe VPC interface's default firewall.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectpage, page_sizeBeta Returns default firewalls for Linodes, Linode VPC and public interfaces, and NodeBalancers.

Learn more...

Learn more...
updatereplaceBeta You can update or add a default firewall to:

- Linodes using legacy config profile interfaces

- Linode VPC interfaces and Linode public interfaces

- NodeBalancers

If a firewall isn't provided during service creation, a default firewall is assigned, unless you have opted out of firewall protection.

> 📘
>
> Default firewalls on Linodes with Linode interfaces are applied to the interfaces, not the Linode itself.
>
> Default firewalls on Linodes with legacy configuration profile interfaces are applied directly to the Linode, not its interfaces.

Learn more...

Learn more...

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
pageintegerThe page of a collection to return.
page_sizeintegerThe number of items to return per page.

SELECT examples​

Beta Returns default firewalls for Linodes, Linode VPC and public interfaces, and NodeBalancers.

Learn more...

Learn more...

SELECT
linode,
nodebalancer,
public_interface,
vpc_interface
FROM linode.networking.firewall_settings
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}'
;

REPLACE examples​

Beta You can update or add a default firewall to:

- Linodes using legacy config profile interfaces

- Linode VPC interfaces and Linode public interfaces

- NodeBalancers

If a firewall isn't provided during service creation, a default firewall is assigned, unless you have opted out of firewall protection.

> 📘
>
> Default firewalls on Linodes with Linode interfaces are applied to the interfaces, not the Linode itself.
>
> Default firewalls on Linodes with legacy configuration profile interfaces are applied directly to the Linode, not its interfaces.

Learn more...

Learn more...

REPLACE linode.networking.firewall_settings
SET
default_firewall_ids = '{{ default_firewall_ids }}'
RETURNING
default_firewall_ids;