Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 3.16 KB

File metadata and controls

61 lines (46 loc) · 3.16 KB

firewall_settings

Configure the firewall settings for the account.

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: Update the default firewall settings
  linode.cloud.firewall_settings:
    default_firewall_ids:
      linode: 123456
      nodebalancer: 123456
      public_interface: 123456
      vpc_interface: 123456

Parameters

Field Type Required Description
default_firewall_ids (sub-options) dict Optional The default firewall ID for a linode, nodebalancer, public_interface, or vpc_interface. Default firewalls can't be deleted or disabled. (Updatable)
state str Optional The desired state of the target. (Choices: present)

default_firewall_ids

Field Type Required Description
linode int Optional The Linode's default firewall.
nodebalancer int Optional The NodeBalancer's default firewall.
public_interface int Optional The public interface's default firewall.
vpc_interface int Optional The VPC interface's default firewall.

Return Values

  • default_firewall_ids - The default firewall ID for a linode, nodebalancer, public_interface, or vpc_interface. Default firewalls can't be deleted or disabled.

    • Sample Response:
      {
        "default_firewall_ids": {
          "linode": 123456,
          "nodebalancer": 123456,
          "public_interface": 123456,
          "vpc_interface": 123456
        }
      }
    • See the Linode API response documentation for a list of returned fields