get Frontdoor Custom Domain
suspend fun getFrontdoorCustomDomain(argument: GetFrontdoorCustomDomainPlainArgs): GetFrontdoorCustomDomainResult
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,
});
Content copied to clipboard
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"])
Content copied to clipboard
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,
});
});
Content copied to clipboard
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
})
}
Content copied to clipboard
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());
}
}
Content copied to clipboard
variables:
example:
fn::invoke:
function: azure:cdn:getFrontdoorCustomDomain
arguments:
name: ${exampleAzurermCdnFrontdoorCustomDomain.name}
profileName: ${exampleAzurermCdnFrontdoorProfile.name}
resourceGroupName: ${exampleAzurermCdnFrontdoorProfile.resourceGroupName}
Content copied to clipboard
Return
A collection of values returned by getFrontdoorCustomDomain.
Parameters
argument
A collection of arguments for invoking getFrontdoorCustomDomain.
suspend fun getFrontdoorCustomDomain(name: String, profileName: String, resourceGroupName: String): GetFrontdoorCustomDomainResult
Return
A collection of values returned by getFrontdoorCustomDomain.
Parameters
name
The name of the Front Door Custom Domain.
profile Name
The name of the Front Door Profile which the Front Door Custom Domain is bound to.
resource Group Name
The name of the Resource Group where the Front Door Profile exists.
See also
suspend fun getFrontdoorCustomDomain(argument: suspend GetFrontdoorCustomDomainPlainArgsBuilder.() -> Unit): GetFrontdoorCustomDomainResult
Return
A collection of values returned by getFrontdoorCustomDomain.
Parameters
argument
Builder for com.pulumi.azure.cdn.kotlin.inputs.GetFrontdoorCustomDomainPlainArgs.