We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.cdn.getFrontdoorSecret
Explore with Pulumi AI
Use this data source to access information about an existing Front Door (standard/premium) Secret.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.cdn.getFrontdoorSecret({
name: "example-secret",
profileName: "example-profile",
resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.cdn.get_frontdoor_secret(name="example-secret",
profile_name="example-profile",
resource_group_name="example-resources")
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := cdn.LookupFrontdoorSecret(ctx, &cdn.LookupFrontdoorSecretArgs{
Name: "example-secret",
ProfileName: "example-profile",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Cdn.GetFrontdoorSecret.Invoke(new()
{
Name = "example-secret",
ProfileName = "example-profile",
ResourceGroupName = "example-resources",
});
});
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.GetFrontdoorSecretArgs;
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.getFrontdoorSecret(GetFrontdoorSecretArgs.builder()
.name("example-secret")
.profileName("example-profile")
.resourceGroupName("example-resources")
.build());
}
}
variables:
example:
fn::invoke:
Function: azure:cdn:getFrontdoorSecret
Arguments:
name: example-secret
profileName: example-profile
resourceGroupName: example-resources
Using getFrontdoorSecret
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 getFrontdoorSecret(args: GetFrontdoorSecretArgs, opts?: InvokeOptions): Promise<GetFrontdoorSecretResult>
function getFrontdoorSecretOutput(args: GetFrontdoorSecretOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorSecretResult>
def get_frontdoor_secret(name: Optional[str] = None,
profile_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFrontdoorSecretResult
def get_frontdoor_secret_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[GetFrontdoorSecretResult]
func LookupFrontdoorSecret(ctx *Context, args *LookupFrontdoorSecretArgs, opts ...InvokeOption) (*LookupFrontdoorSecretResult, error)
func LookupFrontdoorSecretOutput(ctx *Context, args *LookupFrontdoorSecretOutputArgs, opts ...InvokeOption) LookupFrontdoorSecretResultOutput
> Note: This function is named LookupFrontdoorSecret
in the Go SDK.
public static class GetFrontdoorSecret
{
public static Task<GetFrontdoorSecretResult> InvokeAsync(GetFrontdoorSecretArgs args, InvokeOptions? opts = null)
public static Output<GetFrontdoorSecretResult> Invoke(GetFrontdoorSecretInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetFrontdoorSecretResult> getFrontdoorSecret(GetFrontdoorSecretArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: azure:cdn/getFrontdoorSecret:getFrontdoorSecret
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- Specifies the name of the Front Door Secret.
- Profile
Name string - The name of the Front Door Profile within which the Front Door Secret exists.
- Resource
Group stringName - The name of the Resource Group where the Front Door Profile exists.
- Name string
- Specifies the name of the Front Door Secret.
- Profile
Name string - The name of the Front Door Profile within which the Front Door Secret exists.
- Resource
Group stringName - The name of the Resource Group where the Front Door Profile exists.
- name String
- Specifies the name of the Front Door Secret.
- profile
Name String - The name of the Front Door Profile within which the Front Door Secret exists.
- resource
Group StringName - The name of the Resource Group where the Front Door Profile exists.
- name string
- Specifies the name of the Front Door Secret.
- profile
Name string - The name of the Front Door Profile within which the Front Door Secret exists.
- resource
Group stringName - The name of the Resource Group where the Front Door Profile exists.
- name str
- Specifies the name of the Front Door Secret.
- profile_
name str - The name of the Front Door Profile within which the Front Door Secret exists.
- resource_
group_ strname - The name of the Resource Group where the Front Door Profile exists.
- name String
- Specifies the name of the Front Door Secret.
- profile
Name String - The name of the Front Door Profile within which the Front Door Secret exists.
- resource
Group StringName - The name of the Resource Group where the Front Door Profile exists.
getFrontdoorSecret Result
The following output properties are available:
- Cdn
Frontdoor stringProfile Id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName - Secrets
List<Get
Frontdoor Secret Secret> - A
secret
block as defined below.
- Cdn
Frontdoor stringProfile Id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName - Secrets
[]Get
Frontdoor Secret Secret - A
secret
block as defined below.
- cdn
Frontdoor StringProfile Id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName - secrets
List<Get
Frontdoor Secret Secret> - A
secret
block as defined below.
- cdn
Frontdoor stringProfile Id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- profile
Name string - resource
Group stringName - secrets
Get
Frontdoor Secret Secret[] - A
secret
block as defined below.
- cdn_
frontdoor_ strprofile_ id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- profile_
name str - resource_
group_ strname - secrets
Sequence[Get
Frontdoor Secret Secret] - A
secret
block as defined below.
- cdn
Frontdoor StringProfile Id - Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName - secrets List<Property Map>
- A
secret
block as defined below.
Supporting Types
GetFrontdoorSecretSecret
- Customer
Certificates List<GetFrontdoor Secret Secret Customer Certificate> - A
customer_certificate
block as defined below.
- Customer
Certificates []GetFrontdoor Secret Secret Customer Certificate - A
customer_certificate
block as defined below.
- customer
Certificates List<GetFrontdoor Secret Secret Customer Certificate> - A
customer_certificate
block as defined below.
- customer
Certificates GetFrontdoor Secret Secret Customer Certificate[] - A
customer_certificate
block as defined below.
- customer_
certificates Sequence[GetFrontdoor Secret Secret Customer Certificate] - A
customer_certificate
block as defined below.
- customer
Certificates List<Property Map> - A
customer_certificate
block as defined below.
GetFrontdoorSecretSecretCustomerCertificate
- Expiration
Date string - The key vault certificate expiration date.
- Key
Vault stringCertificate Id - The key vault certificate ID.
- Subject
Alternative List<string>Names - One or more
subject alternative names
contained within the key vault certificate.
- Expiration
Date string - The key vault certificate expiration date.
- Key
Vault stringCertificate Id - The key vault certificate ID.
- Subject
Alternative []stringNames - One or more
subject alternative names
contained within the key vault certificate.
- expiration
Date String - The key vault certificate expiration date.
- key
Vault StringCertificate Id - The key vault certificate ID.
- subject
Alternative List<String>Names - One or more
subject alternative names
contained within the key vault certificate.
- expiration
Date string - The key vault certificate expiration date.
- key
Vault stringCertificate Id - The key vault certificate ID.
- subject
Alternative string[]Names - One or more
subject alternative names
contained within the key vault certificate.
- expiration_
date str - The key vault certificate expiration date.
- key_
vault_ strcertificate_ id - The key vault certificate ID.
- subject_
alternative_ Sequence[str]names - One or more
subject alternative names
contained within the key vault certificate.
- expiration
Date String - The key vault certificate expiration date.
- key
Vault StringCertificate Id - The key vault certificate ID.
- subject
Alternative List<String>Names - One or more
subject alternative names
contained within the key vault certificate.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurerm
Terraform Provider.