Azure Classic
getFrontdoorRuleSet
Gets information about an existing CDN FrontDoor Rule Set.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Azure.Cdn.GetFrontdoorRuleSet.InvokeAsync(new Azure.Cdn.GetFrontdoorRuleSetArgs
{
Name = "existing-rule-set",
ProfileName = "existing-profile",
ResourceGroupName = "existing-resources",
}));
}
}
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.LookupFrontdoorRuleSet(ctx, &cdn.LookupFrontdoorRuleSetArgs{
Name: "existing-rule-set",
ProfileName: "existing-profile",
ResourceGroupName: "existing-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var example = Output.of(CdnFunctions.getFrontdoorRuleSet(GetFrontdoorRuleSetArgs.builder()
.name("existing-rule-set")
.profileName("existing-profile")
.resourceGroupName("existing-resources")
.build()));
}
}
import pulumi
import pulumi_azure as azure
example = azure.cdn.get_frontdoor_rule_set(name="existing-rule-set",
profile_name="existing-profile",
resource_group_name="existing-resources")
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = pulumi.output(azure.cdn.getFrontdoorRuleSet({
name: "existing-rule-set",
profileName: "existing-profile",
resourceGroupName: "existing-resources",
}));
variables:
example:
Fn::Invoke:
Function: azure:cdn:getFrontdoorRuleSet
Arguments:
name: existing-rule-set
profileName: existing-profile
resourceGroupName: existing-resources
Using getFrontdoorRuleSet
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 getFrontdoorRuleSet(args: GetFrontdoorRuleSetArgs, opts?: InvokeOptions): Promise<GetFrontdoorRuleSetResult>
function getFrontdoorRuleSetOutput(args: GetFrontdoorRuleSetOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorRuleSetResult>
def get_frontdoor_rule_set(name: Optional[str] = None,
profile_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFrontdoorRuleSetResult
def get_frontdoor_rule_set_output(name: Optional[pulumi.Input[str]] = None,
profile_name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFrontdoorRuleSetResult]
func LookupFrontdoorRuleSet(ctx *Context, args *LookupFrontdoorRuleSetArgs, opts ...InvokeOption) (*LookupFrontdoorRuleSetResult, error)
func LookupFrontdoorRuleSetOutput(ctx *Context, args *LookupFrontdoorRuleSetOutputArgs, opts ...InvokeOption) LookupFrontdoorRuleSetResultOutput
> Note: This function is named LookupFrontdoorRuleSet
in the Go SDK.
public static class GetFrontdoorRuleSet
{
public static Task<GetFrontdoorRuleSetResult> InvokeAsync(GetFrontdoorRuleSetArgs args, InvokeOptions? opts = null)
public static Output<GetFrontdoorRuleSetResult> Invoke(GetFrontdoorRuleSetInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFrontdoorRuleSetResult> getFrontdoorRuleSet(GetFrontdoorRuleSetArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
Function: azure:cdn/getFrontdoorRuleSet:getFrontdoorRuleSet
Arguments:
# Arguments dictionary
The following arguments are supported:
- Name string
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- Profile
Name string Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- Resource
Group stringName Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
- Name string
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- Profile
Name string Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- Resource
Group stringName Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
- name String
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- profile
Name String Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- resource
Group StringName Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
- name string
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- profile
Name string Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- resource
Group stringName Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
- name str
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- profile_
name str Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- resource_
group_ strname Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
- name String
Specifies the name of the CDN FrontDoor Rule Set to retrieve.
- profile
Name String Specifies the name of the CDN FrontDoor Profile where this CDN FrontDoor Rule Set exists.
- resource
Group StringName Specifies the name of the Resource Group where the CDN FrontDoor Profile exists.
getFrontdoorRuleSet Result
The following output properties are available:
- Cdn
Frontdoor stringProfile Id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName
- Cdn
Frontdoor stringProfile Id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- Id string
The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName
- cdn
Frontdoor StringProfile Id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- id String
The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName
- cdn
Frontdoor stringProfile Id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- id string
The provider-assigned unique ID for this managed resource.
- name string
- profile
Name string - resource
Group stringName
- cdn_
frontdoor_ strprofile_ id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- id str
The provider-assigned unique ID for this managed resource.
- name str
- profile_
name str - resource_
group_ strname
- cdn
Frontdoor StringProfile Id The ID of the CDN FrontDoor Profile within which this CDN FrontDoor Rule Set exists.
- id String
The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.