aviatrix.getAviatrixFirewall
Explore with Pulumi AI
Use this data source to get the Aviatrix stateful firewall for use in other resources.
Example Usage
using System.Collections.Generic;
using Pulumi;
using Aviatrix = Pulumi.Aviatrix;
return await Deployment.RunAsync(() =>
{
var foo = Aviatrix.GetAviatrixFirewall.Invoke(new()
{
GwName = "gw-abcd",
});
});
package main
import (
"github.com/astipkovits/pulumi-aviatrix/sdk/go/aviatrix"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err = aviatrix.LookupAviatrixFirewall(ctx, &GetAviatrixFirewallArgs{
GwName: "gw-abcd",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.aviatrix.AviatrixFunctions;
import com.pulumi.aviatrix.inputs.GetAviatrixFirewallArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var foo = AviatrixFunctions.getAviatrixFirewall(GetAviatrixFirewallArgs.builder()
.gwName("gw-abcd")
.build());
}
}
import pulumi
import pulumi_aviatrix as aviatrix
foo = aviatrix.get_aviatrix_firewall(gw_name="gw-abcd")
import * as pulumi from "@pulumi/pulumi";
import * as aviatrix from "@pulumi/aviatrix";
// Aviatrix Firewall Data Source
const foo = pulumi.output(aviatrix.getAviatrixFirewall({
gwName: "gw-abcd",
}));
variables:
foo:
fn::invoke:
Function: aviatrix:getAviatrixFirewall
Arguments:
gwName: gw-abcd
Using getAviatrixFirewall
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 getAviatrixFirewall(args: GetAviatrixFirewallArgs, opts?: InvokeOptions): Promise<GetAviatrixFirewallResult>
function getAviatrixFirewallOutput(args: GetAviatrixFirewallOutputArgs, opts?: InvokeOptions): Output<GetAviatrixFirewallResult>
def get_aviatrix_firewall(gw_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetAviatrixFirewallResult
def get_aviatrix_firewall_output(gw_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetAviatrixFirewallResult]
func LookupAviatrixFirewall(ctx *Context, args *LookupAviatrixFirewallArgs, opts ...InvokeOption) (*LookupAviatrixFirewallResult, error)
func LookupAviatrixFirewallOutput(ctx *Context, args *LookupAviatrixFirewallOutputArgs, opts ...InvokeOption) LookupAviatrixFirewallResultOutput
> Note: This function is named LookupAviatrixFirewall
in the Go SDK.
public static class GetAviatrixFirewall
{
public static Task<GetAviatrixFirewallResult> InvokeAsync(GetAviatrixFirewallArgs args, InvokeOptions? opts = null)
public static Output<GetAviatrixFirewallResult> Invoke(GetAviatrixFirewallInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetAviatrixFirewallResult> getAviatrixFirewall(GetAviatrixFirewallArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: aviatrix:index/getAviatrixFirewall:getAviatrixFirewall
arguments:
# arguments dictionary
The following arguments are supported:
- Gw
Name string Name of the gateway associated with the firewall.
- Gw
Name string Name of the gateway associated with the firewall.
- gw
Name String Name of the gateway associated with the firewall.
- gw
Name string Name of the gateway associated with the firewall.
- gw_
name str Name of the gateway associated with the firewall.
- gw
Name String Name of the gateway associated with the firewall.
getAviatrixFirewall Result
The following output properties are available:
- Base
Log boolEnabled Indicates whether logging is enabled or not.
- Base
Policy string The firewall's base policy.
- Gw
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Policies
List<Get
Aviatrix Firewall Policy> List of policies associated with the firewall.
- Base
Log boolEnabled Indicates whether logging is enabled or not.
- Base
Policy string The firewall's base policy.
- Gw
Name string - Id string
The provider-assigned unique ID for this managed resource.
- Policies
[]Get
Aviatrix Firewall Policy Type List of policies associated with the firewall.
- base
Log BooleanEnabled Indicates whether logging is enabled or not.
- base
Policy String The firewall's base policy.
- gw
Name String - id String
The provider-assigned unique ID for this managed resource.
- policies
List<Get
Aviatrix Firewall Policy> List of policies associated with the firewall.
- base
Log booleanEnabled Indicates whether logging is enabled or not.
- base
Policy string The firewall's base policy.
- gw
Name string - id string
The provider-assigned unique ID for this managed resource.
- policies
Get
Aviatrix Firewall Policy[] List of policies associated with the firewall.
- base_
log_ boolenabled Indicates whether logging is enabled or not.
- base_
policy str The firewall's base policy.
- gw_
name str - id str
The provider-assigned unique ID for this managed resource.
- policies
Sequence[Get
Aviatrix Firewall Policy] List of policies associated with the firewall.
- base
Log BooleanEnabled Indicates whether logging is enabled or not.
- base
Policy String The firewall's base policy.
- gw
Name String - id String
The provider-assigned unique ID for this managed resource.
- policies List<Property Map>
List of policies associated with the firewall.
Supporting Types
GetAviatrixFirewallPolicy
- Action string
- Description string
- Dst
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- Log
Enabled bool Indicates whether logging is enabled or not.
description
- Policy description.
- Port string
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- Protocol string
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- Src
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- Action string
- Description string
- Dst
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- Log
Enabled bool Indicates whether logging is enabled or not.
description
- Policy description.
- Port string
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- Protocol string
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- Src
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- action String
- description String
- dst
Ip String CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- log
Enabled Boolean Indicates whether logging is enabled or not.
description
- Policy description.
- port String
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- protocol String
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- src
Ip String CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- action string
- description string
- dst
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- log
Enabled boolean Indicates whether logging is enabled or not.
description
- Policy description.
- port string
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- protocol string
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- src
Ip string CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- action str
- description str
- dst_
ip str CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- log_
enabled bool Indicates whether logging is enabled or not.
description
- Policy description.
- port str
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- protocol str
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- src_
ip str CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- action String
- description String
- dst
Ip String CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
- log
Enabled Boolean Indicates whether logging is enabled or not.
description
- Policy description.
- port String
A single port or a range of port numbers.
action
-allow
,deny
orforce-drop
(allow immediate packet dropping on established sessions).
- protocol String
all
,tcp
,udp
,icmp
,sctp
,rdp
ordccp
.- src
Ip String CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
Package Details
- Repository
- aviatrix astipkovits/pulumi-aviatrix
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
aviatrix
Terraform Provider.