Get info about a Linode Firewall Template.
| 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: Get info about a Firewall Template by slug
linode.cloud.firewall_template_info:
slug: public| Field | Type | Required | Description |
|---|---|---|---|
slug |
str |
Required | The Slug of the Firewall Template to resolve. |
-
firewall_template- The returned Firewall Template.- Sample Response:
{ "rules": { "inbound": [ { "action": "ACCEPT", "addresses": { "ipv4": [ "0.0.0.0/0" ], "ipv6": [ "::/0" ] }, "description": "Accept inbound SSH", "label": "accept-inbound-ssh", "ports": "22", "protocol": "TCP" }, { "action": "ACCEPT", "addresses": { "ipv4": [ "0.0.0.0/0" ], "ipv6": [ "::/0" ] }, "description": "Accept inbound ICMP", "label": "accept-inbound-icmp", "protocol": "ICMP" } ], "inbound_policy": "DROP", "outbound": [], "outbound_policy": "ACCEPT" }, "slug": "public" } - See the Linode API response documentation for a list of returned fields
- Sample Response: