getFirewall

Provides details about a Linode Firewall.

Example Usage

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
    public MyStack()
    {
        var my_firewall = Output.Create(Linode.GetFirewall.InvokeAsync(new Linode.GetFirewallArgs
        {
            Id = 123,
        }));
    }

}
package main

import (
	"github.com/pulumi/pulumi-linode/sdk/v3/go/linode"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := linode.LookupFirewall(ctx, &GetFirewallArgs{
			Id: 123,
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
import pulumi
import pulumi_linode as linode

my_firewall = linode.get_firewall(id=123)
import * as pulumi from "@pulumi/pulumi";
import * as linode from "@pulumi/linode";

const my_firewall = pulumi.output(linode.getFirewall({
    id: 123,
}));

Using getFirewall

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getFirewall(args: GetFirewallArgs, opts?: InvokeOptions): Promise<GetFirewallResult>
function getFirewallOutput(args: GetFirewallOutputArgs, opts?: InvokeOptions): Output<GetFirewallResult>
def get_firewall(id: Optional[int] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFirewallResult
def get_firewall_output(id: Optional[pulumi.Input[int]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetFirewallResult]
func LookupFirewall(ctx *Context, args *LookupFirewallArgs, opts ...InvokeOption) (*LookupFirewallResult, error)
func LookupFirewallOutput(ctx *Context, args *LookupFirewallOutputArgs, opts ...InvokeOption) LookupFirewallResultOutput

> Note: This function is named LookupFirewall in the Go SDK.

public static class GetFirewall 
{
    public static Task<GetFirewallResult> InvokeAsync(GetFirewallArgs args, InvokeOptions? opts = null)
    public static Output<GetFirewallResult> Invoke(GetFirewallInvokeArgs args, InvokeOptions? opts = null)
}

The following arguments are supported:

Id int
The Firewall’s ID.
Id int
The Firewall’s ID.
id number
The Firewall’s ID.
id int
The Firewall’s ID.

getFirewall Result

The following output properties are available:

Devices List<GetFirewallDevice>
Disabled bool
If true, the firewall is inactive.
Id int
The ID of the Firewall Device.
InboundPolicy string
The default behavior for inbound traffic. (ACCEPT, DROP)
Inbounds List<GetFirewallInbound>
Label string
The label of the underlying entity this device references.
Linodes List<int>
The IDs of Linodes to apply this firewall to.
OutboundPolicy string
The default behavior for outbound traffic. (ACCEPT, DROP)
Outbounds List<GetFirewallOutbound>
Status string
The status of the firewall. (enabled, disabled, deleted)
Tags List<string>
The tags applied to the firewall.
Devices []GetFirewallDeviceType
Disabled bool
If true, the firewall is inactive.
Id int
The ID of the Firewall Device.
InboundPolicy string
The default behavior for inbound traffic. (ACCEPT, DROP)
Inbounds []GetFirewallInbound
Label string
The label of the underlying entity this device references.
Linodes []int
The IDs of Linodes to apply this firewall to.
OutboundPolicy string
The default behavior for outbound traffic. (ACCEPT, DROP)
Outbounds []GetFirewallOutbound
Status string
The status of the firewall. (enabled, disabled, deleted)
Tags []string
The tags applied to the firewall.
devices GetFirewallDevice[]
disabled boolean
If true, the firewall is inactive.
id number
The ID of the Firewall Device.
inboundPolicy string
The default behavior for inbound traffic. (ACCEPT, DROP)
inbounds GetFirewallInbound[]
label string
The label of the underlying entity this device references.
linodes number[]
The IDs of Linodes to apply this firewall to.
outboundPolicy string
The default behavior for outbound traffic. (ACCEPT, DROP)
outbounds GetFirewallOutbound[]
status string
The status of the firewall. (enabled, disabled, deleted)
tags string[]
The tags applied to the firewall.
devices Sequence[GetFirewallDevice]
disabled bool
If true, the firewall is inactive.
id int
The ID of the Firewall Device.
inbound_policy str
The default behavior for inbound traffic. (ACCEPT, DROP)
inbounds Sequence[GetFirewallInbound]
label str
The label of the underlying entity this device references.
linodes Sequence[int]
The IDs of Linodes to apply this firewall to.
outbound_policy str
The default behavior for outbound traffic. (ACCEPT, DROP)
outbounds Sequence[GetFirewallOutbound]
status str
The status of the firewall. (enabled, disabled, deleted)
tags Sequence[str]
The tags applied to the firewall.

Supporting Types

GetFirewallDevice

EntityId int
The ID of the underlying entity this device references (i.e. the Linode’s ID).
Id int
The Firewall’s ID.
Label string
The label of the underlying entity this device references.
Type string
The type of Firewall Device.
Url string
EntityId int
The ID of the underlying entity this device references (i.e. the Linode’s ID).
Id int
The Firewall’s ID.
Label string
The label of the underlying entity this device references.
Type string
The type of Firewall Device.
Url string
entityId number
The ID of the underlying entity this device references (i.e. the Linode’s ID).
id number
The Firewall’s ID.
label string
The label of the underlying entity this device references.
type string
The type of Firewall Device.
url string
entity_id int
The ID of the underlying entity this device references (i.e. the Linode’s ID).
id int
The Firewall’s ID.
label str
The label of the underlying entity this device references.
type str
The type of Firewall Device.
url str

GetFirewallInbound

Action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Ipv4s List<string>
A list of IPv4 addresses or networks. Must be in IP/mask format.
Ipv6s List<string>
A list of IPv6 addresses or networks. Must be in IP/mask format.
Label string
The label of the underlying entity this device references.
Ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
Protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
Action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Ipv4s []string
A list of IPv4 addresses or networks. Must be in IP/mask format.
Ipv6s []string
A list of IPv6 addresses or networks. Must be in IP/mask format.
Label string
The label of the underlying entity this device references.
Ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
Protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
ipv4s string[]
A list of IPv4 addresses or networks. Must be in IP/mask format.
ipv6s string[]
A list of IPv6 addresses or networks. Must be in IP/mask format.
label string
The label of the underlying entity this device references.
ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
action str
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
ipv4s Sequence[str]
A list of IPv4 addresses or networks. Must be in IP/mask format.
ipv6s Sequence[str]
A list of IPv6 addresses or networks. Must be in IP/mask format.
label str
The label of the underlying entity this device references.
ports str
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
protocol str
The network protocol this rule controls. (TCP, UDP, ICMP)

GetFirewallOutbound

Action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Ipv4s List<string>
A list of IPv4 addresses or networks. Must be in IP/mask format.
Ipv6s List<string>
A list of IPv6 addresses or networks. Must be in IP/mask format.
Label string
The label of the underlying entity this device references.
Ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
Protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
Action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
Ipv4s []string
A list of IPv4 addresses or networks. Must be in IP/mask format.
Ipv6s []string
A list of IPv6 addresses or networks. Must be in IP/mask format.
Label string
The label of the underlying entity this device references.
Ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
Protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
action string
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
ipv4s string[]
A list of IPv4 addresses or networks. Must be in IP/mask format.
ipv6s string[]
A list of IPv6 addresses or networks. Must be in IP/mask format.
label string
The label of the underlying entity this device references.
ports string
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
protocol string
The network protocol this rule controls. (TCP, UDP, ICMP)
action str
Controls whether traffic is accepted or dropped by this rule. Overrides the Firewall’s inbound_policy if this is an inbound rule, or the outbound_policy if this is an outbound rule.
ipv4s Sequence[str]
A list of IPv4 addresses or networks. Must be in IP/mask format.
ipv6s Sequence[str]
A list of IPv6 addresses or networks. Must be in IP/mask format.
label str
The label of the underlying entity this device references.
ports str
A string representation of ports and/or port ranges (i.e. “443” or “80-90, 91”).
protocol str
The network protocol this rule controls. (TCP, UDP, ICMP)

Package Details

Repository
https://github.com/pulumi/pulumi-linode
License
Apache-2.0
Notes
This Pulumi package is based on the linode Terraform Provider.