1. Packages
  2. UpCloud
  3. API Docs
  4. getLoadBalancerDnsChallengeDomain
UpCloud v0.1.0 published on Friday, Mar 14, 2025 by UpCloudLtd

upcloud.getLoadBalancerDnsChallengeDomain

Explore with Pulumi AI

upcloud logo
UpCloud v0.1.0 published on Friday, Mar 14, 2025 by UpCloudLtd

    Returns DNS challenge domain to use when validating domain ownership using ACME challenge method.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as upcloud from "@pulumi/upcloud";
    
    const _this = upcloud.getLoadBalancerDnsChallengeDomain({});
    
    import pulumi
    import pulumi_upcloud as upcloud
    
    this = upcloud.get_load_balancer_dns_challenge_domain()
    
    package main
    
    import (
    	"github.com/UpCloudLtd/pulumi-upcloud/sdk/go/upcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := upcloud.GetLoadBalancerDnsChallengeDomain(ctx, map[string]interface{}{}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using UpCloud = Pulumi.UpCloud;
    
    return await Deployment.RunAsync(() => 
    {
        var @this = UpCloud.GetLoadBalancerDnsChallengeDomain.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.upcloud.UpcloudFunctions;
    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 this = UpcloudFunctions.getLoadBalancerDnsChallengeDomain();
    
        }
    }
    
    variables:
      this:
        fn::invoke:
          function: upcloud:getLoadBalancerDnsChallengeDomain
          arguments: {}
    

    Using getLoadBalancerDnsChallengeDomain

    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 getLoadBalancerDnsChallengeDomain(opts?: InvokeOptions): Promise<GetLoadBalancerDnsChallengeDomainResult>
    function getLoadBalancerDnsChallengeDomainOutput(opts?: InvokeOptions): Output<GetLoadBalancerDnsChallengeDomainResult>
    def get_load_balancer_dns_challenge_domain(opts: Optional[InvokeOptions] = None) -> GetLoadBalancerDnsChallengeDomainResult
    def get_load_balancer_dns_challenge_domain_output(opts: Optional[InvokeOptions] = None) -> Output[GetLoadBalancerDnsChallengeDomainResult]
    func GetLoadBalancerDnsChallengeDomain(ctx *Context, opts ...InvokeOption) (*GetLoadBalancerDnsChallengeDomainResult, error)
    func GetLoadBalancerDnsChallengeDomainOutput(ctx *Context, opts ...InvokeOption) GetLoadBalancerDnsChallengeDomainResultOutput

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

    public static class GetLoadBalancerDnsChallengeDomain 
    {
        public static Task<GetLoadBalancerDnsChallengeDomainResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetLoadBalancerDnsChallengeDomainResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetLoadBalancerDnsChallengeDomainResult> getLoadBalancerDnsChallengeDomain(InvokeOptions options)
    public static Output<GetLoadBalancerDnsChallengeDomainResult> getLoadBalancerDnsChallengeDomain(InvokeOptions options)
    
    fn::invoke:
      function: upcloud:index/getLoadBalancerDnsChallengeDomain:getLoadBalancerDnsChallengeDomain
      arguments:
        # arguments dictionary

    getLoadBalancerDnsChallengeDomain Result

    The following output properties are available:

    Domain string
    The domain to use for DNS challenge validation.
    Id string
    The ID of this resource.
    Domain string
    The domain to use for DNS challenge validation.
    Id string
    The ID of this resource.
    domain String
    The domain to use for DNS challenge validation.
    id String
    The ID of this resource.
    domain string
    The domain to use for DNS challenge validation.
    id string
    The ID of this resource.
    domain str
    The domain to use for DNS challenge validation.
    id str
    The ID of this resource.
    domain String
    The domain to use for DNS challenge validation.
    id String
    The ID of this resource.

    Package Details

    Repository
    upcloud UpCloudLtd/pulumi-upcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the upcloud Terraform Provider.
    upcloud logo
    UpCloud v0.1.0 published on Friday, Mar 14, 2025 by UpCloudLtd