1. Packages
  2. Aviatrix
  3. API Docs
  4. getAviatrixFirewall
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

aviatrix.getAviatrixFirewall

Explore with Pulumi AI

aviatrix logo
Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix

    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:

    GwName string
    Name of the gateway associated with the firewall.
    GwName string
    Name of the gateway associated with the firewall.
    gwName String
    Name of the gateway associated with the firewall.
    gwName string
    Name of the gateway associated with the firewall.
    gw_name str
    Name of the gateway associated with the firewall.
    gwName String
    Name of the gateway associated with the firewall.

    getAviatrixFirewall Result

    The following output properties are available:

    BaseLogEnabled bool
    Indicates whether logging is enabled or not.
    BasePolicy string
    The firewall's base policy.
    GwName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies List<GetAviatrixFirewallPolicy>
    List of policies associated with the firewall.
    BaseLogEnabled bool
    Indicates whether logging is enabled or not.
    BasePolicy string
    The firewall's base policy.
    GwName string
    Id string
    The provider-assigned unique ID for this managed resource.
    Policies []GetAviatrixFirewallPolicyType
    List of policies associated with the firewall.
    baseLogEnabled Boolean
    Indicates whether logging is enabled or not.
    basePolicy String
    The firewall's base policy.
    gwName String
    id String
    The provider-assigned unique ID for this managed resource.
    policies List<GetAviatrixFirewallPolicy>
    List of policies associated with the firewall.
    baseLogEnabled boolean
    Indicates whether logging is enabled or not.
    basePolicy string
    The firewall's base policy.
    gwName string
    id string
    The provider-assigned unique ID for this managed resource.
    policies GetAviatrixFirewallPolicy[]
    List of policies associated with the firewall.
    base_log_enabled bool
    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[GetAviatrixFirewallPolicy]
    List of policies associated with the firewall.
    baseLogEnabled Boolean
    Indicates whether logging is enabled or not.
    basePolicy String
    The firewall's base policy.
    gwName 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
    DstIp string
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    LogEnabled 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 or force-drop(allow immediate packet dropping on established sessions).
    Protocol string
    all, tcp, udp, icmp, sctp, rdp or dccp.
    SrcIp string
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    Action string
    Description string
    DstIp string
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    LogEnabled 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 or force-drop(allow immediate packet dropping on established sessions).
    Protocol string
    all, tcp, udp, icmp, sctp, rdp or dccp.
    SrcIp string
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    action String
    description String
    dstIp String
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    logEnabled 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 or force-drop(allow immediate packet dropping on established sessions).
    protocol String
    all, tcp, udp, icmp, sctp, rdp or dccp.
    srcIp String
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    action string
    description string
    dstIp string
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    logEnabled 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 or force-drop(allow immediate packet dropping on established sessions).
    protocol string
    all, tcp, udp, icmp, sctp, rdp or dccp.
    srcIp 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 or force-drop(allow immediate packet dropping on established sessions).
    protocol str
    all, tcp, udp, icmp, sctp, rdp or dccp.
    src_ip str
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    action String
    description String
    dstIp String
    CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
    logEnabled 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 or force-drop(allow immediate packet dropping on established sessions).
    protocol String
    all, tcp, udp, icmp, sctp, rdp or dccp.
    srcIp 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.
    aviatrix logo
    Aviatrix v0.0.11 published on Saturday, Jun 17, 2023 by Aviatrix