๐ง Firewalls
Get All
Returns a paginated list of accessible Firewalls.
LinodeClient linodeClient = new LinodeClient("apikey");
// Get All
List<Firewall> list = await linodeClient.Firewall.Get();Get One
Get a specific Firewall resource by its ID. The Firewallโs Devices will not be returned in the response. Instead, use the List Firewall Devices endpoint to review them.
LinodeClient linodeClient = new LinodeClient("apikey");
long firewallId = 109478;
// Get One
Firewall firewall = await linodeClient.Firewall.Get(firewallId);Create
Creates a Firewall to filter network traffic.
Use the
rulesproperty to create inbound and outbound access rules.Use the
devicesproperty to assign the Firewall to a service and apply its Rules to the device. Requiresread_writeUserโs Grants to the device. Currently, Firewalls can only be assigned to Linode instances.A Firewall can be assigned to multiple Linode instances at a time.
A Linode instance can have one active, assigned Firewall at a time. Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.
Firewalls apply to all of a Linodeโs non-
vlanpurpose Configuration Profile Interfaces.Assigned Linodes must not have any ongoing live migrations.
A
firewall_createEvent is generated when this endpoint returns successfully.
Update
Updates information for a Firewall.
Assigned Linodes must not have any ongoing live migrations.
If a Firewallโs status is changed with this endpoint, a corresponding
firewall_enableorfirewall_disableEvent will be generated.
Some parts of a Firewallโs configuration cannot be manipulated by this endpoint:
A Firewallโs Devices cannot be set with this endpoint. Instead, use the Create Firewall Device and Delete Firewall Device endpoints to assign and remove this Firewall from Linode services.
A Firewallโs Rules cannot be changed with this endpoint. Instead, use the Update Firewall Rules endpoint to update your Rules.
A Firewallโs status can be set to
enabledordisabledby this endpoint, but it cannot be set todeleted. Instead, use the Delete Firewall endpoint to delete a Firewall.
Delete
Delete a Firewall resource by its ID. This will remove all of the Firewallโs Rules from any Linode services that the Firewall was assigned to.
Assigned Linodes must not have any ongoing live migrations.
A
firewall_deleteEvent is generated when this endpoint returns successfully.
Rules List
Rules Update
Updates the inbound and outbound Rules for a Firewall.
Assigned Linodes must not have any ongoing live migrations.
Note: This command replaces all of a Firewallโs
inboundandoutboundrulesets with the values specified in your request.
Devices List
Returns a paginated list of a Firewallโs Devices. A Firewall Device assigns a Firewall to a Linode service (referred to as the Deviceโs entity). Currently, only Devices with an entity of type linode are accepted.
Device View
Returns information for a Firewall Device, which assigns a Firewall to a Linode service (referred to as the Deviceโs entity). Currently, only Devices with an entity of type linode are accepted.
Device Create
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, only Devices with an entity of type
linodeare accepted.A Firewall can be assigned to multiple Linode instances at a time.
A Linode instance can have one active, assigned Firewall at a time. Additional disabled Firewalls can be assigned to a service, but they cannot be enabled if another active Firewall is already assigned to the same service.
Assigned Linodes must not have any ongoing live migrations.
A
firewall_device_addEvent is generated when the Firewall Device is added successfully.
Device Delete
Removes a Firewall Device, which removes a Firewall from the Linode service it was assigned to by the Device. This will remove all of the Firewallโs Rules from the Linode service. If any other Firewalls have been assigned to the Linode service, then those Rules will remain in effect.
Assigned Linodes must not have any ongoing live migrations.
A
firewall_device_removeEvent is generated when the Firewall Device is removed successfully.
JSON
Last updated
Was this helpful?