Azure Classic

v5.25.0 published on Thursday, Nov 24, 2022 by Pulumi

getFrontdoorFirewallPolicy

Use this data source to access information about an existing Front Door (standard/premium) Firewall Policy.

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Cdn.GetFrontdoorFirewallPolicy.Invoke(new()
    {
        Name = "examplecdnfdwafpolicy",
        ResourceGroupName = azurerm_resource_group.Example.Name,
    });

});
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.LookupFrontdoorFirewallPolicy(ctx, &cdn.LookupFrontdoorFirewallPolicyArgs{
			Name:              "examplecdnfdwafpolicy",
			ResourceGroupName: azurerm_resource_group.Example.Name,
		}, 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.azure.cdn.CdnFunctions;
import com.pulumi.azure.cdn.inputs.GetFrontdoorFirewallPolicyArgs;
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 = CdnFunctions.getFrontdoorFirewallPolicy(GetFrontdoorFirewallPolicyArgs.builder()
            .name("examplecdnfdwafpolicy")
            .resourceGroupName(azurerm_resource_group.example().name())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.cdn.get_frontdoor_firewall_policy(name="examplecdnfdwafpolicy",
    resource_group_name=azurerm_resource_group["example"]["name"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.cdn.getFrontdoorFirewallPolicy({
    name: "examplecdnfdwafpolicy",
    resourceGroupName: azurerm_resource_group.example.name,
});
variables:
  example:
    Fn::Invoke:
      Function: azure:cdn:getFrontdoorFirewallPolicy
      Arguments:
        name: examplecdnfdwafpolicy
        resourceGroupName: ${azurerm_resource_group.example.name}

Using getFrontdoorFirewallPolicy

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 getFrontdoorFirewallPolicy(args: GetFrontdoorFirewallPolicyArgs, opts?: InvokeOptions): Promise<GetFrontdoorFirewallPolicyResult>
function getFrontdoorFirewallPolicyOutput(args: GetFrontdoorFirewallPolicyOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorFirewallPolicyResult>
def get_frontdoor_firewall_policy(name: Optional[str] = None,
                                  resource_group_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetFrontdoorFirewallPolicyResult
def get_frontdoor_firewall_policy_output(name: Optional[pulumi.Input[str]] = None,
                                  resource_group_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetFrontdoorFirewallPolicyResult]
func LookupFrontdoorFirewallPolicy(ctx *Context, args *LookupFrontdoorFirewallPolicyArgs, opts ...InvokeOption) (*LookupFrontdoorFirewallPolicyResult, error)
func LookupFrontdoorFirewallPolicyOutput(ctx *Context, args *LookupFrontdoorFirewallPolicyOutputArgs, opts ...InvokeOption) LookupFrontdoorFirewallPolicyResultOutput

> Note: This function is named LookupFrontdoorFirewallPolicy in the Go SDK.

public static class GetFrontdoorFirewallPolicy 
{
    public static Task<GetFrontdoorFirewallPolicyResult> InvokeAsync(GetFrontdoorFirewallPolicyArgs args, InvokeOptions? opts = null)
    public static Output<GetFrontdoorFirewallPolicyResult> Invoke(GetFrontdoorFirewallPolicyInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFrontdoorFirewallPolicyResult> getFrontdoorFirewallPolicy(GetFrontdoorFirewallPolicyArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure:cdn/getFrontdoorFirewallPolicy:getFrontdoorFirewallPolicy
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

The name of the Front Door Firewall Policy.

ResourceGroupName string

The name of the resource group.

Name string

The name of the Front Door Firewall Policy.

ResourceGroupName string

The name of the resource group.

name String

The name of the Front Door Firewall Policy.

resourceGroupName String

The name of the resource group.

name string

The name of the Front Door Firewall Policy.

resourceGroupName string

The name of the resource group.

name str

The name of the Front Door Firewall Policy.

resource_group_name str

The name of the resource group.

name String

The name of the Front Door Firewall Policy.

resourceGroupName String

The name of the resource group.

getFrontdoorFirewallPolicy Result

The following output properties are available:

Enabled bool

The enabled state of the Front Door Firewall Policy.

FrontendEndpointIds List<string>

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

Id string

The provider-assigned unique ID for this managed resource.

Mode string

The Front Door Firewall Policy mode.

Name string
RedirectUrl string

The redirect URL for the client.

ResourceGroupName string
SkuName string

The sku's pricing tier for this Front Door Firewall Policy.

Enabled bool

The enabled state of the Front Door Firewall Policy.

FrontendEndpointIds []string

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

Id string

The provider-assigned unique ID for this managed resource.

Mode string

The Front Door Firewall Policy mode.

Name string
RedirectUrl string

The redirect URL for the client.

ResourceGroupName string
SkuName string

The sku's pricing tier for this Front Door Firewall Policy.

enabled Boolean

The enabled state of the Front Door Firewall Policy.

frontendEndpointIds List<String>

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

id String

The provider-assigned unique ID for this managed resource.

mode String

The Front Door Firewall Policy mode.

name String
redirectUrl String

The redirect URL for the client.

resourceGroupName String
skuName String

The sku's pricing tier for this Front Door Firewall Policy.

enabled boolean

The enabled state of the Front Door Firewall Policy.

frontendEndpointIds string[]

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

id string

The provider-assigned unique ID for this managed resource.

mode string

The Front Door Firewall Policy mode.

name string
redirectUrl string

The redirect URL for the client.

resourceGroupName string
skuName string

The sku's pricing tier for this Front Door Firewall Policy.

enabled bool

The enabled state of the Front Door Firewall Policy.

frontend_endpoint_ids Sequence[str]

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

id str

The provider-assigned unique ID for this managed resource.

mode str

The Front Door Firewall Policy mode.

name str
redirect_url str

The redirect URL for the client.

resource_group_name str
sku_name str

The sku's pricing tier for this Front Door Firewall Policy.

enabled Boolean

The enabled state of the Front Door Firewall Policy.

frontendEndpointIds List<String>

The Front Door Profiles frontend endpoints associated with this Front Door Firewall Policy.

id String

The provider-assigned unique ID for this managed resource.

mode String

The Front Door Firewall Policy mode.

name String
redirectUrl String

The redirect URL for the client.

resourceGroupName String
skuName String

The sku's pricing tier for this Front Door Firewall Policy.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.