Skip to main content

firewalls

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

Overview

Namefirewalls
TypeResource
Idlinode.linode.firewalls

Fields

The following fields are returned by SELECT queries:

Returns a paginated list of Firewalls assigned to this Linode.

NameDatatypeDescription
dataarray
pageintegerRead-only The current page.
pagesintegerRead-only The total number of pages.
resultsintegerRead-only The total number of results.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_linode_firewallsselectpage, page_sizeView Firewall information for Firewalls assigned to this Linode.

Learn more...

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

Learn more...

Learn more...
post_apply_firewallsexecReapply assigned firewalls to a Linode in case they were not applied successfully.

The firewall_apply event indicates if the firewalls were applied.

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

View Firewall information for Firewalls assigned to this Linode.

Learn more...

Learn more...

SELECT
data,
page,
pages,
results
FROM linode.linode.firewalls
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}';

REPLACE examples

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

Learn more...

Learn more...

REPLACE linode.linode.firewalls
SET
data__firewall_ids = '{{ firewall_ids }}'
WHERE
data__firewall_ids = '{{ firewall_ids }}' --required
AND page = '{{ page}}'
AND page_size = '{{ page_size}}'
RETURNING
data,
page,
pages,
results;

Lifecycle Methods

Reapply assigned firewalls to a Linode in case they were not applied successfully.

The firewall_apply event indicates if the firewalls were applied.

Learn more...

Learn more...

EXEC linode.linode.firewalls.post_apply_firewalls 
;