GetFirewall
Use this data source to access information about an existing Azure Firewall.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Network.GetFirewall.InvokeAsync(new Azure.Network.GetFirewallArgs
{
Name = "firewall1",
ResourceGroupName = "firewall-RG",
}));
this.FirewallPrivateIp = example.Apply(example => example.IpConfigurations[0].PrivateIpAddress);
}
[Output("firewallPrivateIp")]
public Output<string> FirewallPrivateIp { get; set; }
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/network"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := network.LookupFirewall(ctx, &network.LookupFirewallArgs{
Name: "firewall1",
ResourceGroupName: "firewall-RG",
}, nil)
if err != nil {
return err
}
ctx.Export("firewallPrivateIp", example.IpConfigurations[0].PrivateIpAddress)
return nil
})
}import pulumi
import pulumi_azure as azure
example = azure.network.get_firewall(name="firewall1",
resource_group_name="firewall-RG")
pulumi.export("firewallPrivateIp", example.ip_configurations[0]["private_ip_address"])import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.network.getFirewall({
name: "firewall1",
resourceGroupName: "firewall-RG",
});
export const firewallPrivateIp = example.then(example => example.ipConfigurations[0].privateIpAddress);Using GetFirewall
function getFirewall(args: GetFirewallArgs, opts?: InvokeOptions): Promise<GetFirewallResult>function get_firewall(name=None, resource_group_name=None, opts=None)func LookupFirewall(ctx *Context, args *LookupFirewallArgs, opts ...InvokeOption) (*LookupFirewallResult, error)Note: This function is named
LookupFirewallin the Go SDK.
public static class GetFirewall {
public static Task<GetFirewallResult> InvokeAsync(GetFirewallArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Name string
The name of the Azure Firewall.
- Resource
Group stringName The name of the Resource Group in which the Azure Firewall exists.
- Name string
The name of the Azure Firewall.
- Resource
Group stringName The name of the Resource Group in which the Azure Firewall exists.
- name string
The name of the Azure Firewall.
- resource
Group stringName The name of the Resource Group in which the Azure Firewall exists.
- name str
The name of the Azure Firewall.
- resource_
group_ strname The name of the Resource Group in which the Azure Firewall exists.
GetFirewall Result
The following output properties are available:
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Configurations List<GetFirewall Ip Configuration> A
ip_configurationblock as defined below.- Location string
- Name string
- Resource
Group stringName - Dictionary<string, string>
- Id string
The provider-assigned unique ID for this managed resource.
- Ip
Configurations []GetFirewall Ip Configuration A
ip_configurationblock as defined below.- Location string
- Name string
- Resource
Group stringName - map[string]string
- id string
The provider-assigned unique ID for this managed resource.
- ip
Configurations GetFirewall Ip Configuration[] A
ip_configurationblock as defined below.- location string
- name string
- resource
Group stringName - {[key: string]: string}
- id str
The provider-assigned unique ID for this managed resource.
- ip_
configurations List[GetFirewall Ip Configuration] A
ip_configurationblock as defined below.- location str
- name str
- resource_
group_ strname - Dict[str, str]
Supporting Types
GetFirewallIpConfiguration
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Internal
Public stringIp Address Id - Name string
The name of the Azure Firewall.
- Private
Ip stringAddress The private IP address of the Azure Firewall.
- Public
Ip stringAddress Id - Subnet
Id string The Resource ID of the subnet where the Azure Firewall is deployed.
- Internal
Public stringIp Address Id - Name string
The name of the Azure Firewall.
- Private
Ip stringAddress The private IP address of the Azure Firewall.
- Public
Ip stringAddress Id - Subnet
Id string The Resource ID of the subnet where the Azure Firewall is deployed.
- internal
Public stringIp Address Id - name string
The name of the Azure Firewall.
- private
Ip stringAddress The private IP address of the Azure Firewall.
- public
Ip stringAddress Id - subnet
Id string The Resource ID of the subnet where the Azure Firewall is deployed.
- internal
Public strIp Address Id - name str
The name of the Azure Firewall.
- private_
ip_ straddress The private IP address of the Azure Firewall.
- public_
ip_ straddress_ id - subnet_
id str The Resource ID of the subnet where the Azure Firewall is deployed.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.