azure.cdn.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.
- Resource
Group stringName The name of the resource group.
- Name string
The name of the Front Door Firewall Policy.
- Resource
Group stringName The name of the resource group.
- name String
The name of the Front Door Firewall Policy.
- resource
Group StringName The name of the resource group.
- name string
The name of the Front Door Firewall Policy.
- resource
Group stringName The name of the resource group.
- name str
The name of the Front Door Firewall Policy.
- resource_
group_ strname The name of the resource group.
- name String
The name of the Front Door Firewall Policy.
- resource
Group StringName 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.
- Frontend
Endpoint List<string>Ids 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
- Redirect
Url string The redirect URL for the client.
- Resource
Group stringName - Sku
Name 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 []stringIds 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
- Redirect
Url string The redirect URL for the client.
- Resource
Group stringName - Sku
Name string The sku's pricing tier for this Front Door Firewall Policy.
- enabled Boolean
The enabled state of the Front Door Firewall Policy.
- frontend
Endpoint List<String>Ids 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
- redirect
Url String The redirect URL for the client.
- resource
Group StringName - sku
Name String The sku's pricing tier for this Front Door Firewall Policy.
- enabled boolean
The enabled state of the Front Door Firewall Policy.
- frontend
Endpoint string[]Ids 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
- redirect
Url string The redirect URL for the client.
- resource
Group stringName - sku
Name 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_ Sequence[str]ids 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_ strname - 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.
- frontend
Endpoint List<String>Ids 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
- redirect
Url String The redirect URL for the client.
- resource
Group StringName - sku
Name String The sku's pricing tier for this Front Door Firewall Policy.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.