Hetzner Cloud
getFirewalls
Provides details about multiple Hetzner Cloud Firewall.
Example Usage
using Pulumi;
using HCloud = Pulumi.HCloud;
class MyStack : Stack
{
public MyStack()
{
var sampleFirewall1 = Output.Create(HCloud.GetFirewalls.InvokeAsync(new HCloud.GetFirewallsArgs
{
WithSelector = "key=value",
}));
}
}
package main
import (
"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
opt0 := "key=value"
_, err := hcloud.GetFirewalls(ctx, &GetFirewallsArgs{
WithSelector: &opt0,
}, nil)
if err != nil {
return err
}
return nil
})
}
Coming soon!
import pulumi
import pulumi_hcloud as hcloud
sample_firewall1 = hcloud.get_firewalls(with_selector="key=value")
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";
const sampleFirewall1 = pulumi.output(hcloud.getFirewalls({
withSelector: "key=value",
}));
Coming soon!
Using getFirewalls
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 getFirewalls(args: GetFirewallsArgs, opts?: InvokeOptions): Promise<GetFirewallsResult>
function getFirewallsOutput(args: GetFirewallsOutputArgs, opts?: InvokeOptions): Output<GetFirewallsResult>
def get_firewalls(most_recent: Optional[bool] = None,
with_selector: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFirewallsResult
def get_firewalls_output(most_recent: Optional[pulumi.Input[bool]] = None,
with_selector: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFirewallsResult]
func GetFirewalls(ctx *Context, args *GetFirewallsArgs, opts ...InvokeOption) (*GetFirewallsResult, error)
func GetFirewallsOutput(ctx *Context, args *GetFirewallsOutputArgs, opts ...InvokeOption) GetFirewallsResultOutput
> Note: This function is named GetFirewalls
in the Go SDK.
public static class GetFirewalls
{
public static Task<GetFirewallsResult> InvokeAsync(GetFirewallsArgs args, InvokeOptions? opts = null)
public static Output<GetFirewallsResult> Invoke(GetFirewallsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFirewallsResult> getFirewalls(GetFirewallsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: hcloud:index/getFirewalls:getFirewalls
Arguments:
# Arguments dictionary
The following arguments are supported:
- Most
Recent bool Sorts list by date.
- With
Selector string
- Most
Recent bool Sorts list by date.
- With
Selector string
- most
Recent Boolean Sorts list by date.
- with
Selector String
- most
Recent boolean Sorts list by date.
- with
Selector string
- most_
recent bool Sorts list by date.
- with_
selector str
- most
Recent Boolean Sorts list by date.
- with
Selector String
getFirewalls Result
The following output properties are available:
- Firewalls
List<Pulumi.
HCloud. Outputs. Get Firewalls Firewall> (list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- Id string
The provider-assigned unique ID for this managed resource.
- Most
Recent bool - With
Selector string
- Firewalls
[]Get
Firewalls Firewall (list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- Id string
The provider-assigned unique ID for this managed resource.
- Most
Recent bool - With
Selector string
- firewalls
List
Firewalls Firewall> (list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- id String
The provider-assigned unique ID for this managed resource.
- most
Recent Boolean - with
Selector String
- firewalls
Get
Firewalls Firewall[] (list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- id string
The provider-assigned unique ID for this managed resource.
- most
Recent boolean - with
Selector string
- firewalls
Sequence[Get
Firewalls Firewall] (list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- id str
The provider-assigned unique ID for this managed resource.
- most_
recent bool - with_
selector str
- firewalls
List
(list) List of all matching firewalls. See
data.hcloud_firewall
for schema.- id String
The provider-assigned unique ID for this managed resource.
- most
Recent Boolean - with
Selector String
Supporting Types
GetFirewallsFirewall
- Name string
- Apply
Tos List<Pulumi.HCloud. Inputs. Get Firewalls Firewall Apply To> - Id int
- Labels Dictionary<string, object>
- Rules
List<Pulumi.
HCloud. Inputs. Get Firewalls Firewall Rule>
- Name string
- Apply
Tos []GetFirewalls Firewall Apply To - Id int
- Labels map[string]interface{}
- Rules
[]Get
Firewalls Firewall Rule
- name String
- apply
Tos ListFirewalls Firewall Apply To> - id Integer
- labels
Map
- rules
List
Firewalls Firewall Rule>
- name string
- apply
Tos GetFirewalls Firewall Apply To[] - id number
- labels {[key: string]: any}
- rules
Get
Firewalls Firewall Rule[]
- name str
- apply_
tos Sequence[GetFirewalls Firewall Apply To] - id int
- labels Mapping[str, Any]
- rules
Sequence[Get
Firewalls Firewall Rule]
GetFirewallsFirewallApplyTo
- Label
Selector string - Server int
- Label
Selector string - Server int
- label
Selector String - server Integer
- label
Selector string - server number
- label_
selector str - server int
- label
Selector String - server Number
GetFirewallsFirewallRule
- Direction string
- Description string
- Destination
Ips List<string> - Port string
- Protocol string
- Source
Ips List<string>
- Direction string
- Description string
- Destination
Ips []string - Port string
- Protocol string
- Source
Ips []string
- direction String
- description String
- destination
Ips List - port String
- protocol String
- source
Ips List
- direction string
- description string
- destination
Ips string[] - port string
- protocol string
- source
Ips string[]
- direction str
- description str
- destination_
ips Sequence[str] - port str
- protocol str
- source_
ips Sequence[str]
- direction String
- description String
- destination
Ips List - port String
- protocol String
- source
Ips List
Package Details
- Repository
- https://github.com/pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
hcloud
Terraform Provider.