DigitalOcean

v4.16.0 published on Wednesday, Sep 28, 2022 by Pulumi

getDomain

Get information on a domain. This data source provides the name, TTL, and zone file as configured on your DigitalOcean account. This is useful if the domain name in question is not managed by this provider or you need to utilize TTL or zone file data.

An error is triggered if the provided domain name is not managed with your DigitalOcean account.

Using getDomain

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 getDomain(args: GetDomainArgs, opts?: InvokeOptions): Promise<GetDomainResult>
function getDomainOutput(args: GetDomainOutputArgs, opts?: InvokeOptions): Output<GetDomainResult>
def get_domain(name: Optional[str] = None,
               opts: Optional[InvokeOptions] = None) -> GetDomainResult
def get_domain_output(name: Optional[pulumi.Input[str]] = None,
               opts: Optional[InvokeOptions] = None) -> Output[GetDomainResult]
func LookupDomain(ctx *Context, args *LookupDomainArgs, opts ...InvokeOption) (*LookupDomainResult, error)
func LookupDomainOutput(ctx *Context, args *LookupDomainOutputArgs, opts ...InvokeOption) LookupDomainResultOutput

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

public static class GetDomain 
{
    public static Task<GetDomainResult> InvokeAsync(GetDomainArgs args, InvokeOptions? opts = null)
    public static Output<GetDomainResult> Invoke(GetDomainInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainResult> getDomain(GetDomainArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
Fn::Invoke:
  Function: digitalocean:index/getDomain:getDomain
  Arguments:
    # Arguments dictionary

The following arguments are supported:

Name string

The name of the domain.

Name string

The name of the domain.

name String

The name of the domain.

name string

The name of the domain.

name str

The name of the domain.

name String

The name of the domain.

getDomain Result

The following output properties are available:

DomainUrn string

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
Id string

The provider-assigned unique ID for this managed resource.

Name string
Ttl int
ZoneFile string
DomainUrn string

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
Id string

The provider-assigned unique ID for this managed resource.

Name string
Ttl int
ZoneFile string
domainUrn String

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
id String

The provider-assigned unique ID for this managed resource.

name String
ttl Integer
zoneFile String
domainUrn string

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
id string

The provider-assigned unique ID for this managed resource.

name string
ttl number
zoneFile string
domain_urn str

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
id str

The provider-assigned unique ID for this managed resource.

name str
ttl int
zone_file str
domainUrn String

The uniform resource name of the domain

  • zone_file: The zone file of the domain.
id String

The provider-assigned unique ID for this managed resource.

name String
ttl Number
zoneFile String

Package Details

Repository
https://github.com/pulumi/pulumi-digitalocean
License
Apache-2.0
Notes

This Pulumi package is based on the digitalocean Terraform Provider.