Show / Hide Table of Contents

Class GetDomainRecord

Inheritance
System.Object
GetDomainRecord
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.dll
Syntax
public static class GetDomainRecord

Methods

View Source

InvokeAsync(GetDomainRecordArgs, InvokeOptions)

Provides information about a Linode Domain Record.

{{% examples %}}

Example Usage

{{% example %}}

The following example shows how one might use this data source to access information about a Linode Domain Record.

using Pulumi;
using Linode = Pulumi.Linode;

class MyStack : Stack
{
public MyStack()
{
    var myRecord = Output.Create(Linode.GetDomainRecord.InvokeAsync(new Linode.GetDomainRecordArgs
    {
        DomainId = "3150401",
        Id = "14950401",
    }));
    var myWwwRecord = Output.Create(Linode.GetDomainRecord.InvokeAsync(new Linode.GetDomainRecordArgs
    {
        DomainId = "3150401",
        Name = "www",
    }));
}

}

{{% /example %}} {{% /examples %}}

Attributes

The Linode Volume resource exports the following attributes:

  • id - The unique ID of the Domain Record.

  • name - The name of the Record.

  • domain_id - The associated domain's unique ID.

  • type - The type of Record this is in the DNS system.

  • ttl_sec - The amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers.

  • target - The target for this Record. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the address the named Domain should resolve to.

  • priority - The priority of the target host. Lower values are preferred.

  • weight - The relative weight of this Record. Higher values are preferred.

  • port - The port this Record points to.

  • protocol - The protocol this Record's service communicates with. Only valid for SRV records.

  • service - The service this Record identified. Only valid for SRV records.

  • tag - The tag portion of a CAA record.

Declaration
public static Task<GetDomainRecordResult> InvokeAsync(GetDomainRecordArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetDomainRecordArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetDomainRecordResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.