get Firewall
Use this data source to access information about an existing Azure Firewall.
Example Usage
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.network.NetworkFunctions;
import com.pulumi.azure.network.inputs.GetFirewallArgs;
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 example = NetworkFunctions.getFirewall(GetFirewallArgs.builder()
.name("firewall1")
.resourceGroupName("firewall-RG")
.build());
ctx.export("firewallPrivateIp", example.applyValue(getFirewallResult -> getFirewallResult.ipConfigurations()[0].privateIpAddress()));
}
}
Content copied to clipboard
Return
A collection of values returned by getFirewall.
Parameters
argument
A collection of arguments for invoking getFirewall.
Return
A collection of values returned by getFirewall.
See also
Parameters
name
The name of the Azure Firewall.
resource Group Name
The name of the Resource Group in which the Azure Firewall exists.
suspend fun getFirewall(argument: suspend GetFirewallPlainArgsBuilder.() -> Unit): GetFirewallResult
Return
A collection of values returned by getFirewall.
See also
Parameters
argument
Builder for com.pulumi.azure.network.kotlin.inputs.GetFirewallPlainArgs.