post https://api.linode.com//networking/firewalls//devices
Creates a firewall device, which assigns a firewall to a service (referred to as the device's entity
) and applies the firewall's rules to the device.
-
Currently, devices with
linode
,interface
, andnodebalancer
entity types are accepted.- The
linode
type is not allowed for Linodes using Linode interfaces. - The
interface
type is not allowed for legacy config interfaces. For VPC and public legacy config profile interfaces, the firewall is applied through thelinode
device.
- The
-
Firewalls only apply to inbound TCP traffic to NodeBalancers.
-
A firewall can be assigned to multiple services at a time.
-
A service can have one assigned firewall at a time.
-
Assigned Linodes must not have any ongoing live migrations.
-
A
firewall_device_add
event is generated when the firewall device is added successfully.
linode-cli firewalls device-create 123 \
--id 456 \
--type "linode"
<https://techdocs.akamai.com/cloud-computing/docs/getting-started-with-the-linode-cli>
firewall:read_write
<https://techdocs.akamai.com/linode-api/reference/get-started#oauth>