firewalls
Creates, updates, deletes, gets or lists a firewalls
resource.
Overview
Name | firewalls |
Type | Resource |
Id | linode.linode.firewalls |
Fields
The following fields are returned by SELECT
queries:
- get_linode_firewalls
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_linode_firewalls | select | page , page_size | View Firewall information for Firewalls assigned to this Linode. Learn more... Learn more... | |
put_linode_firewalls | replace | data__firewall_ids | page , page_size | 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... |
post_apply_firewalls | exec | 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... |
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.
Name | Datatype | Description |
---|---|---|
page | integer | The page of a collection to return. |
page_size | integer | The number of items to return per page. |
SELECT
examples
- get_linode_firewalls
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
- put_linode_firewalls
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
- post_apply_firewalls
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
;