azure logo
Azure Classic v5.32.0, Jan 25 23

azure.cdn.getFrontdoorCustomDomain

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

Example Usage

using System.Collections.Generic;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = Azure.Cdn.GetFrontdoorCustomDomain.Invoke(new()
    {
        Name = azurerm_cdn_frontdoor_custom_domain.Example.Name,
        ProfileName = azurerm_cdn_frontdoor_profile.Example.Name,
        ResourceGroupName = azurerm_cdn_frontdoor_profile.Example.Resource_group_name,
    });

});
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.LookupFrontdoorCustomDomain(ctx, &cdn.LookupFrontdoorCustomDomainArgs{
			Name:              azurerm_cdn_frontdoor_custom_domain.Example.Name,
			ProfileName:       azurerm_cdn_frontdoor_profile.Example.Name,
			ResourceGroupName: azurerm_cdn_frontdoor_profile.Example.Resource_group_name,
		}, 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.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(azurerm_cdn_frontdoor_custom_domain.example().name())
            .profileName(azurerm_cdn_frontdoor_profile.example().name())
            .resourceGroupName(azurerm_cdn_frontdoor_profile.example().resource_group_name())
            .build());

    }
}
import pulumi
import pulumi_azure as azure

example = azure.cdn.get_frontdoor_custom_domain(name=azurerm_cdn_frontdoor_custom_domain["example"]["name"],
    profile_name=azurerm_cdn_frontdoor_profile["example"]["name"],
    resource_group_name=azurerm_cdn_frontdoor_profile["example"]["resource_group_name"])
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";

const example = azure.cdn.getFrontdoorCustomDomain({
    name: azurerm_cdn_frontdoor_custom_domain.example.name,
    profileName: azurerm_cdn_frontdoor_profile.example.name,
    resourceGroupName: azurerm_cdn_frontdoor_profile.example.resource_group_name,
});
variables:
  example:
    fn::invoke:
      Function: azure:cdn:getFrontdoorCustomDomain
      Arguments:
        name: ${azurerm_cdn_frontdoor_custom_domain.example.name}
        profileName: ${azurerm_cdn_frontdoor_profile.example.name}
        resourceGroupName: ${azurerm_cdn_frontdoor_profile.example.resource_group_name}

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>
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]
func LookupFrontdoorCustomDomain(ctx *Context, args *LookupFrontdoorCustomDomainArgs, opts ...InvokeOption) (*LookupFrontdoorCustomDomainResult, error)
func LookupFrontdoorCustomDomainOutput(ctx *Context, args *LookupFrontdoorCustomDomainOutputArgs, opts ...InvokeOption) LookupFrontdoorCustomDomainResultOutput

> 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)
}
public static CompletableFuture<GetFrontdoorCustomDomainResult> getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
  function: azure:cdn/getFrontdoorCustomDomain:getFrontdoorCustomDomain
  arguments:
    # arguments dictionary

The following arguments are supported:

Name string

The name of the Front Door Custom Domain.

ProfileName string

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

ResourceGroupName string

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

Name string

The name of the Front Door Custom Domain.

ProfileName string

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

ResourceGroupName string

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

name String

The name of the Front Door Custom Domain.

profileName String

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

resourceGroupName String

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

name string

The name of the Front Door Custom Domain.

profileName string

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

resourceGroupName string

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

name str

The name of the Front Door Custom Domain.

profile_name str

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

resource_group_name str

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

name String

The name of the Front Door Custom Domain.

profileName String

The name of the Front Door Profile which the Front Door Custom Domain is bound to.

resourceGroupName 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 string

The Resource ID of the Front Door Secret.

CertificateType string

The SSL certificate type.

MinimumTlsVersion string

The TLS protocol version that will be used for Https connections.

CdnFrontdoorSecretId string

The Resource ID of the Front Door Secret.

CertificateType string

The SSL certificate type.

MinimumTlsVersion string

The TLS protocol version that will be used for Https connections.

cdnFrontdoorSecretId String

The Resource ID of the Front Door Secret.

certificateType String

The SSL certificate type.

minimumTlsVersion String

The TLS protocol version that will be used for Https connections.

cdnFrontdoorSecretId string

The Resource ID of the Front Door Secret.

certificateType string

The SSL certificate type.

minimumTlsVersion string

The TLS protocol version that will be used for Https connections.

cdn_frontdoor_secret_id str

The Resource ID of the Front Door Secret.

certificate_type str

The SSL certificate type.

minimum_tls_version str

The TLS protocol version that will be used for Https connections.

cdnFrontdoorSecretId String

The Resource ID of the Front Door Secret.

certificateType String

The SSL certificate type.

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