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

We recommend using Azure Native.

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

azure.cdn.getFrontdoorCustomDomain

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) Custom Domain.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.cdn.getFrontdoorCustomDomain({
    name: exampleAzurermCdnFrontdoorCustomDomain.name,
    profileName: exampleAzurermCdnFrontdoorProfile.name,
    resourceGroupName: exampleAzurermCdnFrontdoorProfile.resourceGroupName,
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.cdn.get_frontdoor_custom_domain(name=example_azurerm_cdn_frontdoor_custom_domain["name"],
    profile_name=example_azurerm_cdn_frontdoor_profile["name"],
    resource_group_name=example_azurerm_cdn_frontdoor_profile["resourceGroupName"])
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.LookupFrontdoorCustomDomain(ctx, &cdn.LookupFrontdoorCustomDomainArgs{
			Name:              exampleAzurermCdnFrontdoorCustomDomain.Name,
			ProfileName:       exampleAzurermCdnFrontdoorProfile.Name,
			ResourceGroupName: exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
		}, 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.GetFrontdoorCustomDomain.Invoke(new()
    {
        Name = exampleAzurermCdnFrontdoorCustomDomain.Name,
        ProfileName = exampleAzurermCdnFrontdoorProfile.Name,
        ResourceGroupName = exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
    });

});
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.GetFrontdoorCustomDomainArgs;
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.getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs.builder()
            .name(exampleAzurermCdnFrontdoorCustomDomain.name())
            .profileName(exampleAzurermCdnFrontdoorProfile.name())
            .resourceGroupName(exampleAzurermCdnFrontdoorProfile.resourceGroupName())
            .build());

    }
}
Copy
variables:
  example:
    fn::invoke:
      function: azure:cdn:getFrontdoorCustomDomain
      arguments:
        name: ${exampleAzurermCdnFrontdoorCustomDomain.name}
        profileName: ${exampleAzurermCdnFrontdoorProfile.name}
        resourceGroupName: ${exampleAzurermCdnFrontdoorProfile.resourceGroupName}
Copy

Using getFrontdoorCustomDomain

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 getFrontdoorCustomDomain(args: GetFrontdoorCustomDomainArgs, opts?: InvokeOptions): Promise<GetFrontdoorCustomDomainResult>
function getFrontdoorCustomDomainOutput(args: GetFrontdoorCustomDomainOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorCustomDomainResult>
Copy
def get_frontdoor_custom_domain(name: Optional[str] = None,
                                profile_name: Optional[str] = None,
                                resource_group_name: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetFrontdoorCustomDomainResult
def get_frontdoor_custom_domain_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[GetFrontdoorCustomDomainResult]
Copy
func LookupFrontdoorCustomDomain(ctx *Context, args *LookupFrontdoorCustomDomainArgs, opts ...InvokeOption) (*LookupFrontdoorCustomDomainResult, error)
func LookupFrontdoorCustomDomainOutput(ctx *Context, args *LookupFrontdoorCustomDomainOutputArgs, opts ...InvokeOption) LookupFrontdoorCustomDomainResultOutput
Copy

> Note: This function is named LookupFrontdoorCustomDomain in the Go SDK.

public static class GetFrontdoorCustomDomain 
{
    public static Task<GetFrontdoorCustomDomainResult> InvokeAsync(GetFrontdoorCustomDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetFrontdoorCustomDomainResult> Invoke(GetFrontdoorCustomDomainInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetFrontdoorCustomDomainResult> getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs args, InvokeOptions options)
public static Output<GetFrontdoorCustomDomainResult> getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure:cdn/getFrontdoorCustomDomain:getFrontdoorCustomDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The name of the Front Door Custom Domain.
ProfileName This property is required. string
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
ResourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
Name This property is required. string
The name of the Front Door Custom Domain.
ProfileName This property is required. string
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
ResourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
name This property is required. String
The name of the Front Door Custom Domain.
profileName This property is required. String
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
resourceGroupName This property is required. String
The name of the Resource Group where the Front Door Profile exists.
name This property is required. string
The name of the Front Door Custom Domain.
profileName This property is required. string
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
resourceGroupName This property is required. string
The name of the Resource Group where the Front Door Profile exists.
name This property is required. str
The name of the Front Door Custom Domain.
profile_name This property is required. str
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
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
The name of the Front Door Custom Domain.
profileName This property is required. String
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
resourceGroupName This property is required. String
The name of the Resource Group where the Front Door Profile exists.

getFrontdoorCustomDomain Result

The following output properties are available:

CdnFrontdoorProfileId string
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
DnsZoneId string
ExpirationDate string
The date time that the token expires.
HostName string
The host name of the domain.
Id string
The provider-assigned unique ID for this managed resource.
Name string
ProfileName string
ResourceGroupName string
Tls List<GetFrontdoorCustomDomainTl>
A tls block as defined below.
ValidationToken string
The challenge used for DNS TXT record or file based validation.
CdnFrontdoorProfileId string
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
DnsZoneId string
ExpirationDate string
The date time that the token expires.
HostName string
The host name of the domain.
Id string
The provider-assigned unique ID for this managed resource.
Name string
ProfileName string
ResourceGroupName string
Tls []GetFrontdoorCustomDomainTl
A tls block as defined below.
ValidationToken string
The challenge used for DNS TXT record or file based validation.
cdnFrontdoorProfileId String
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
dnsZoneId String
expirationDate String
The date time that the token expires.
hostName String
The host name of the domain.
id String
The provider-assigned unique ID for this managed resource.
name String
profileName String
resourceGroupName String
tls List<GetFrontdoorCustomDomainTl>
A tls block as defined below.
validationToken String
The challenge used for DNS TXT record or file based validation.
cdnFrontdoorProfileId string
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
dnsZoneId string
expirationDate string
The date time that the token expires.
hostName string
The host name of the domain.
id string
The provider-assigned unique ID for this managed resource.
name string
profileName string
resourceGroupName string
tls GetFrontdoorCustomDomainTl[]
A tls block as defined below.
validationToken string
The challenge used for DNS TXT record or file based validation.
cdn_frontdoor_profile_id str
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
dns_zone_id str
expiration_date str
The date time that the token expires.
host_name str
The host name of the domain.
id str
The provider-assigned unique ID for this managed resource.
name str
profile_name str
resource_group_name str
tls Sequence[GetFrontdoorCustomDomainTl]
A tls block as defined below.
validation_token str
The challenge used for DNS TXT record or file based validation.
cdnFrontdoorProfileId String
The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
dnsZoneId String
expirationDate String
The date time that the token expires.
hostName String
The host name of the domain.
id String
The provider-assigned unique ID for this managed resource.
name String
profileName String
resourceGroupName String
tls List<Property Map>
A tls block as defined below.
validationToken String
The challenge used for DNS TXT record or file based validation.

Supporting Types

GetFrontdoorCustomDomainTl

CdnFrontdoorSecretId This property is required. string
The Resource ID of the Front Door Secret.
CertificateType This property is required. string
The SSL certificate type.
MinimumTlsVersion This property is required. string
The TLS protocol version that will be used for Https connections.
CdnFrontdoorSecretId This property is required. string
The Resource ID of the Front Door Secret.
CertificateType This property is required. string
The SSL certificate type.
MinimumTlsVersion This property is required. string
The TLS protocol version that will be used for Https connections.
cdnFrontdoorSecretId This property is required. String
The Resource ID of the Front Door Secret.
certificateType This property is required. String
The SSL certificate type.
minimumTlsVersion This property is required. String
The TLS protocol version that will be used for Https connections.
cdnFrontdoorSecretId This property is required. string
The Resource ID of the Front Door Secret.
certificateType This property is required. string
The SSL certificate type.
minimumTlsVersion This property is required. string
The TLS protocol version that will be used for Https connections.
cdn_frontdoor_secret_id This property is required. str
The Resource ID of the Front Door Secret.
certificate_type This property is required. str
The SSL certificate type.
minimum_tls_version This property is required. str
The TLS protocol version that will be used for Https connections.
cdnFrontdoorSecretId This property is required. String
The Resource ID of the Front Door Secret.
certificateType This property is required. String
The SSL certificate type.
minimumTlsVersion This property is required. String
The TLS protocol version that will be used for Https connections.

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