List and filter on Linode Interface Firewalls.
| Field | Type | Required | Description |
|---|---|---|---|
api_token |
str |
Required | The Linode account personal access token. It is necessary to run the module. It can be exposed by the environment variable LINODE_API_TOKEN instead. See details in Usage. |
- name: List all firewalls under a Linode Interface
linode.cloud.instance_interface_firewall_list:
linode_id: 12345
interface_id: 789
- name: List all firewalls matching the label my-firewall under a Linode Interface
linode.cloud.instance_interface_firewall_list:
linode_id: 12345
interface_id: 789
filters:
- name: label
values: my-firewall| Field | Type | Required | Description |
|---|---|---|---|
linode_id |
int |
Required | The parent Instance for the Linode Interface Firewalls. |
interface_id |
int |
Required | The parent Linode Interface for the Linode Interface Firewalls. |
order |
str |
Optional | The order to list Linode Interface Firewalls in. (Choices: desc, asc; Default: asc) |
order_by |
str |
Optional | The attribute to order Linode Interface Firewalls by. |
filters (sub-options) |
list |
Optional | A list of filters to apply to the resulting Linode Interface Firewalls. |
count |
int |
Optional | The number of Linode Interface Firewalls to return. If undefined, all results will be returned. |
| Field | Type | Required | Description |
|---|---|---|---|
name |
str |
Required | The name of the field to filter on. Valid filterable fields can be found here. |
values |
list |
Required | A list of values to allow for this field. Fields will pass this filter if at least one of these values matches. |
-
firewalls- The returned Linode Interface Firewalls.- Sample Response:
[ { "created": "2025-01-01T00:01:01", "id": 123, "label": "firewall123", "rules": { "inbound": [ { "action": "ACCEPT", "addresses": { "ipv4": [ "192.0.2.0/24", "192.0.2.148/24" ], "ipv6": [ "2001:DB8::/128" ] }, "description": "An example firewall rule description.", "label": "firewallrule123", "ports": "22-24, 80, 443", "protocol": "TCP" } ], "inbound_policy": "DROP", "outbound": [ { "action": "ACCEPT", "addresses": { "ipv4": [ "192.0.2.0/24", "192.0.2.156/24" ], "ipv6": [ "2001:DB8::/128" ] }, "description": "An example firewall rule description.", "label": "firewallrule123", "ports": "22-24, 80, 443", "protocol": "TCP" } ], "outbound_policy": "DROP" }, "status": "enabled", "tags": [ "example tag", "another example" ], "updated": "2025-01-02T00:01:01" } ] - See the Linode API response documentation for a list of returned fields
- Sample Response: