getFirewall

Provides details about a specific Hetzner Cloud Firewall.

Using getFirewall

function getFirewall(args: GetFirewallArgs, opts?: InvokeOptions): Promise<GetFirewallResult>
def get_firewall(id: Optional[int] = None,
                 labels: Optional[Mapping[str, Any]] = None,
                 most_recent: Optional[bool] = None,
                 name: Optional[str] = None,
                 rules: Optional[Sequence[GetFirewallRule]] = None,
                 with_selector: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetFirewallResult
func LookupFirewall(ctx *Context, args *LookupFirewallArgs, opts ...InvokeOption) (*LookupFirewallResult, error)

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

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

The following arguments are supported:

Id int
ID of the firewall.
Labels Dictionary<string, object>
(map) User-defined labels (key-value pairs)
MostRecent bool
Name string
Name of the firewall.
Rules List<Pulumi.HCloud.Inputs.GetFirewallRule>
(string) Configuration of a Rule from this Firewall.
WithSelector string
Label selector
Id int
ID of the firewall.
Labels map[string]interface{}
(map) User-defined labels (key-value pairs)
MostRecent bool
Name string
Name of the firewall.
Rules []GetFirewallRule
(string) Configuration of a Rule from this Firewall.
WithSelector string
Label selector
id number
ID of the firewall.
labels {[key: string]: any}
(map) User-defined labels (key-value pairs)
mostRecent boolean
name string
Name of the firewall.
rules GetFirewallRule[]
(string) Configuration of a Rule from this Firewall.
withSelector string
Label selector
id int
ID of the firewall.
labels Mapping[str, Any]
(map) User-defined labels (key-value pairs)
most_recent bool
name str
Name of the firewall.
rules Sequence[GetFirewallRule]
(string) Configuration of a Rule from this Firewall.
with_selector str
Label selector

getFirewall Result

The following output properties are available:

Name string
(string) Name of the Firewall.
Id int
(int) Unique ID of the Firewall.
Labels Dictionary<string, object>
(map) User-defined labels (key-value pairs)
MostRecent bool
Rules List<Pulumi.HCloud.Outputs.GetFirewallRule>
(string) Configuration of a Rule from this Firewall.
WithSelector string
Name string
(string) Name of the Firewall.
Id int
(int) Unique ID of the Firewall.
Labels map[string]interface{}
(map) User-defined labels (key-value pairs)
MostRecent bool
Rules []GetFirewallRule
(string) Configuration of a Rule from this Firewall.
WithSelector string
name string
(string) Name of the Firewall.
id number
(int) Unique ID of the Firewall.
labels {[key: string]: any}
(map) User-defined labels (key-value pairs)
mostRecent boolean
rules GetFirewallRule[]
(string) Configuration of a Rule from this Firewall.
withSelector string
name str
(string) Name of the Firewall.
id int
(int) Unique ID of the Firewall.
labels Mapping[str, Any]
(map) User-defined labels (key-value pairs)
most_recent bool
rules Sequence[GetFirewallRule]
(string) Configuration of a Rule from this Firewall.
with_selector str

Supporting Types

GetFirewallRule

Direction string
(Required, string) Direction of the Firewall Rule. in
Port string
(Required, string) Port of the Firewall Rule. Required when protocol is tcp or udp
Protocol string
(Required, string) Protocol of the Firewall Rule. tcp, icmp, udp
SourceIps List<string>
(Required, List) List of CIDRs that are allowed within this Firewall Rule
Direction string
(Required, string) Direction of the Firewall Rule. in
Port string
(Required, string) Port of the Firewall Rule. Required when protocol is tcp or udp
Protocol string
(Required, string) Protocol of the Firewall Rule. tcp, icmp, udp
SourceIps []string
(Required, List) List of CIDRs that are allowed within this Firewall Rule
direction string
(Required, string) Direction of the Firewall Rule. in
port string
(Required, string) Port of the Firewall Rule. Required when protocol is tcp or udp
protocol string
(Required, string) Protocol of the Firewall Rule. tcp, icmp, udp
sourceIps string[]
(Required, List) List of CIDRs that are allowed within this Firewall Rule
direction str
(Required, string) Direction of the Firewall Rule. in
port str
(Required, string) Port of the Firewall Rule. Required when protocol is tcp or udp
protocol str
(Required, string) Protocol of the Firewall Rule. tcp, icmp, udp
source_ips Sequence[str]
(Required, List) List of CIDRs that are allowed within this Firewall Rule

Package Details

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