templates
Creates, updates, deletes, gets or lists a templates
resource.
Overview
Name | templates |
Type | Resource |
Id | linode.networking.templates |
Fields
The following fields are returned by SELECT
queries:
- get_firewall_template
- get_firewall_templates
Returns a vpc
or public
firewall template for interface firewalls.
Name | Datatype | Description |
---|---|---|
rules | object | The inbound and outbound access rules for the VPC firewall template. A firewall can have up to 25 rules across its inbound and outbound rule sets. Multiple rules are applied in order. If two rules conflict, the first rule takes precedence. For example, if the first rule accepts inbound traffic from an address, and the second rule drops inbound traffic from the same address, the first rule applies, and inbound traffic from that address is accepted. |
slug | array | Read-only The firewall template types available for VPC and public Linode interfaces. (example: vpc) |
Methods
The following methods are available for this resource:
Name | Accessible by | Required Params | Optional Params | Description |
---|---|---|---|---|
get_firewall_template | select | page , page_size | Beta Gets a vpc or public firewall template you can use with Linode VPC and public interfaces. Firewall templates come with some protection rules already configured.The public interface's firewall template allows for login with SSH, and regular networking control data. You should further strengthen these rules by limiting the allowed IPv4 and IPv6 ranges. The VPC interface's firewall template allows for login with SSH, regular networking control data, and inbound traffic from the VPC address space. You should further strengthen these rules by limiting the allowed IPv4 and IPv6 ranges. Learn more... Learn more... | |
get_firewall_templates | select | page , page_size | Beta Returns a paginated list of a firewall templates. There are firewall templates specifically for VPC interfaces and public interfaces. Firewall templates come with some protection rules already configured. Learn more... Learn more... |
Parameters
Parameters can be passed in the WHERE
clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
Name | Datatype | Description |
---|---|---|
page | integer | The page of a collection to return. |
page_size | integer | The number of items to return per page. |
SELECT
examples
- get_firewall_template
- get_firewall_templates
Beta Gets a vpc
or public
firewall template you can use with Linode VPC and public interfaces. Firewall templates come with some protection rules already configured.
The public interface's firewall template allows for login with SSH, and regular networking control data. You should further strengthen these rules by limiting the allowed IPv4 and IPv6 ranges.
The VPC interface's firewall template allows for login with SSH, regular networking control data, and inbound traffic from the VPC address space. You should further strengthen these rules by limiting the allowed IPv4 and IPv6 ranges.
Learn more...
Learn more...
SELECT
rules,
slug
FROM linode.networking.templates
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}';
Beta Returns a paginated list of a firewall templates. There are firewall templates specifically for VPC interfaces and public interfaces. Firewall templates come with some protection rules already configured.
Learn more...
Learn more...
SELECT
data,
page,
pages,
results
FROM linode.networking.templates
WHERE page = '{{ page }}'
AND page_size = '{{ page_size }}';