Configure the firewall settings for the account.
| 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: Update the default firewall settings
linode.cloud.firewall_settings:
default_firewall_ids:
linode: 123456
nodebalancer: 123456
public_interface: 123456
vpc_interface: 123456| 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) |
| 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. |
-
default_firewall_ids- The default firewall ID for alinode,nodebalancer,public_interface, orvpc_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
- Sample Response: