Skip to content

Latest commit

 

History

History
79 lines (65 loc) · 2.84 KB

File metadata and controls

79 lines (65 loc) · 2.84 KB

firewall_template_info

Get info about a Linode Firewall Template.

Minimum Required Fields

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.

Examples

- name: Get info about a Firewall Template by slug
  linode.cloud.firewall_template_info:
    slug: public

Parameters

Field Type Required Description
slug str Required The Slug of the Firewall Template to resolve.

Return Values

  • 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