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

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
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",
}));
Copy
import pulumi
import pulumi_aviatrix as aviatrix

foo = aviatrix.get_aviatrix_firewall(gw_name="gw-abcd")
Copy
variables:
  foo:
    fn::invoke:
      Function: aviatrix:getAviatrixFirewall
      Arguments:
        gwName: gw-abcd
Copy

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>
Copy
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]
Copy
func LookupAviatrixFirewall(ctx *Context, args *LookupAviatrixFirewallArgs, opts ...InvokeOption) (*LookupAviatrixFirewallResult, error)
func LookupAviatrixFirewallOutput(ctx *Context, args *LookupAviatrixFirewallOutputArgs, opts ...InvokeOption) LookupAviatrixFirewallResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetAviatrixFirewallResult> getAviatrixFirewall(GetAviatrixFirewallArgs args, InvokeOptions options)
public static Output<GetAviatrixFirewallResult> getAviatrixFirewall(GetAviatrixFirewallArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: aviatrix:index/getAviatrixFirewall:getAviatrixFirewall
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

GwName This property is required. string
Name of the gateway associated with the firewall.
GwName This property is required. string
Name of the gateway associated with the firewall.
gwName This property is required. String
Name of the gateway associated with the firewall.
gwName This property is required. string
Name of the gateway associated with the firewall.
gw_name This property is required. str
Name of the gateway associated with the firewall.
gwName This property is required. 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 This property is required. string
Description This property is required. string
DstIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
LogEnabled This property is required. bool
Indicates whether logging is enabled or not.

  • description- Policy description.
Port This property is required. string
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
Protocol This property is required. string
all, tcp, udp, icmp, sctp, rdp or dccp.
SrcIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
Action This property is required. string
Description This property is required. string
DstIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
LogEnabled This property is required. bool
Indicates whether logging is enabled or not.

  • description- Policy description.
Port This property is required. string
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
Protocol This property is required. string
all, tcp, udp, icmp, sctp, rdp or dccp.
SrcIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
action This property is required. String
description This property is required. String
dstIp This property is required. String
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
logEnabled This property is required. Boolean
Indicates whether logging is enabled or not.

  • description- Policy description.
port This property is required. String
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
protocol This property is required. String
all, tcp, udp, icmp, sctp, rdp or dccp.
srcIp This property is required. String
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
action This property is required. string
description This property is required. string
dstIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
logEnabled This property is required. boolean
Indicates whether logging is enabled or not.

  • description- Policy description.
port This property is required. string
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
protocol This property is required. string
all, tcp, udp, icmp, sctp, rdp or dccp.
srcIp This property is required. string
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
action This property is required. str
description This property is required. str
dst_ip This property is required. str
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
log_enabled This property is required. bool
Indicates whether logging is enabled or not.

  • description- Policy description.
port This property is required. str
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
protocol This property is required. str
all, tcp, udp, icmp, sctp, rdp or dccp.
src_ip This property is required. str
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
action This property is required. String
description This property is required. String
dstIp This property is required. String
CIDRs separated by a comma or tag names such 'HR' or 'marketing' etc.
logEnabled This property is required. Boolean
Indicates whether logging is enabled or not.

  • description- Policy description.
port This property is required. String
A single port or a range of port numbers.

  • action- allow, deny or force-drop(allow immediate packet dropping on established sessions).
protocol This property is required. String
all, tcp, udp, icmp, sctp, rdp or dccp.
srcIp This property is required. 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.