1. Packages
  2. Vultr
  3. API Docs
  4. getDnsDomain
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

vultr.getDnsDomain

Explore with Pulumi AI

vultr logo
Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien

    Get information about a DNS domain associated with your Vultr account.

    Example Usage

    Get the information for a DNS domain:

    import * as pulumi from "@pulumi/pulumi";
    import * as vultr from "@pulumi/vultr";
    
    const myDomain = vultr.getDnsDomain({
        domain: "example.com",
    });
    
    import pulumi
    import pulumi_vultr as vultr
    
    my_domain = vultr.get_dns_domain(domain="example.com")
    
    package main
    
    import (
    	"github.com/dirien/pulumi-vultr/sdk/v2/go/vultr"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := vultr.LookupDnsDomain(ctx, &vultr.LookupDnsDomainArgs{
    			Domain: "example.com",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Vultr = Pulumi.Vultr;
    
    return await Deployment.RunAsync(() => 
    {
        var myDomain = Vultr.GetDnsDomain.Invoke(new()
        {
            Domain = "example.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.vultr.VultrFunctions;
    import com.pulumi.vultr.inputs.GetDnsDomainArgs;
    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 myDomain = VultrFunctions.getDnsDomain(GetDnsDomainArgs.builder()
                .domain("example.com")
                .build());
    
        }
    }
    
    variables:
      myDomain:
        fn::invoke:
          Function: vultr:getDnsDomain
          Arguments:
            domain: example.com
    

    Using getDnsDomain

    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 getDnsDomain(args: GetDnsDomainArgs, opts?: InvokeOptions): Promise<GetDnsDomainResult>
    function getDnsDomainOutput(args: GetDnsDomainOutputArgs, opts?: InvokeOptions): Output<GetDnsDomainResult>
    def get_dns_domain(domain: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetDnsDomainResult
    def get_dns_domain_output(domain: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetDnsDomainResult]
    func LookupDnsDomain(ctx *Context, args *LookupDnsDomainArgs, opts ...InvokeOption) (*LookupDnsDomainResult, error)
    func LookupDnsDomainOutput(ctx *Context, args *LookupDnsDomainOutputArgs, opts ...InvokeOption) LookupDnsDomainResultOutput

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

    public static class GetDnsDomain 
    {
        public static Task<GetDnsDomainResult> InvokeAsync(GetDnsDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetDnsDomainResult> Invoke(GetDnsDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDnsDomainResult> getDnsDomain(GetDnsDomainArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: vultr:index/getDnsDomain:getDnsDomain
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Domain string
    The name you're searching for.
    Domain string
    The name you're searching for.
    domain String
    The name you're searching for.
    domain string
    The name you're searching for.
    domain str
    The name you're searching for.
    domain String
    The name you're searching for.

    getDnsDomain Result

    The following output properties are available:

    DateCreated string
    The date the DNS domain was added to your Vultr account.
    DnsSec string
    The Domain's DNSSEC status
    Domain string
    Name of domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    DateCreated string
    The date the DNS domain was added to your Vultr account.
    DnsSec string
    The Domain's DNSSEC status
    Domain string
    Name of domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    dateCreated String
    The date the DNS domain was added to your Vultr account.
    dnsSec String
    The Domain's DNSSEC status
    domain String
    Name of domain.
    id String
    The provider-assigned unique ID for this managed resource.
    dateCreated string
    The date the DNS domain was added to your Vultr account.
    dnsSec string
    The Domain's DNSSEC status
    domain string
    Name of domain.
    id string
    The provider-assigned unique ID for this managed resource.
    date_created str
    The date the DNS domain was added to your Vultr account.
    dns_sec str
    The Domain's DNSSEC status
    domain str
    Name of domain.
    id str
    The provider-assigned unique ID for this managed resource.
    dateCreated String
    The date the DNS domain was added to your Vultr account.
    dnsSec String
    The Domain's DNSSEC status
    domain String
    Name of domain.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    vultr dirien/pulumi-vultr
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the vultr Terraform Provider.
    vultr logo
    Vultr v2.21.1 published on Monday, Jul 22, 2024 by dirien