1. Packages
  2. Selectel Provider
  3. API Docs
  4. DomainsRecordV1
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.DomainsRecordV1

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    WARNING: This resource is applicable to DNS Hosting (legacy). We do not support and develop DNS Hosting (legacy), but domains and records created in DNS Hosting (legacy) continue to work until further notice. We recommend to transfer your data to DNS Hosting (actual). For more infomation about DNS Hosting (actual), see the official Selectel documentation. To create records in DNS Hosting (actual) use the selectel.DomainsRrsetV2 resource.

    Creates and manages a record in DNS Hosting (legacy) using public API v1. For more information about records, see the official Selectel documentation.

    Example Usage

    A Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const aRecord1 = new selectel.DomainsRecordV1("aRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "A",
        content: "127.0.0.1",
        ttl: 60,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    a_record1 = selectel.DomainsRecordV1("aRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="A",
        content="127.0.0.1",
        ttl=60)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "aRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("A"),
    			Content:  pulumi.String("127.0.0.1"),
    			Ttl:      pulumi.Float64(60),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var aRecord1 = new Selectel.DomainsRecordV1("aRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "A",
            Content = "127.0.0.1",
            Ttl = 60,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 aRecord1 = new DomainsRecordV1("aRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("A")
                .content("127.0.0.1")
                .ttl(60)
                .build());
    
        }
    }
    
    resources:
      aRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: A
          content: 127.0.0.1
          ttl: 60
    

    AAAA Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const aaaaRecord1 = new selectel.DomainsRecordV1("aaaaRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "AAAA",
        content: "2400:cb00:2049:1::a29f:1804",
        ttl: 60,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    aaaa_record1 = selectel.DomainsRecordV1("aaaaRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="AAAA",
        content="2400:cb00:2049:1::a29f:1804",
        ttl=60)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "aaaaRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("AAAA"),
    			Content:  pulumi.String("2400:cb00:2049:1::a29f:1804"),
    			Ttl:      pulumi.Float64(60),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var aaaaRecord1 = new Selectel.DomainsRecordV1("aaaaRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "AAAA",
            Content = "2400:cb00:2049:1::a29f:1804",
            Ttl = 60,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 aaaaRecord1 = new DomainsRecordV1("aaaaRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("AAAA")
                .content("2400:cb00:2049:1::a29f:1804")
                .ttl(60)
                .build());
    
        }
    }
    
    resources:
      aaaaRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: AAAA
          content: 2400:cb00:2049:1::a29f:1804
          ttl: 60
    

    TXT Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const txtRecord1 = new selectel.DomainsRecordV1("txtRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "TXT",
        content: "hello, world!",
        ttl: 60,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    txt_record1 = selectel.DomainsRecordV1("txtRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="TXT",
        content="hello, world!",
        ttl=60)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "txtRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("TXT"),
    			Content:  pulumi.String("hello, world!"),
    			Ttl:      pulumi.Float64(60),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var txtRecord1 = new Selectel.DomainsRecordV1("txtRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "TXT",
            Content = "hello, world!",
            Ttl = 60,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 txtRecord1 = new DomainsRecordV1("txtRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("TXT")
                .content("hello, world!")
                .ttl(60)
                .build());
    
        }
    }
    
    resources:
      txtRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: TXT
          content: hello, world!
          ttl: 60
    

    CNAME Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const cnameRecord1 = new selectel.DomainsRecordV1("cnameRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "CNAME",
        content: "origin.com",
        ttl: 60,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    cname_record1 = selectel.DomainsRecordV1("cnameRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="CNAME",
        content="origin.com",
        ttl=60)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "cnameRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("CNAME"),
    			Content:  pulumi.String("origin.com"),
    			Ttl:      pulumi.Float64(60),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var cnameRecord1 = new Selectel.DomainsRecordV1("cnameRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "CNAME",
            Content = "origin.com",
            Ttl = 60,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 cnameRecord1 = new DomainsRecordV1("cnameRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("CNAME")
                .content("origin.com")
                .ttl(60)
                .build());
    
        }
    }
    
    resources:
      cnameRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: CNAME
          content: origin.com
          ttl: 60
    

    NS Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const nsRecord1 = new selectel.DomainsRecordV1("nsRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "NS",
        content: "ns5.selectel.org",
        ttl: 86400,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    ns_record1 = selectel.DomainsRecordV1("nsRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="NS",
        content="ns5.selectel.org",
        ttl=86400)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "nsRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("NS"),
    			Content:  pulumi.String("ns5.selectel.org"),
    			Ttl:      pulumi.Float64(86400),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var nsRecord1 = new Selectel.DomainsRecordV1("nsRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "NS",
            Content = "ns5.selectel.org",
            Ttl = 86400,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 nsRecord1 = new DomainsRecordV1("nsRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("NS")
                .content("ns5.selectel.org")
                .ttl(86400)
                .build());
    
        }
    }
    
    resources:
      nsRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: NS
          content: ns5.selectel.org
          ttl: 86400
    

    MX Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const mxRecord1 = new selectel.DomainsRecordV1("mxRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "MX",
        content: "mail.example.org",
        ttl: 60,
        priority: 10,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    mx_record1 = selectel.DomainsRecordV1("mxRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="MX",
        content="mail.example.org",
        ttl=60,
        priority=10)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "mxRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("MX"),
    			Content:  pulumi.String("mail.example.org"),
    			Ttl:      pulumi.Float64(60),
    			Priority: pulumi.Float64(10),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var mxRecord1 = new Selectel.DomainsRecordV1("mxRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "MX",
            Content = "mail.example.org",
            Ttl = 60,
            Priority = 10,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 mxRecord1 = new DomainsRecordV1("mxRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("MX")
                .content("mail.example.org")
                .ttl(60)
                .priority(10)
                .build());
    
        }
    }
    
    resources:
      mxRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: MX
          content: mail.example.org
          ttl: 60
          priority: 10
    

    SRV Record

    import * as pulumi from "@pulumi/pulumi";
    import * as selectel from "@pulumi/selectel";
    
    const srvRecord1 = new selectel.DomainsRecordV1("srvRecord1", {
        domainId: selectel_domains_domain_v1.domain_1.id,
        type: "SRV",
        ttl: 120,
        priority: 10,
        weight: 20,
        target: "example.com",
        port: 100,
    });
    
    import pulumi
    import pulumi_selectel as selectel
    
    srv_record1 = selectel.DomainsRecordV1("srvRecord1",
        domain_id=selectel_domains_domain_v1["domain_1"]["id"],
        type="SRV",
        ttl=120,
        priority=10,
        weight=20,
        target="example.com",
        port=100)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := selectel.NewDomainsRecordV1(ctx, "srvRecord1", &selectel.DomainsRecordV1Args{
    			DomainId: pulumi.Any(selectel_domains_domain_v1.Domain_1.Id),
    			Type:     pulumi.String("SRV"),
    			Ttl:      pulumi.Float64(120),
    			Priority: pulumi.Float64(10),
    			Weight:   pulumi.Float64(20),
    			Target:   pulumi.String("example.com"),
    			Port:     pulumi.Float64(100),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Selectel = Pulumi.Selectel;
    
    return await Deployment.RunAsync(() => 
    {
        var srvRecord1 = new Selectel.DomainsRecordV1("srvRecord1", new()
        {
            DomainId = selectel_domains_domain_v1.Domain_1.Id,
            Type = "SRV",
            Ttl = 120,
            Priority = 10,
            Weight = 20,
            Target = "example.com",
            Port = 100,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.selectel.DomainsRecordV1;
    import com.pulumi.selectel.DomainsRecordV1Args;
    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 srvRecord1 = new DomainsRecordV1("srvRecord1", DomainsRecordV1Args.builder()
                .domainId(selectel_domains_domain_v1.domain_1().id())
                .type("SRV")
                .ttl(120)
                .priority(10)
                .weight(20)
                .target("example.com")
                .port(100)
                .build());
    
        }
    }
    
    resources:
      srvRecord1:
        type: selectel:DomainsRecordV1
        properties:
          domainId: ${selectel_domains_domain_v1.domain_1.id}
          type: SRV
          ttl: 120
          priority: 10
          weight: 20
          target: example.com
          port: 100
    

    Create DomainsRecordV1 Resource

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

    Constructor syntax

    new DomainsRecordV1(name: string, args: DomainsRecordV1Args, opts?: CustomResourceOptions);
    @overload
    def DomainsRecordV1(resource_name: str,
                        args: DomainsRecordV1Args,
                        opts: Optional[ResourceOptions] = None)
    
    @overload
    def DomainsRecordV1(resource_name: str,
                        opts: Optional[ResourceOptions] = None,
                        ttl: Optional[float] = None,
                        type: Optional[str] = None,
                        domain_id: Optional[float] = None,
                        name: Optional[str] = None,
                        priority: Optional[float] = None,
                        fingerprint: Optional[str] = None,
                        fingerprint_type: Optional[float] = None,
                        flag: Optional[float] = None,
                        algorithm: Optional[float] = None,
                        port: Optional[float] = None,
                        email: Optional[str] = None,
                        tag: Optional[str] = None,
                        target: Optional[str] = None,
                        domains_record_v1_id: Optional[str] = None,
                        content: Optional[str] = None,
                        value: Optional[str] = None,
                        weight: Optional[float] = None)
    func NewDomainsRecordV1(ctx *Context, name string, args DomainsRecordV1Args, opts ...ResourceOption) (*DomainsRecordV1, error)
    public DomainsRecordV1(string name, DomainsRecordV1Args args, CustomResourceOptions? opts = null)
    public DomainsRecordV1(String name, DomainsRecordV1Args args)
    public DomainsRecordV1(String name, DomainsRecordV1Args args, CustomResourceOptions options)
    
    type: selectel:DomainsRecordV1
    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 DomainsRecordV1Args
    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 DomainsRecordV1Args
    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 DomainsRecordV1Args
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DomainsRecordV1Args
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DomainsRecordV1Args
    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 domainsRecordV1Resource = new Selectel.DomainsRecordV1("domainsRecordV1Resource", new()
    {
        Ttl = 0,
        Type = "string",
        DomainId = 0,
        Name = "string",
        Priority = 0,
        Fingerprint = "string",
        FingerprintType = 0,
        Flag = 0,
        Algorithm = 0,
        Port = 0,
        Email = "string",
        Tag = "string",
        Target = "string",
        DomainsRecordV1Id = "string",
        Content = "string",
        Value = "string",
        Weight = 0,
    });
    
    example, err := selectel.NewDomainsRecordV1(ctx, "domainsRecordV1Resource", &selectel.DomainsRecordV1Args{
    	Ttl:               pulumi.Float64(0),
    	Type:              pulumi.String("string"),
    	DomainId:          pulumi.Float64(0),
    	Name:              pulumi.String("string"),
    	Priority:          pulumi.Float64(0),
    	Fingerprint:       pulumi.String("string"),
    	FingerprintType:   pulumi.Float64(0),
    	Flag:              pulumi.Float64(0),
    	Algorithm:         pulumi.Float64(0),
    	Port:              pulumi.Float64(0),
    	Email:             pulumi.String("string"),
    	Tag:               pulumi.String("string"),
    	Target:            pulumi.String("string"),
    	DomainsRecordV1Id: pulumi.String("string"),
    	Content:           pulumi.String("string"),
    	Value:             pulumi.String("string"),
    	Weight:            pulumi.Float64(0),
    })
    
    var domainsRecordV1Resource = new DomainsRecordV1("domainsRecordV1Resource", DomainsRecordV1Args.builder()
        .ttl(0)
        .type("string")
        .domainId(0)
        .name("string")
        .priority(0)
        .fingerprint("string")
        .fingerprintType(0)
        .flag(0)
        .algorithm(0)
        .port(0)
        .email("string")
        .tag("string")
        .target("string")
        .domainsRecordV1Id("string")
        .content("string")
        .value("string")
        .weight(0)
        .build());
    
    domains_record_v1_resource = selectel.DomainsRecordV1("domainsRecordV1Resource",
        ttl=0,
        type="string",
        domain_id=0,
        name="string",
        priority=0,
        fingerprint="string",
        fingerprint_type=0,
        flag=0,
        algorithm=0,
        port=0,
        email="string",
        tag="string",
        target="string",
        domains_record_v1_id="string",
        content="string",
        value="string",
        weight=0)
    
    const domainsRecordV1Resource = new selectel.DomainsRecordV1("domainsRecordV1Resource", {
        ttl: 0,
        type: "string",
        domainId: 0,
        name: "string",
        priority: 0,
        fingerprint: "string",
        fingerprintType: 0,
        flag: 0,
        algorithm: 0,
        port: 0,
        email: "string",
        tag: "string",
        target: "string",
        domainsRecordV1Id: "string",
        content: "string",
        value: "string",
        weight: 0,
    });
    
    type: selectel:DomainsRecordV1
    properties:
        algorithm: 0
        content: string
        domainId: 0
        domainsRecordV1Id: string
        email: string
        fingerprint: string
        fingerprintType: 0
        flag: 0
        name: string
        port: 0
        priority: 0
        tag: string
        target: string
        ttl: 0
        type: string
        value: string
        weight: 0
    

    DomainsRecordV1 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 DomainsRecordV1 resource accepts the following input properties:

    DomainId double
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    Ttl double
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    Type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    Algorithm double
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    Content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    DomainsRecordV1Id string
    Email string
    Email of the domain administrator. Applicable only to SOA records.
    Fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    FingerprintType double
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    Flag double
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    Name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    Port double
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    Priority double
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    Tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    Target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    Value string
    Value associated with the tag. Applicable only to CAA records.
    Weight double
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    DomainId float64
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    Ttl float64
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    Type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    Algorithm float64
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    Content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    DomainsRecordV1Id string
    Email string
    Email of the domain administrator. Applicable only to SOA records.
    Fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    FingerprintType float64
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    Flag float64
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    Name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    Port float64
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    Priority float64
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    Tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    Target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    Value string
    Value associated with the tag. Applicable only to CAA records.
    Weight float64
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    domainId Double
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    ttl Double
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type String
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    algorithm Double
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content String
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainsRecordV1Id String
    email String
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint String
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType Double
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag Double
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name String
    Name of the domain record. The name format depends on the record type, see the examples above.
    port Double
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority Double
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag String
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target String
    Canonical name of the host providing the service. Applicable only to SRV records.
    value String
    Value associated with the tag. Applicable only to CAA records.
    weight Double
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    domainId number
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    ttl number
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    algorithm number
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainsRecordV1Id string
    email string
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType number
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag number
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    port number
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority number
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    value string
    Value associated with the tag. Applicable only to CAA records.
    weight number
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    domain_id float
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    ttl float
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type str
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    algorithm float
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content str
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domains_record_v1_id str
    email str
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint str
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprint_type float
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag float
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name str
    Name of the domain record. The name format depends on the record type, see the examples above.
    port float
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority float
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag str
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target str
    Canonical name of the host providing the service. Applicable only to SRV records.
    value str
    Value associated with the tag. Applicable only to CAA records.
    weight float
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    domainId Number
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    ttl Number
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type String
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    algorithm Number
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content String
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainsRecordV1Id String
    email String
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint String
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType Number
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag Number
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name String
    Name of the domain record. The name format depends on the record type, see the examples above.
    port Number
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority Number
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag String
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target String
    Canonical name of the host providing the service. Applicable only to SRV records.
    value String
    Value associated with the tag. Applicable only to CAA records.
    weight Number
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the DomainsRecordV1 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 DomainsRecordV1 Resource

    Get an existing DomainsRecordV1 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?: DomainsRecordV1State, opts?: CustomResourceOptions): DomainsRecordV1
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            algorithm: Optional[float] = None,
            content: Optional[str] = None,
            domain_id: Optional[float] = None,
            domains_record_v1_id: Optional[str] = None,
            email: Optional[str] = None,
            fingerprint: Optional[str] = None,
            fingerprint_type: Optional[float] = None,
            flag: Optional[float] = None,
            name: Optional[str] = None,
            port: Optional[float] = None,
            priority: Optional[float] = None,
            tag: Optional[str] = None,
            target: Optional[str] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None,
            value: Optional[str] = None,
            weight: Optional[float] = None) -> DomainsRecordV1
    func GetDomainsRecordV1(ctx *Context, name string, id IDInput, state *DomainsRecordV1State, opts ...ResourceOption) (*DomainsRecordV1, error)
    public static DomainsRecordV1 Get(string name, Input<string> id, DomainsRecordV1State? state, CustomResourceOptions? opts = null)
    public static DomainsRecordV1 get(String name, Output<String> id, DomainsRecordV1State state, CustomResourceOptions options)
    resources:  _:    type: selectel:DomainsRecordV1    get:      id: ${id}
    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:
    Algorithm double
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    Content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    DomainId double
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    DomainsRecordV1Id string
    Email string
    Email of the domain administrator. Applicable only to SOA records.
    Fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    FingerprintType double
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    Flag double
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    Name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    Port double
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    Priority double
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    Tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    Target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    Ttl double
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    Type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    Value string
    Value associated with the tag. Applicable only to CAA records.
    Weight double
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    Algorithm float64
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    Content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    DomainId float64
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    DomainsRecordV1Id string
    Email string
    Email of the domain administrator. Applicable only to SOA records.
    Fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    FingerprintType float64
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    Flag float64
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    Name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    Port float64
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    Priority float64
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    Tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    Target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    Ttl float64
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    Type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    Value string
    Value associated with the tag. Applicable only to CAA records.
    Weight float64
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    algorithm Double
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content String
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainId Double
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    domainsRecordV1Id String
    email String
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint String
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType Double
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag Double
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name String
    Name of the domain record. The name format depends on the record type, see the examples above.
    port Double
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority Double
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag String
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target String
    Canonical name of the host providing the service. Applicable only to SRV records.
    ttl Double
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type String
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    value String
    Value associated with the tag. Applicable only to CAA records.
    weight Double
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    algorithm number
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content string
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainId number
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    domainsRecordV1Id string
    email string
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint string
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType number
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag number
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name string
    Name of the domain record. The name format depends on the record type, see the examples above.
    port number
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority number
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag string
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target string
    Canonical name of the host providing the service. Applicable only to SRV records.
    ttl number
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type string
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    value string
    Value associated with the tag. Applicable only to CAA records.
    weight number
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    algorithm float
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content str
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domain_id float
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    domains_record_v1_id str
    email str
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint str
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprint_type float
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag float
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name str
    Name of the domain record. The name format depends on the record type, see the examples above.
    port float
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority float
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag str
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target str
    Canonical name of the host providing the service. Applicable only to SRV records.
    ttl float
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type str
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    value str
    Value associated with the tag. Applicable only to CAA records.
    weight float
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.
    algorithm Number
    Algorithm of the public key. Applicable only to SSHFP records. Available values are RSA, DSA, ECDSA, Ed25519.
    content String
    Content of the record. Not applicable to SRV, SSHFP, CAA records.
    domainId Number
    Unique identifier of the associated domain. Changing this creates a new domain record. Retrieved from the selectel.DomainsDomainV1 resource.
    domainsRecordV1Id String
    email String
    Email of the domain administrator. Applicable only to SOA records.
    fingerprint String
    Hexadecimal representation of the hash result, as text. Applicable only to SSHFP records.
    fingerprintType Number
    Algorithm used to hash the public key. Applicable only to SSHFP records. Available values are SHA-1, SHA-256.
    flag Number
    Critical value that has a specific meaning per RFC. Applicable only to CAA records. The available range is from 0 to 128.
    name String
    Name of the domain record. The name format depends on the record type, see the examples above.
    port Number
    TCP or UDP port of the host of the service. Applicable only to SRV records.
    priority Number
    Priority of the records preferences. Applicable only to MX and SRV records. Lower value means more preferred.
    tag String
    Identifier of the property represented by the record. Applicable only to CAA records. Available values are issue, issuewild, iodef, auth, path, policy.
    target String
    Canonical name of the host providing the service. Applicable only to SRV records.
    ttl Number
    Time-to-live for the record in seconds. The available range is from 60 to 604800.
    type String
    Type of the record. Available values are A, AAAA, TXT, CNAME, NS, MX, SRV, SSHFP, ALIAS, CAA.
    value String
    Value associated with the tag. Applicable only to CAA records.
    weight Number
    Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV records.

    Import

    You can import a domain record:

    export OS_DOMAIN_NAME=<account_id>

    export OS_USERNAME=

    export OS_PASSWORD=

    $ pulumi import selectel:index/domainsRecordV1:DomainsRecordV1 record_1 <domain_id>/<record_id>
    

    where:

    • <account_id> — Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.

    • <username> — Name of the service user. To get the name, in the Control panel, go to Identity & Access ManagementUser management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.

    • <password> — Password of the service user.

    • <domain_id> — Unique identifier of the domain, for example, 45623. To get the domain ID, in the Control panel, go to Networks ServicesDNS Hosting ⟶ the domain page ⟶ copy the domain ID from the address bar.

    • <record_id> — Unique identifier of the record, for example, 123. To get the record ID, use DNS Hosting API.

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

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel