1. Packages
  2. Azure Native v2
  3. API Docs
  4. cdn
  5. getCustomDomain
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.cdn.getCustomDomain

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

Gets an existing custom domain within an endpoint. Azure REST API version: 2023-05-01.

Other available API versions: 2023-07-01-preview, 2024-02-01, 2024-05-01-preview, 2024-06-01-preview, 2024-09-01.

Using getCustomDomain

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 getCustomDomain(args: GetCustomDomainArgs, opts?: InvokeOptions): Promise<GetCustomDomainResult>
function getCustomDomainOutput(args: GetCustomDomainOutputArgs, opts?: InvokeOptions): Output<GetCustomDomainResult>
Copy
def get_custom_domain(custom_domain_name: Optional[str] = None,
                      endpoint_name: Optional[str] = None,
                      profile_name: Optional[str] = None,
                      resource_group_name: Optional[str] = None,
                      opts: Optional[InvokeOptions] = None) -> GetCustomDomainResult
def get_custom_domain_output(custom_domain_name: Optional[pulumi.Input[str]] = None,
                      endpoint_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[GetCustomDomainResult]
Copy
func LookupCustomDomain(ctx *Context, args *LookupCustomDomainArgs, opts ...InvokeOption) (*LookupCustomDomainResult, error)
func LookupCustomDomainOutput(ctx *Context, args *LookupCustomDomainOutputArgs, opts ...InvokeOption) LookupCustomDomainResultOutput
Copy

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

public static class GetCustomDomain 
{
    public static Task<GetCustomDomainResult> InvokeAsync(GetCustomDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetCustomDomainResult> Invoke(GetCustomDomainInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetCustomDomainResult> getCustomDomain(GetCustomDomainArgs args, InvokeOptions options)
public static Output<GetCustomDomainResult> getCustomDomain(GetCustomDomainArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:cdn:getCustomDomain
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

CustomDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the custom domain within an endpoint.
EndpointName
This property is required.
Changes to this property will trigger replacement.
string
Name of the endpoint under the profile which is unique globally.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the CDN profile which is unique within the resource group.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
CustomDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the custom domain within an endpoint.
EndpointName
This property is required.
Changes to this property will trigger replacement.
string
Name of the endpoint under the profile which is unique globally.
ProfileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the CDN profile which is unique within the resource group.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
customDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the custom domain within an endpoint.
endpointName
This property is required.
Changes to this property will trigger replacement.
String
Name of the endpoint under the profile which is unique globally.
profileName
This property is required.
Changes to this property will trigger replacement.
String
Name of the CDN profile which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.
customDomainName
This property is required.
Changes to this property will trigger replacement.
string
Name of the custom domain within an endpoint.
endpointName
This property is required.
Changes to this property will trigger replacement.
string
Name of the endpoint under the profile which is unique globally.
profileName
This property is required.
Changes to this property will trigger replacement.
string
Name of the CDN profile which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
Name of the Resource group within the Azure subscription.
custom_domain_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the custom domain within an endpoint.
endpoint_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the endpoint under the profile which is unique globally.
profile_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the CDN profile which is unique within the resource group.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
Name of the Resource group within the Azure subscription.
customDomainName
This property is required.
Changes to this property will trigger replacement.
String
Name of the custom domain within an endpoint.
endpointName
This property is required.
Changes to this property will trigger replacement.
String
Name of the endpoint under the profile which is unique globally.
profileName
This property is required.
Changes to this property will trigger replacement.
String
Name of the CDN profile which is unique within the resource group.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
Name of the Resource group within the Azure subscription.

getCustomDomain Result

The following output properties are available:

CustomHttpsProvisioningState string
Provisioning status of the custom domain.
CustomHttpsProvisioningSubstate string
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
HostName string
The host name of the custom domain. Must be a domain name.
Id string
Resource ID.
Name string
Resource name.
ProvisioningState string
Provisioning status of Custom Https of the custom domain.
ResourceState string
Resource status of the custom domain.
SystemData Pulumi.AzureNative.Cdn.Outputs.SystemDataResponse
Read only system data
Type string
Resource type.
CustomHttpsParameters Pulumi.AzureNative.Cdn.Outputs.CdnManagedHttpsParametersResponse | Pulumi.AzureNative.Cdn.Outputs.UserManagedHttpsParametersResponse
Certificate parameters for securing custom HTTPS
ValidationData string
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
CustomHttpsProvisioningState string
Provisioning status of the custom domain.
CustomHttpsProvisioningSubstate string
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
HostName string
The host name of the custom domain. Must be a domain name.
Id string
Resource ID.
Name string
Resource name.
ProvisioningState string
Provisioning status of Custom Https of the custom domain.
ResourceState string
Resource status of the custom domain.
SystemData SystemDataResponse
Read only system data
Type string
Resource type.
CustomHttpsParameters CdnManagedHttpsParametersResponse | UserManagedHttpsParametersResponse
Certificate parameters for securing custom HTTPS
ValidationData string
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
customHttpsProvisioningState String
Provisioning status of the custom domain.
customHttpsProvisioningSubstate String
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
hostName String
The host name of the custom domain. Must be a domain name.
id String
Resource ID.
name String
Resource name.
provisioningState String
Provisioning status of Custom Https of the custom domain.
resourceState String
Resource status of the custom domain.
systemData SystemDataResponse
Read only system data
type String
Resource type.
customHttpsParameters CdnManagedHttpsParametersResponse | UserManagedHttpsParametersResponse
Certificate parameters for securing custom HTTPS
validationData String
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
customHttpsProvisioningState string
Provisioning status of the custom domain.
customHttpsProvisioningSubstate string
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
hostName string
The host name of the custom domain. Must be a domain name.
id string
Resource ID.
name string
Resource name.
provisioningState string
Provisioning status of Custom Https of the custom domain.
resourceState string
Resource status of the custom domain.
systemData SystemDataResponse
Read only system data
type string
Resource type.
customHttpsParameters CdnManagedHttpsParametersResponse | UserManagedHttpsParametersResponse
Certificate parameters for securing custom HTTPS
validationData string
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
custom_https_provisioning_state str
Provisioning status of the custom domain.
custom_https_provisioning_substate str
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
host_name str
The host name of the custom domain. Must be a domain name.
id str
Resource ID.
name str
Resource name.
provisioning_state str
Provisioning status of Custom Https of the custom domain.
resource_state str
Resource status of the custom domain.
system_data SystemDataResponse
Read only system data
type str
Resource type.
custom_https_parameters CdnManagedHttpsParametersResponse | UserManagedHttpsParametersResponse
Certificate parameters for securing custom HTTPS
validation_data str
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.
customHttpsProvisioningState String
Provisioning status of the custom domain.
customHttpsProvisioningSubstate String
Provisioning substate shows the progress of custom HTTPS enabling/disabling process step by step.
hostName String
The host name of the custom domain. Must be a domain name.
id String
Resource ID.
name String
Resource name.
provisioningState String
Provisioning status of Custom Https of the custom domain.
resourceState String
Resource status of the custom domain.
systemData Property Map
Read only system data
type String
Resource type.
customHttpsParameters Property Map | Property Map
Certificate parameters for securing custom HTTPS
validationData String
Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.

Supporting Types

CdnCertificateSourceParametersResponse

CertificateType This property is required. string
Type of certificate used
TypeName This property is required. string
CertificateType This property is required. string
Type of certificate used
TypeName This property is required. string
certificateType This property is required. String
Type of certificate used
typeName This property is required. String
certificateType This property is required. string
Type of certificate used
typeName This property is required. string
certificate_type This property is required. str
Type of certificate used
type_name This property is required. str
certificateType This property is required. String
Type of certificate used
typeName This property is required. String

CdnManagedHttpsParametersResponse

CertificateSourceParameters This property is required. Pulumi.AzureNative.Cdn.Inputs.CdnCertificateSourceParametersResponse
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
ProtocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
MinimumTlsVersion string
TLS protocol version that will be used for Https
CertificateSourceParameters This property is required. CdnCertificateSourceParametersResponse
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
ProtocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
MinimumTlsVersion string
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. CdnCertificateSourceParametersResponse
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
protocolType This property is required. String
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion String
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. CdnCertificateSourceParametersResponse
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
protocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion string
TLS protocol version that will be used for Https
certificate_source_parameters This property is required. CdnCertificateSourceParametersResponse
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
protocol_type This property is required. str
Defines the TLS extension protocol that is used for secure delivery.
minimum_tls_version str
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. Property Map
Defines the certificate source parameters using CDN managed certificate for enabling SSL.
protocolType This property is required. String
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion String
TLS protocol version that will be used for Https

KeyVaultCertificateSourceParametersResponse

DeleteRule This property is required. string
Describes the action that shall be taken when the certificate is removed from Key Vault.
ResourceGroupName This property is required. string
Resource group of the user's Key Vault containing the SSL certificate
SecretName This property is required. string
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
SubscriptionId This property is required. string
Subscription Id of the user's Key Vault containing the SSL certificate
TypeName This property is required. string
UpdateRule This property is required. string
Describes the action that shall be taken when the certificate is updated in Key Vault.
VaultName This property is required. string
The name of the user's Key Vault containing the SSL certificate
SecretVersion string
The version(GUID) of Key Vault Secret in Key Vault.
DeleteRule This property is required. string
Describes the action that shall be taken when the certificate is removed from Key Vault.
ResourceGroupName This property is required. string
Resource group of the user's Key Vault containing the SSL certificate
SecretName This property is required. string
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
SubscriptionId This property is required. string
Subscription Id of the user's Key Vault containing the SSL certificate
TypeName This property is required. string
UpdateRule This property is required. string
Describes the action that shall be taken when the certificate is updated in Key Vault.
VaultName This property is required. string
The name of the user's Key Vault containing the SSL certificate
SecretVersion string
The version(GUID) of Key Vault Secret in Key Vault.
deleteRule This property is required. String
Describes the action that shall be taken when the certificate is removed from Key Vault.
resourceGroupName This property is required. String
Resource group of the user's Key Vault containing the SSL certificate
secretName This property is required. String
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
subscriptionId This property is required. String
Subscription Id of the user's Key Vault containing the SSL certificate
typeName This property is required. String
updateRule This property is required. String
Describes the action that shall be taken when the certificate is updated in Key Vault.
vaultName This property is required. String
The name of the user's Key Vault containing the SSL certificate
secretVersion String
The version(GUID) of Key Vault Secret in Key Vault.
deleteRule This property is required. string
Describes the action that shall be taken when the certificate is removed from Key Vault.
resourceGroupName This property is required. string
Resource group of the user's Key Vault containing the SSL certificate
secretName This property is required. string
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
subscriptionId This property is required. string
Subscription Id of the user's Key Vault containing the SSL certificate
typeName This property is required. string
updateRule This property is required. string
Describes the action that shall be taken when the certificate is updated in Key Vault.
vaultName This property is required. string
The name of the user's Key Vault containing the SSL certificate
secretVersion string
The version(GUID) of Key Vault Secret in Key Vault.
delete_rule This property is required. str
Describes the action that shall be taken when the certificate is removed from Key Vault.
resource_group_name This property is required. str
Resource group of the user's Key Vault containing the SSL certificate
secret_name This property is required. str
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
subscription_id This property is required. str
Subscription Id of the user's Key Vault containing the SSL certificate
type_name This property is required. str
update_rule This property is required. str
Describes the action that shall be taken when the certificate is updated in Key Vault.
vault_name This property is required. str
The name of the user's Key Vault containing the SSL certificate
secret_version str
The version(GUID) of Key Vault Secret in Key Vault.
deleteRule This property is required. String
Describes the action that shall be taken when the certificate is removed from Key Vault.
resourceGroupName This property is required. String
Resource group of the user's Key Vault containing the SSL certificate
secretName This property is required. String
The name of Key Vault Secret (representing the full certificate PFX) in Key Vault.
subscriptionId This property is required. String
Subscription Id of the user's Key Vault containing the SSL certificate
typeName This property is required. String
updateRule This property is required. String
Describes the action that shall be taken when the certificate is updated in Key Vault.
vaultName This property is required. String
The name of the user's Key Vault containing the SSL certificate
secretVersion String
The version(GUID) of Key Vault Secret in Key Vault.

SystemDataResponse

CreatedAt string
The timestamp of resource creation (UTC)
CreatedBy string
An identifier for the identity that created the resource
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
The type of identity that last modified the resource
CreatedAt string
The timestamp of resource creation (UTC)
CreatedBy string
An identifier for the identity that created the resource
CreatedByType string
The type of identity that created the resource
LastModifiedAt string
The timestamp of resource last modification (UTC)
LastModifiedBy string
An identifier for the identity that last modified the resource
LastModifiedByType string
The type of identity that last modified the resource
createdAt String
The timestamp of resource creation (UTC)
createdBy String
An identifier for the identity that created the resource
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
The type of identity that last modified the resource
createdAt string
The timestamp of resource creation (UTC)
createdBy string
An identifier for the identity that created the resource
createdByType string
The type of identity that created the resource
lastModifiedAt string
The timestamp of resource last modification (UTC)
lastModifiedBy string
An identifier for the identity that last modified the resource
lastModifiedByType string
The type of identity that last modified the resource
created_at str
The timestamp of resource creation (UTC)
created_by str
An identifier for the identity that created the resource
created_by_type str
The type of identity that created the resource
last_modified_at str
The timestamp of resource last modification (UTC)
last_modified_by str
An identifier for the identity that last modified the resource
last_modified_by_type str
The type of identity that last modified the resource
createdAt String
The timestamp of resource creation (UTC)
createdBy String
An identifier for the identity that created the resource
createdByType String
The type of identity that created the resource
lastModifiedAt String
The timestamp of resource last modification (UTC)
lastModifiedBy String
An identifier for the identity that last modified the resource
lastModifiedByType String
The type of identity that last modified the resource

UserManagedHttpsParametersResponse

CertificateSourceParameters This property is required. Pulumi.AzureNative.Cdn.Inputs.KeyVaultCertificateSourceParametersResponse
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
ProtocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
MinimumTlsVersion string
TLS protocol version that will be used for Https
CertificateSourceParameters This property is required. KeyVaultCertificateSourceParametersResponse
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
ProtocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
MinimumTlsVersion string
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. KeyVaultCertificateSourceParametersResponse
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
protocolType This property is required. String
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion String
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. KeyVaultCertificateSourceParametersResponse
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
protocolType This property is required. string
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion string
TLS protocol version that will be used for Https
certificate_source_parameters This property is required. KeyVaultCertificateSourceParametersResponse
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
protocol_type This property is required. str
Defines the TLS extension protocol that is used for secure delivery.
minimum_tls_version str
TLS protocol version that will be used for Https
certificateSourceParameters This property is required. Property Map
Defines the certificate source parameters using user's keyvault certificate for enabling SSL.
protocolType This property is required. String
Defines the TLS extension protocol that is used for secure delivery.
minimumTlsVersion String
TLS protocol version that will be used for Https

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi