We recommend using Azure Native.
Azure v6.10.0 published on Tuesday, Nov 19, 2024 by Pulumi
azure.cdn.getFrontdoorCustomDomain
Explore with Pulumi AI
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,
});
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"])
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
})
}
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,
});
});
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());
}
}
variables:
example:
fn::invoke:
Function: azure:cdn:getFrontdoorCustomDomain
Arguments:
name: ${exampleAzurermCdnFrontdoorCustomDomain.name}
profileName: ${exampleAzurermCdnFrontdoorProfile.name}
resourceGroupName: ${exampleAzurermCdnFrontdoorProfile.resourceGroupName}
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.
- Profile
Name string - The name of the Front Door Profile which the Front Door Custom Domain is bound to.
- Resource
Group stringName - The name of the Resource Group where the Front Door Profile exists.
- Name string
- The name of the Front Door Custom Domain.
- Profile
Name string - The name of the Front Door Profile which the Front Door Custom Domain is bound to.
- Resource
Group stringName - The name of the Resource Group where the Front Door Profile exists.
- name String
- The name of the Front Door Custom Domain.
- profile
Name String - The name of the Front Door Profile which the Front Door Custom Domain is bound to.
- resource
Group StringName - The name of the Resource Group where the Front Door Profile exists.
- name string
- The name of the Front Door Custom Domain.
- profile
Name string - The name of the Front Door Profile which the Front Door Custom Domain is bound to.
- resource
Group stringName - 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_ strname - The name of the Resource Group where the Front Door Profile exists.
- name String
- The name of the Front Door Custom Domain.
- profile
Name String - The name of the Front Door Profile which the Front Door Custom Domain is bound to.
- resource
Group StringName - The name of the Resource Group where the Front Door Profile exists.
getFrontdoorCustomDomain Result
The following output properties are available:
- Cdn
Frontdoor stringProfile Id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- Dns
Zone stringId - Expiration
Date string - The date time that the token expires.
- Host
Name string - The host name of the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName - Tls
List<Get
Frontdoor Custom Domain Tl> - A
tls
block as defined below. - Validation
Token string - The challenge used for DNS TXT record or file based validation.
- Cdn
Frontdoor stringProfile Id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- Dns
Zone stringId - Expiration
Date string - The date time that the token expires.
- Host
Name string - The host name of the domain.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Profile
Name string - Resource
Group stringName - Tls
[]Get
Frontdoor Custom Domain Tl - A
tls
block as defined below. - Validation
Token string - The challenge used for DNS TXT record or file based validation.
- cdn
Frontdoor StringProfile Id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dns
Zone StringId - expiration
Date String - The date time that the token expires.
- host
Name String - The host name of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName - tls
List<Get
Frontdoor Custom Domain Tl> - A
tls
block as defined below. - validation
Token String - The challenge used for DNS TXT record or file based validation.
- cdn
Frontdoor stringProfile Id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dns
Zone stringId - expiration
Date string - The date time that the token expires.
- host
Name string - The host name of the domain.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- profile
Name string - resource
Group stringName - tls
Get
Frontdoor Custom Domain Tl[] - A
tls
block as defined below. - validation
Token string - The challenge used for DNS TXT record or file based validation.
- cdn_
frontdoor_ strprofile_ id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dns_
zone_ strid - 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_ strname - tls
Sequence[Get
Frontdoor Custom Domain Tl] - A
tls
block as defined below. - validation_
token str - The challenge used for DNS TXT record or file based validation.
- cdn
Frontdoor StringProfile Id - The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dns
Zone StringId - expiration
Date String - The date time that the token expires.
- host
Name String - The host name of the domain.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profile
Name String - resource
Group StringName - tls List<Property Map>
- A
tls
block as defined below. - validation
Token String - The challenge used for DNS TXT record or file based validation.
Supporting Types
GetFrontdoorCustomDomainTl
- Cdn
Frontdoor stringSecret Id - The Resource ID of the Front Door Secret.
- Certificate
Type string - The SSL certificate type.
- Minimum
Tls stringVersion - The TLS protocol version that will be used for Https connections.
- Cdn
Frontdoor stringSecret Id - The Resource ID of the Front Door Secret.
- Certificate
Type string - The SSL certificate type.
- Minimum
Tls stringVersion - The TLS protocol version that will be used for Https connections.
- cdn
Frontdoor StringSecret Id - The Resource ID of the Front Door Secret.
- certificate
Type String - The SSL certificate type.
- minimum
Tls StringVersion - The TLS protocol version that will be used for Https connections.
- cdn
Frontdoor stringSecret Id - The Resource ID of the Front Door Secret.
- certificate
Type string - The SSL certificate type.
- minimum
Tls stringVersion - The TLS protocol version that will be used for Https connections.
- cdn_
frontdoor_ strsecret_ id - The Resource ID of the Front Door Secret.
- certificate_
type str - The SSL certificate type.
- minimum_
tls_ strversion - The TLS protocol version that will be used for Https connections.
- cdn
Frontdoor StringSecret Id - The Resource ID of the Front Door Secret.
- certificate
Type String - The SSL certificate type.
- minimum
Tls StringVersion - 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.