1. Packages
  2. Azure Classic
  3. API Docs
  4. cdn
  5. getFrontdoorSecret

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.cdn.getFrontdoorSecret

Explore with Pulumi AI

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:cdn:getFrontdoorSecret
      arguments:
        name: example-secret
        profileName: example-profile
        resourceGroupName: example-resources
Copy

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>
Copy
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]
Copy
func LookupFrontdoorSecret(ctx *Context, args *LookupFrontdoorSecretArgs, opts ...InvokeOption) (*LookupFrontdoorSecretResult, error)
func LookupFrontdoorSecretOutput(ctx *Context, args *LookupFrontdoorSecretOutputArgs, opts ...InvokeOption) LookupFrontdoorSecretResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetFrontdoorSecretResult> getFrontdoorSecret(GetFrontdoorSecretArgs args, InvokeOptions options)
public static Output<GetFrontdoorSecretResult> getFrontdoorSecret(GetFrontdoorSecretArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:cdn/getFrontdoorSecret:getFrontdoorSecret
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
Specifies the name of the Front Door Secret.
ProfileName This property is required. string
The name of the Front Door Profile within which the Front Door Secret exists.
ResourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
Name This property is required. string
Specifies the name of the Front Door Secret.
ProfileName This property is required. string
The name of the Front Door Profile within which the Front Door Secret exists.
ResourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
name This property is required. String
Specifies the name of the Front Door Secret.
profileName This property is required. String
The name of the Front Door Profile within which the Front Door Secret exists.
resourceGroupName This property is required. String
The name of the Resource Group where the Front Door Profile exists.
name This property is required. string
Specifies the name of the Front Door Secret.
profileName This property is required. string
The name of the Front Door Profile within which the Front Door Secret exists.
resourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
name This property is required. str
Specifies the name of the Front Door Secret.
profile_name This property is required. str
The name of the Front Door Profile within which the Front Door Secret exists.
resource_group_name This property is required. str
The name of the Resource Group where the Front Door Profile exists.
name This property is required. String
Specifies the name of the Front Door Secret.
profileName This property is required. String
The name of the Front Door Profile within which the Front Door Secret exists.
resourceGroupName This property is required. String
The name of the Resource Group where the Front Door Profile exists.

getFrontdoorSecret Result

The following output properties are available:

CdnFrontdoorProfileId string
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
ProfileName string
ResourceGroupName string
Secrets List<GetFrontdoorSecretSecret>
A secret block as defined below.
CdnFrontdoorProfileId string
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
ProfileName string
ResourceGroupName string
Secrets []GetFrontdoorSecretSecret
A secret block as defined below.
cdnFrontdoorProfileId String
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
profileName String
resourceGroupName String
secrets List<GetFrontdoorSecretSecret>
A secret block as defined below.
cdnFrontdoorProfileId string
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
profileName string
resourceGroupName string
secrets GetFrontdoorSecretSecret[]
A secret block as defined below.
cdn_frontdoor_profile_id str
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_name str
secrets Sequence[GetFrontdoorSecretSecret]
A secret block as defined below.
cdnFrontdoorProfileId String
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
profileName String
resourceGroupName String
secrets List<Property Map>
A secret block as defined below.

Supporting Types

GetFrontdoorSecretSecret

CustomerCertificates This property is required. List<GetFrontdoorSecretSecretCustomerCertificate>
A customer_certificate block as defined below.
CustomerCertificates This property is required. []GetFrontdoorSecretSecretCustomerCertificate
A customer_certificate block as defined below.
customerCertificates This property is required. List<GetFrontdoorSecretSecretCustomerCertificate>
A customer_certificate block as defined below.
customerCertificates This property is required. GetFrontdoorSecretSecretCustomerCertificate[]
A customer_certificate block as defined below.
customer_certificates This property is required. Sequence[GetFrontdoorSecretSecretCustomerCertificate]
A customer_certificate block as defined below.
customerCertificates This property is required. List<Property Map>
A customer_certificate block as defined below.

GetFrontdoorSecretSecretCustomerCertificate

ExpirationDate This property is required. string
The key vault certificate expiration date.
KeyVaultCertificateId This property is required. string
The key vault certificate ID.
SubjectAlternativeNames This property is required. List<string>
One or more subject alternative names contained within the key vault certificate.
ExpirationDate This property is required. string
The key vault certificate expiration date.
KeyVaultCertificateId This property is required. string
The key vault certificate ID.
SubjectAlternativeNames This property is required. []string
One or more subject alternative names contained within the key vault certificate.
expirationDate This property is required. String
The key vault certificate expiration date.
keyVaultCertificateId This property is required. String
The key vault certificate ID.
subjectAlternativeNames This property is required. List<String>
One or more subject alternative names contained within the key vault certificate.
expirationDate This property is required. string
The key vault certificate expiration date.
keyVaultCertificateId This property is required. string
The key vault certificate ID.
subjectAlternativeNames This property is required. string[]
One or more subject alternative names contained within the key vault certificate.
expiration_date This property is required. str
The key vault certificate expiration date.
key_vault_certificate_id This property is required. str
The key vault certificate ID.
subject_alternative_names This property is required. Sequence[str]
One or more subject alternative names contained within the key vault certificate.
expirationDate This property is required. String
The key vault certificate expiration date.
keyVaultCertificateId This property is required. String
The key vault certificate ID.
subjectAlternativeNames This property is required. List<String>
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.

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi