azure logo
Azure Classic v5.43.0, May 6 23

azure.cdn.getFrontdoorSecret

Explore with Pulumi AI

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

Example Usage

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 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.LookupFrontdoorSecret(ctx, &cdn.LookupFrontdoorSecretArgs{
			Name:              "example-secret",
			ProfileName:       "example-profile",
			ResourceGroupName: "example-resources",
		}, 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.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());

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

ProfileName string

The name of the Front Door Profile within which the Front Door Secret exists.

ResourceGroupName string

The name of the Resource Group where the Front Door Profile exists.

Name string

Specifies the name of the Front Door Secret.

ProfileName string

The name of the Front Door Profile within which the Front Door Secret exists.

ResourceGroupName string

The name of the Resource Group where the Front Door Profile exists.

name String

Specifies the name of the Front Door Secret.

profileName String

The name of the Front Door Profile within which the Front Door Secret exists.

resourceGroupName String

The name of the Resource Group where the Front Door Profile exists.

name string

Specifies the name of the Front Door Secret.

profileName string

The name of the Front Door Profile within which the Front Door Secret exists.

resourceGroupName string

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_name str

The name of the Resource Group where the Front Door Profile exists.

name String

Specifies the name of the Front Door Secret.

profileName String

The name of the Front Door Profile within which the Front Door Secret exists.

resourceGroupName 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 List<GetFrontdoorSecretSecretCustomerCertificate>

A customer_certificate block as defined below.

CustomerCertificates []GetFrontdoorSecretSecretCustomerCertificate

A customer_certificate block as defined below.

customerCertificates List<GetFrontdoorSecretSecretCustomerCertificate>

A customer_certificate block as defined below.

customerCertificates GetFrontdoorSecretSecretCustomerCertificate[]

A customer_certificate block as defined below.

customerCertificates List<Property Map>

A customer_certificate block as defined below.

GetFrontdoorSecretSecretCustomerCertificate

KeyVaultCertificateId string

The key vault certificate ID.

SubjectAlternativeNames List<string>

One or more subject alternative names contained within the key vault certificate.

KeyVaultCertificateId string

The key vault certificate ID.

SubjectAlternativeNames []string

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId String

The key vault certificate ID.

subjectAlternativeNames List<String>

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId string

The key vault certificate ID.

subjectAlternativeNames string[]

One or more subject alternative names contained within the key vault certificate.

key_vault_certificate_id str

The key vault certificate ID.

subject_alternative_names Sequence[str]

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId String

The key vault certificate ID.

subjectAlternativeNames 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.