1. Packages
  2. stackit
  3. API Docs
  4. getCdnCustomDomain
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud

    CDN distribution data source schema.

    This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

    Example Usage

    data "stackit_cdn_custom_domain" "example" {
      project_id      = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      distribution_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      name            = "https://xxx.xxx"
    }
    

    Using getCdnCustomDomain

    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 getCdnCustomDomain(args: GetCdnCustomDomainArgs, opts?: InvokeOptions): Promise<GetCdnCustomDomainResult>
    function getCdnCustomDomainOutput(args: GetCdnCustomDomainOutputArgs, opts?: InvokeOptions): Output<GetCdnCustomDomainResult>
    def get_cdn_custom_domain(certificate: Optional[GetCdnCustomDomainCertificate] = None,
                              distribution_id: Optional[str] = None,
                              name: Optional[str] = None,
                              project_id: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetCdnCustomDomainResult
    def get_cdn_custom_domain_output(certificate: Optional[pulumi.Input[GetCdnCustomDomainCertificateArgs]] = None,
                              distribution_id: Optional[pulumi.Input[str]] = None,
                              name: Optional[pulumi.Input[str]] = None,
                              project_id: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetCdnCustomDomainResult]
    func LookupCdnCustomDomain(ctx *Context, args *LookupCdnCustomDomainArgs, opts ...InvokeOption) (*LookupCdnCustomDomainResult, error)
    func LookupCdnCustomDomainOutput(ctx *Context, args *LookupCdnCustomDomainOutputArgs, opts ...InvokeOption) LookupCdnCustomDomainResultOutput

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

    public static class GetCdnCustomDomain 
    {
        public static Task<GetCdnCustomDomainResult> InvokeAsync(GetCdnCustomDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetCdnCustomDomainResult> Invoke(GetCdnCustomDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCdnCustomDomainResult> getCdnCustomDomain(GetCdnCustomDomainArgs args, InvokeOptions options)
    public static Output<GetCdnCustomDomainResult> getCdnCustomDomain(GetCdnCustomDomainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getCdnCustomDomain:getCdnCustomDomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    DistributionId string
    CDN distribution ID
    Name string
    ProjectId string
    STACKIT project ID associated with the distribution
    Certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    DistributionId string
    CDN distribution ID
    Name string
    ProjectId string
    STACKIT project ID associated with the distribution
    Certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId String
    CDN distribution ID
    name String
    projectId String
    STACKIT project ID associated with the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId string
    CDN distribution ID
    name string
    projectId string
    STACKIT project ID associated with the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distribution_id str
    CDN distribution ID
    name str
    project_id str
    STACKIT project ID associated with the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId String
    CDN distribution ID
    name String
    projectId String
    STACKIT project ID associated with the distribution
    certificate Property Map
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.

    getCdnCustomDomain Result

    The following output properties are available:

    DistributionId string
    CDN distribution ID
    Errors List<string>
    List of distribution errors
    Id string
    Name string
    ProjectId string
    STACKIT project ID associated with the distribution
    Status string
    Status of the distribution
    Certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    DistributionId string
    CDN distribution ID
    Errors []string
    List of distribution errors
    Id string
    Name string
    ProjectId string
    STACKIT project ID associated with the distribution
    Status string
    Status of the distribution
    Certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId String
    CDN distribution ID
    errors List<String>
    List of distribution errors
    id String
    name String
    projectId String
    STACKIT project ID associated with the distribution
    status String
    Status of the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId string
    CDN distribution ID
    errors string[]
    List of distribution errors
    id string
    name string
    projectId string
    STACKIT project ID associated with the distribution
    status string
    Status of the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distribution_id str
    CDN distribution ID
    errors Sequence[str]
    List of distribution errors
    id str
    name str
    project_id str
    STACKIT project ID associated with the distribution
    status str
    Status of the distribution
    certificate GetCdnCustomDomainCertificate
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.
    distributionId String
    CDN distribution ID
    errors List<String>
    List of distribution errors
    id String
    name String
    projectId String
    STACKIT project ID associated with the distribution
    status String
    Status of the distribution
    certificate Property Map
    The TLS certificate for the custom domain. If omitted, a managed certificate will be used. If the block is specified, a custom certificate is used.

    Supporting Types

    GetCdnCustomDomainCertificate

    Version int
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.
    Version int
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.
    version Integer
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.
    version number
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.
    version int
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.
    version Number
    A version identifier for the certificate. Required for custom certificates. The certificate will be updated if this field is changed.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.