1. Packages
  2. Linode Provider
  3. API Docs
  4. DomainRecord
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

linode.DomainRecord

Explore with Pulumi AI

linode logo
Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi

    Provides a Linode Domain Record resource. This can be used to create, modify, and delete Linodes Domain Records. For more information, see DNS Manager and the Linode APIv4 docs.

    Example Usage

    The following example shows how one might use this resource to configure a Domain Record attached to a Linode Domain.

    import * as pulumi from "@pulumi/pulumi";
    import * as linode from "@pulumi/linode";
    
    const foobar = new linode.Domain("foobar", {
        type: "master",
        domain: "foobar.example",
        soaEmail: "example@foobar.example",
    });
    const foobarDomainRecord = new linode.DomainRecord("foobar", {
        domainId: foobar.id,
        name: "www",
        recordType: "CNAME",
        target: "foobar.example",
    });
    
    import pulumi
    import pulumi_linode as linode
    
    foobar = linode.Domain("foobar",
        type="master",
        domain="foobar.example",
        soa_email="example@foobar.example")
    foobar_domain_record = linode.DomainRecord("foobar",
        domain_id=foobar.id,
        name="www",
        record_type="CNAME",
        target="foobar.example")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-linode/sdk/v4/go/linode"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		foobar, err := linode.NewDomain(ctx, "foobar", &linode.DomainArgs{
    			Type:     pulumi.String("master"),
    			Domain:   pulumi.String("foobar.example"),
    			SoaEmail: pulumi.String("example@foobar.example"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = linode.NewDomainRecord(ctx, "foobar", &linode.DomainRecordArgs{
    			DomainId:   foobar.ID(),
    			Name:       pulumi.String("www"),
    			RecordType: pulumi.String("CNAME"),
    			Target:     pulumi.String("foobar.example"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Linode = Pulumi.Linode;
    
    return await Deployment.RunAsync(() => 
    {
        var foobar = new Linode.Domain("foobar", new()
        {
            Type = "master",
            DomainName = "foobar.example",
            SoaEmail = "example@foobar.example",
        });
    
        var foobarDomainRecord = new Linode.DomainRecord("foobar", new()
        {
            DomainId = foobar.Id,
            Name = "www",
            RecordType = "CNAME",
            Target = "foobar.example",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.linode.Domain;
    import com.pulumi.linode.DomainArgs;
    import com.pulumi.linode.DomainRecord;
    import com.pulumi.linode.DomainRecordArgs;
    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) {
            var foobar = new Domain("foobar", DomainArgs.builder()
                .type("master")
                .domain("foobar.example")
                .soaEmail("example@foobar.example")
                .build());
    
            var foobarDomainRecord = new DomainRecord("foobarDomainRecord", DomainRecordArgs.builder()
                .domainId(foobar.id())
                .name("www")
                .recordType("CNAME")
                .target("foobar.example")
                .build());
    
        }
    }
    
    resources:
      foobar:
        type: linode:Domain
        properties:
          type: master
          domain: foobar.example
          soaEmail: example@foobar.example
      foobarDomainRecord:
        type: linode:DomainRecord
        name: foobar
        properties:
          domainId: ${foobar.id}
          name: www
          recordType: CNAME
          target: foobar.example
    

    Create DomainRecord Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new DomainRecord(name: string, args: DomainRecordArgs, opts?: CustomResourceOptions);
    @overload
    def DomainRecord(resource_name: str,
                     args: DomainRecordArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def DomainRecord(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     domain_id: Optional[int] = None,
                     record_type: Optional[str] = None,
                     target: Optional[str] = None,
                     name: Optional[str] = None,
                     port: Optional[int] = None,
                     priority: Optional[int] = None,
                     protocol: Optional[str] = None,
                     service: Optional[str] = None,
                     tag: Optional[str] = None,
                     ttl_sec: Optional[int] = None,
                     weight: Optional[int] = None)
    func NewDomainRecord(ctx *Context, name string, args DomainRecordArgs, opts ...ResourceOption) (*DomainRecord, error)
    public DomainRecord(string name, DomainRecordArgs args, CustomResourceOptions? opts = null)
    public DomainRecord(String name, DomainRecordArgs args)
    public DomainRecord(String name, DomainRecordArgs args, CustomResourceOptions options)
    
    type: linode:DomainRecord
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args DomainRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args DomainRecordArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args DomainRecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainRecordArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var domainRecordResource = new Linode.DomainRecord("domainRecordResource", new()
    {
        DomainId = 0,
        RecordType = "string",
        Target = "string",
        Name = "string",
        Port = 0,
        Priority = 0,
        Protocol = "string",
        Service = "string",
        Tag = "string",
        TtlSec = 0,
        Weight = 0,
    });
    
    example, err := linode.NewDomainRecord(ctx, "domainRecordResource", &linode.DomainRecordArgs{
    	DomainId:   pulumi.Int(0),
    	RecordType: pulumi.String("string"),
    	Target:     pulumi.String("string"),
    	Name:       pulumi.String("string"),
    	Port:       pulumi.Int(0),
    	Priority:   pulumi.Int(0),
    	Protocol:   pulumi.String("string"),
    	Service:    pulumi.String("string"),
    	Tag:        pulumi.String("string"),
    	TtlSec:     pulumi.Int(0),
    	Weight:     pulumi.Int(0),
    })
    
    var domainRecordResource = new DomainRecord("domainRecordResource", DomainRecordArgs.builder()
        .domainId(0)
        .recordType("string")
        .target("string")
        .name("string")
        .port(0)
        .priority(0)
        .protocol("string")
        .service("string")
        .tag("string")
        .ttlSec(0)
        .weight(0)
        .build());
    
    domain_record_resource = linode.DomainRecord("domainRecordResource",
        domain_id=0,
        record_type="string",
        target="string",
        name="string",
        port=0,
        priority=0,
        protocol="string",
        service="string",
        tag="string",
        ttl_sec=0,
        weight=0)
    
    const domainRecordResource = new linode.DomainRecord("domainRecordResource", {
        domainId: 0,
        recordType: "string",
        target: "string",
        name: "string",
        port: 0,
        priority: 0,
        protocol: "string",
        service: "string",
        tag: "string",
        ttlSec: 0,
        weight: 0,
    });
    
    type: linode:DomainRecord
    properties:
        domainId: 0
        name: string
        port: 0
        priority: 0
        protocol: string
        recordType: string
        service: string
        tag: string
        target: string
        ttlSec: 0
        weight: 0
    

    DomainRecord Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The DomainRecord resource accepts the following input properties:

    DomainId int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    RecordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    Target string
    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.


    Name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    Port int
    The port this Record points to.
    Priority int
    The priority of the target host. Lower values are preferred.
    Protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    Service string
    The service this Record identified. Only valid for SRV records.
    Tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    TtlSec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    Weight int
    The relative weight of this Record. Higher values are preferred.
    DomainId int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    RecordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    Target string
    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.


    Name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    Port int
    The port this Record points to.
    Priority int
    The priority of the target host. Lower values are preferred.
    Protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    Service string
    The service this Record identified. Only valid for SRV records.
    Tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    TtlSec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    Weight int
    The relative weight of this Record. Higher values are preferred.
    domainId Integer
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    recordType String
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    target String
    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.


    name String
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port Integer
    The port this Record points to.
    priority Integer
    The priority of the target host. Lower values are preferred.
    protocol String
    The protocol this Record's service communicates with. Only valid for SRV records.
    service String
    The service this Record identified. Only valid for SRV records.
    tag String
    The tag portion of a CAA record. It is invalid to set this on other record types.
    ttlSec Integer
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight Integer
    The relative weight of this Record. Higher values are preferred.
    domainId number
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    recordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    target string
    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.


    name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port number
    The port this Record points to.
    priority number
    The priority of the target host. Lower values are preferred.
    protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    service string
    The service this Record identified. Only valid for SRV records.
    tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    ttlSec number
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight number
    The relative weight of this Record. Higher values are preferred.
    domain_id int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    record_type str
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    target str
    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.


    name str
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port int
    The port this Record points to.
    priority int
    The priority of the target host. Lower values are preferred.
    protocol str
    The protocol this Record's service communicates with. Only valid for SRV records.
    service str
    The service this Record identified. Only valid for SRV records.
    tag str
    The tag portion of a CAA record. It is invalid to set this on other record types.
    ttl_sec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight int
    The relative weight of this Record. Higher values are preferred.
    domainId Number
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    recordType String
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    target String
    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.


    name String
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port Number
    The port this Record points to.
    priority Number
    The priority of the target host. Lower values are preferred.
    protocol String
    The protocol this Record's service communicates with. Only valid for SRV records.
    service String
    The service this Record identified. Only valid for SRV records.
    tag String
    The tag portion of a CAA record. It is invalid to set this on other record types.
    ttlSec Number
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight Number
    The relative weight of this Record. Higher values are preferred.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DomainRecord resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing DomainRecord Resource

    Get an existing DomainRecord resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: DomainRecordState, opts?: CustomResourceOptions): DomainRecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            domain_id: Optional[int] = None,
            name: Optional[str] = None,
            port: Optional[int] = None,
            priority: Optional[int] = None,
            protocol: Optional[str] = None,
            record_type: Optional[str] = None,
            service: Optional[str] = None,
            tag: Optional[str] = None,
            target: Optional[str] = None,
            ttl_sec: Optional[int] = None,
            weight: Optional[int] = None) -> DomainRecord
    func GetDomainRecord(ctx *Context, name string, id IDInput, state *DomainRecordState, opts ...ResourceOption) (*DomainRecord, error)
    public static DomainRecord Get(string name, Input<string> id, DomainRecordState? state, CustomResourceOptions? opts = null)
    public static DomainRecord get(String name, Output<String> id, DomainRecordState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    DomainId int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    Name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    Port int
    The port this Record points to.
    Priority int
    The priority of the target host. Lower values are preferred.
    Protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    RecordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    Service string
    The service this Record identified. Only valid for SRV records.
    Tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    Target string
    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.


    TtlSec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    Weight int
    The relative weight of this Record. Higher values are preferred.
    DomainId int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    Name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    Port int
    The port this Record points to.
    Priority int
    The priority of the target host. Lower values are preferred.
    Protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    RecordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    Service string
    The service this Record identified. Only valid for SRV records.
    Tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    Target string
    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.


    TtlSec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    Weight int
    The relative weight of this Record. Higher values are preferred.
    domainId Integer
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    name String
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port Integer
    The port this Record points to.
    priority Integer
    The priority of the target host. Lower values are preferred.
    protocol String
    The protocol this Record's service communicates with. Only valid for SRV records.
    recordType String
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    service String
    The service this Record identified. Only valid for SRV records.
    tag String
    The tag portion of a CAA record. It is invalid to set this on other record types.
    target String
    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.


    ttlSec Integer
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight Integer
    The relative weight of this Record. Higher values are preferred.
    domainId number
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    name string
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port number
    The port this Record points to.
    priority number
    The priority of the target host. Lower values are preferred.
    protocol string
    The protocol this Record's service communicates with. Only valid for SRV records.
    recordType string
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    service string
    The service this Record identified. Only valid for SRV records.
    tag string
    The tag portion of a CAA record. It is invalid to set this on other record types.
    target string
    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.


    ttlSec number
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight number
    The relative weight of this Record. Higher values are preferred.
    domain_id int
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    name str
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port int
    The port this Record points to.
    priority int
    The priority of the target host. Lower values are preferred.
    protocol str
    The protocol this Record's service communicates with. Only valid for SRV records.
    record_type str
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    service str
    The service this Record identified. Only valid for SRV records.
    tag str
    The tag portion of a CAA record. It is invalid to set this on other record types.
    target str
    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.


    ttl_sec int
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight int
    The relative weight of this Record. Higher values are preferred.
    domainId Number
    The ID of the Domain to access. Changing domain_id forces the creation of a new Linode Domain Record..
    name String
    The name of this Record. Setting this is invalid for SRV records as it is generated by the API. This field's actual usage depends on the type of record this represents. For A and AAAA records, this is the subdomain being associated with an IP address.
    port Number
    The port this Record points to.
    priority Number
    The priority of the target host. Lower values are preferred.
    protocol String
    The protocol this Record's service communicates with. Only valid for SRV records.
    recordType String
    The type of Record this is in the DNS system. For example, A records associate a domain name with an IPv4 address, and AAAA records associate a domain name with an IPv6 address. See all supported record types here. Changing record_type forces the creation of a new Linode Domain Record..
    service String
    The service this Record identified. Only valid for SRV records.
    tag String
    The tag portion of a CAA record. It is invalid to set this on other record types.
    target String
    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.


    ttlSec Number
    'Time to Live' - the amount of time in seconds that this Domain's records may be cached by resolvers or other domain servers. Valid values are 30, 120, 300, 3600, 7200, 14400, 28800, 57600, 86400, 172800, 345600, 604800, 1209600, and 2419200 - any other value will be rounded to the nearest valid value.
    weight Number
    The relative weight of this Record. Higher values are preferred.

    Import

    Linodes Domain Records can be imported using the Linode Domain id followed by the Domain Record id separated by a comma, e.g.

    $ pulumi import linode:index/domainRecord:DomainRecord www-foobar 1234567,7654321
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Linode pulumi/pulumi-linode
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the linode Terraform Provider.
    linode logo
    Linode v4.30.0 published on Friday, Nov 8, 2024 by Pulumi