1. Packages
  2. Edgecenter Provider
  3. API Docs
  4. DnsZoneRecord
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

edgecenter.DnsZoneRecord

Explore with Pulumi AI

edgecenter logo
edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center

    Represent DNS Zone Record resource. https://dns.edgecenter.ru/zones

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as edgecenter from "@pulumi/edgecenter";
    
    const config = new pulumi.Config();
    const exampleDomain0 = config.get("exampleDomain0") || "examplezone.com";
    const examplezone0 = new edgecenter.DnsZone("examplezone0", {});
    const exampleRrset0 = new edgecenter.DnsZoneRecord("exampleRrset0", {
        zone: examplezone0.name,
        domain: examplezone0.name,
        type: "A",
        ttl: 100,
        meta: {},
        resourceRecords: [
            {
                content: "127.0.0.100",
            },
            {
                content: "127.0.0.200",
            },
        ],
    });
    const subdomainExamplezone = new edgecenter.DnsZoneRecord("subdomainExamplezone", {
        zone: "examplezone.com",
        domain: "subdomain.examplezone.com",
        type: "TXT",
        ttl: 10,
        filters: [{
            type: "geodistance",
            limit: 1,
            strict: true,
        }],
        meta: {},
        resourceRecords: [{
            content: "1234",
            enabled: true,
            meta: {
                latlongs: [
                    52.367,
                    4.9041,
                ],
                asns: [12345],
                ips: ["1.1.1.1"],
                notes: ["notes"],
                continents: ["asia"],
                countries: ["russia"],
                "default": true,
            },
        }],
    });
    const subdomainExamplezoneMx = new edgecenter.DnsZoneRecord("subdomainExamplezoneMx", {
        zone: "examplezone.com",
        domain: "subdomain.examplezone.com",
        type: "MX",
        ttl: 10,
        meta: {},
        resourceRecords: [{
            content: "10 mail.my.com.",
            enabled: true,
        }],
    });
    const string = "0 issue \"company.org;account=12345\"";
    const subdomainExamplezoneCaa = new edgecenter.DnsZoneRecord("subdomainExamplezoneCaa", {
        zone: "examplezone.com",
        domain: "subdomain.examplezone.com",
        type: "CAA",
        ttl: 10,
        meta: {},
        resourceRecords: [{
            content: string,
            enabled: true,
        }],
    });
    
    import pulumi
    import pulumi_edgecenter as edgecenter
    
    config = pulumi.Config()
    example_domain0 = config.get("exampleDomain0")
    if example_domain0 is None:
        example_domain0 = "examplezone.com"
    examplezone0 = edgecenter.DnsZone("examplezone0")
    example_rrset0 = edgecenter.DnsZoneRecord("exampleRrset0",
        zone=examplezone0.name,
        domain=examplezone0.name,
        type="A",
        ttl=100,
        meta={},
        resource_records=[
            {
                "content": "127.0.0.100",
            },
            {
                "content": "127.0.0.200",
            },
        ])
    subdomain_examplezone = edgecenter.DnsZoneRecord("subdomainExamplezone",
        zone="examplezone.com",
        domain="subdomain.examplezone.com",
        type="TXT",
        ttl=10,
        filters=[{
            "type": "geodistance",
            "limit": 1,
            "strict": True,
        }],
        meta={},
        resource_records=[{
            "content": "1234",
            "enabled": True,
            "meta": {
                "latlongs": [
                    52.367,
                    4.9041,
                ],
                "asns": [12345],
                "ips": ["1.1.1.1"],
                "notes": ["notes"],
                "continents": ["asia"],
                "countries": ["russia"],
                "default": True,
            },
        }])
    subdomain_examplezone_mx = edgecenter.DnsZoneRecord("subdomainExamplezoneMx",
        zone="examplezone.com",
        domain="subdomain.examplezone.com",
        type="MX",
        ttl=10,
        meta={},
        resource_records=[{
            "content": "10 mail.my.com.",
            "enabled": True,
        }])
    string = "0 issue \"company.org;account=12345\""
    subdomain_examplezone_caa = edgecenter.DnsZoneRecord("subdomainExamplezoneCaa",
        zone="examplezone.com",
        domain="subdomain.examplezone.com",
        type="CAA",
        ttl=10,
        meta={},
        resource_records=[{
            "content": string,
            "enabled": True,
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/edgecenter/edgecenter"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi/config"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		cfg := config.New(ctx, "")
    		exampleDomain0 := "examplezone.com"
    		if param := cfg.Get("exampleDomain0"); param != "" {
    			exampleDomain0 = param
    		}
    		examplezone0, err := edgecenter.NewDnsZone(ctx, "examplezone0", nil)
    		if err != nil {
    			return err
    		}
    		_, err = edgecenter.NewDnsZoneRecord(ctx, "exampleRrset0", &edgecenter.DnsZoneRecordArgs{
    			Zone:   examplezone0.Name,
    			Domain: examplezone0.Name,
    			Type:   pulumi.String("A"),
    			Ttl:    pulumi.Float64(100),
    			Meta:   &edgecenter.DnsZoneRecordMetaArgs{},
    			ResourceRecords: edgecenter.DnsZoneRecordResourceRecordArray{
    				&edgecenter.DnsZoneRecordResourceRecordArgs{
    					Content: pulumi.String("127.0.0.100"),
    				},
    				&edgecenter.DnsZoneRecordResourceRecordArgs{
    					Content: pulumi.String("127.0.0.200"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = edgecenter.NewDnsZoneRecord(ctx, "subdomainExamplezone", &edgecenter.DnsZoneRecordArgs{
    			Zone:   pulumi.String("examplezone.com"),
    			Domain: pulumi.String("subdomain.examplezone.com"),
    			Type:   pulumi.String("TXT"),
    			Ttl:    pulumi.Float64(10),
    			Filters: edgecenter.DnsZoneRecordFilterArray{
    				&edgecenter.DnsZoneRecordFilterArgs{
    					Type:   pulumi.String("geodistance"),
    					Limit:  pulumi.Float64(1),
    					Strict: pulumi.Bool(true),
    				},
    			},
    			Meta: &edgecenter.DnsZoneRecordMetaArgs{},
    			ResourceRecords: edgecenter.DnsZoneRecordResourceRecordArray{
    				&edgecenter.DnsZoneRecordResourceRecordArgs{
    					Content: pulumi.String("1234"),
    					Enabled: pulumi.Bool(true),
    					Meta: &edgecenter.DnsZoneRecordResourceRecordMetaArgs{
    						Latlongs: pulumi.Float64Array{
    							pulumi.Float64(52.367),
    							pulumi.Float64(4.9041),
    						},
    						Asns: pulumi.Float64Array{
    							pulumi.Float64(12345),
    						},
    						Ips: pulumi.StringArray{
    							pulumi.String("1.1.1.1"),
    						},
    						Notes: pulumi.StringArray{
    							pulumi.String("notes"),
    						},
    						Continents: pulumi.StringArray{
    							pulumi.String("asia"),
    						},
    						Countries: pulumi.StringArray{
    							pulumi.String("russia"),
    						},
    						Default: pulumi.Bool(true),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = edgecenter.NewDnsZoneRecord(ctx, "subdomainExamplezoneMx", &edgecenter.DnsZoneRecordArgs{
    			Zone:   pulumi.String("examplezone.com"),
    			Domain: pulumi.String("subdomain.examplezone.com"),
    			Type:   pulumi.String("MX"),
    			Ttl:    pulumi.Float64(10),
    			Meta:   &edgecenter.DnsZoneRecordMetaArgs{},
    			ResourceRecords: edgecenter.DnsZoneRecordResourceRecordArray{
    				&edgecenter.DnsZoneRecordResourceRecordArgs{
    					Content: pulumi.String("10 mail.my.com."),
    					Enabled: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		string := "0 issue \"company.org;account=12345\""
    		_, err = edgecenter.NewDnsZoneRecord(ctx, "subdomainExamplezoneCaa", &edgecenter.DnsZoneRecordArgs{
    			Zone:   pulumi.String("examplezone.com"),
    			Domain: pulumi.String("subdomain.examplezone.com"),
    			Type:   pulumi.String("CAA"),
    			Ttl:    pulumi.Float64(10),
    			Meta:   &edgecenter.DnsZoneRecordMetaArgs{},
    			ResourceRecords: edgecenter.DnsZoneRecordResourceRecordArray{
    				&edgecenter.DnsZoneRecordResourceRecordArgs{
    					Content: pulumi.String(string),
    					Enabled: pulumi.Bool(true),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Edgecenter = Pulumi.Edgecenter;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Config();
        var exampleDomain0 = config.Get("exampleDomain0") ?? "examplezone.com";
        var examplezone0 = new Edgecenter.DnsZone("examplezone0");
    
        var exampleRrset0 = new Edgecenter.DnsZoneRecord("exampleRrset0", new()
        {
            Zone = examplezone0.Name,
            Domain = examplezone0.Name,
            Type = "A",
            Ttl = 100,
            Meta = null,
            ResourceRecords = new[]
            {
                new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
                {
                    Content = "127.0.0.100",
                },
                new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
                {
                    Content = "127.0.0.200",
                },
            },
        });
    
        var subdomainExamplezone = new Edgecenter.DnsZoneRecord("subdomainExamplezone", new()
        {
            Zone = "examplezone.com",
            Domain = "subdomain.examplezone.com",
            Type = "TXT",
            Ttl = 10,
            Filters = new[]
            {
                new Edgecenter.Inputs.DnsZoneRecordFilterArgs
                {
                    Type = "geodistance",
                    Limit = 1,
                    Strict = true,
                },
            },
            Meta = null,
            ResourceRecords = new[]
            {
                new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
                {
                    Content = "1234",
                    Enabled = true,
                    Meta = new Edgecenter.Inputs.DnsZoneRecordResourceRecordMetaArgs
                    {
                        Latlongs = new[]
                        {
                            52.367,
                            4.9041,
                        },
                        Asns = new[]
                        {
                            12345,
                        },
                        Ips = new[]
                        {
                            "1.1.1.1",
                        },
                        Notes = new[]
                        {
                            "notes",
                        },
                        Continents = new[]
                        {
                            "asia",
                        },
                        Countries = new[]
                        {
                            "russia",
                        },
                        Default = true,
                    },
                },
            },
        });
    
        var subdomainExamplezoneMx = new Edgecenter.DnsZoneRecord("subdomainExamplezoneMx", new()
        {
            Zone = "examplezone.com",
            Domain = "subdomain.examplezone.com",
            Type = "MX",
            Ttl = 10,
            Meta = null,
            ResourceRecords = new[]
            {
                new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
                {
                    Content = "10 mail.my.com.",
                    Enabled = true,
                },
            },
        });
    
        var @string = "0 issue \"company.org;account=12345\"";
    
        var subdomainExamplezoneCaa = new Edgecenter.DnsZoneRecord("subdomainExamplezoneCaa", new()
        {
            Zone = "examplezone.com",
            Domain = "subdomain.examplezone.com",
            Type = "CAA",
            Ttl = 10,
            Meta = null,
            ResourceRecords = new[]
            {
                new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
                {
                    Content = @string,
                    Enabled = true,
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.edgecenter.DnsZone;
    import com.pulumi.edgecenter.DnsZoneRecord;
    import com.pulumi.edgecenter.DnsZoneRecordArgs;
    import com.pulumi.edgecenter.inputs.DnsZoneRecordMetaArgs;
    import com.pulumi.edgecenter.inputs.DnsZoneRecordResourceRecordArgs;
    import com.pulumi.edgecenter.inputs.DnsZoneRecordFilterArgs;
    import com.pulumi.edgecenter.inputs.DnsZoneRecordResourceRecordMetaArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var config = ctx.config();
            final var exampleDomain0 = config.get("exampleDomain0").orElse("examplezone.com");
            var examplezone0 = new DnsZone("examplezone0");
    
            var exampleRrset0 = new DnsZoneRecord("exampleRrset0", DnsZoneRecordArgs.builder()
                .zone(examplezone0.name())
                .domain(examplezone0.name())
                .type("A")
                .ttl(100)
                .meta()
                .resourceRecords(            
                    DnsZoneRecordResourceRecordArgs.builder()
                        .content("127.0.0.100")
                        .build(),
                    DnsZoneRecordResourceRecordArgs.builder()
                        .content("127.0.0.200")
                        .build())
                .build());
    
            var subdomainExamplezone = new DnsZoneRecord("subdomainExamplezone", DnsZoneRecordArgs.builder()
                .zone("examplezone.com")
                .domain("subdomain.examplezone.com")
                .type("TXT")
                .ttl(10)
                .filters(DnsZoneRecordFilterArgs.builder()
                    .type("geodistance")
                    .limit(1)
                    .strict(true)
                    .build())
                .meta()
                .resourceRecords(DnsZoneRecordResourceRecordArgs.builder()
                    .content("1234")
                    .enabled(true)
                    .meta(DnsZoneRecordResourceRecordMetaArgs.builder()
                        .latlongs(                    
                            52.367,
                            4.9041)
                        .asns(12345)
                        .ips("1.1.1.1")
                        .notes("notes")
                        .continents("asia")
                        .countries("russia")
                        .default_(true)
                        .build())
                    .build())
                .build());
    
            var subdomainExamplezoneMx = new DnsZoneRecord("subdomainExamplezoneMx", DnsZoneRecordArgs.builder()
                .zone("examplezone.com")
                .domain("subdomain.examplezone.com")
                .type("MX")
                .ttl(10)
                .meta()
                .resourceRecords(DnsZoneRecordResourceRecordArgs.builder()
                    .content("10 mail.my.com.")
                    .enabled(true)
                    .build())
                .build());
    
            final var string = "0 issue \"company.org;account=12345\"";
    
            var subdomainExamplezoneCaa = new DnsZoneRecord("subdomainExamplezoneCaa", DnsZoneRecordArgs.builder()
                .zone("examplezone.com")
                .domain("subdomain.examplezone.com")
                .type("CAA")
                .ttl(10)
                .meta()
                .resourceRecords(DnsZoneRecordResourceRecordArgs.builder()
                    .content(string)
                    .enabled(true)
                    .build())
                .build());
    
        }
    }
    
    configuration:
      # // example0: managing zone and records by TF using variables
      # //
      exampleDomain0:
        type: string
        default: examplezone.com
    resources:
      examplezone0:
        type: edgecenter:DnsZone
      exampleRrset0:
        type: edgecenter:DnsZoneRecord
        properties:
          zone: ${examplezone0.name}
          domain: ${examplezone0.name}
          type: A
          ttl: 100
          meta: {}
          resourceRecords:
            - content: 127.0.0.100
            - content: 127.0.0.200
      subdomainExamplezone:
        type: edgecenter:DnsZoneRecord
        properties:
          zone: examplezone.com
          domain: subdomain.examplezone.com
          type: TXT
          ttl: 10
          filters:
            - type: geodistance
              limit: 1
              strict: true
          meta: {}
          resourceRecords:
            - content: '1234'
              enabled: true
              meta:
                latlongs:
                  - 52.367
                  - 4.9041
                asns:
                  - 12345
                ips:
                  - 1.1.1.1
                notes:
                  - notes
                continents:
                  - asia
                countries:
                  - russia
                default: true
      subdomainExamplezoneMx:
        type: edgecenter:DnsZoneRecord
        properties:
          zone: examplezone.com
          domain: subdomain.examplezone.com
          type: MX
          ttl: 10
          meta: {}
          resourceRecords:
            - content: 10 mail.my.com.
              enabled: true
      subdomainExamplezoneCaa:
        type: edgecenter:DnsZoneRecord
        properties:
          zone: examplezone.com
          domain: subdomain.examplezone.com
          type: CAA
          ttl: 10
          meta: {}
          resourceRecords:
            - content: ${string}
              enabled: true
    variables:
      string: 0 issue "company.org;account=12345"
    

    Create DnsZoneRecord Resource

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

    Constructor syntax

    new DnsZoneRecord(name: string, args: DnsZoneRecordArgs, opts?: CustomResourceOptions);
    @overload
    def DnsZoneRecord(resource_name: str,
                      args: DnsZoneRecordArgs,
                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def DnsZoneRecord(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      domain: Optional[str] = None,
                      meta: Optional[DnsZoneRecordMetaArgs] = None,
                      resource_records: Optional[Sequence[DnsZoneRecordResourceRecordArgs]] = None,
                      type: Optional[str] = None,
                      zone: Optional[str] = None,
                      dns_zone_record_id: Optional[str] = None,
                      filters: Optional[Sequence[DnsZoneRecordFilterArgs]] = None,
                      ttl: Optional[float] = None)
    func NewDnsZoneRecord(ctx *Context, name string, args DnsZoneRecordArgs, opts ...ResourceOption) (*DnsZoneRecord, error)
    public DnsZoneRecord(string name, DnsZoneRecordArgs args, CustomResourceOptions? opts = null)
    public DnsZoneRecord(String name, DnsZoneRecordArgs args)
    public DnsZoneRecord(String name, DnsZoneRecordArgs args, CustomResourceOptions options)
    
    type: edgecenter:DnsZoneRecord
    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 DnsZoneRecordArgs
    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 DnsZoneRecordArgs
    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 DnsZoneRecordArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args DnsZoneRecordArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args DnsZoneRecordArgs
    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 dnsZoneRecordResource = new Edgecenter.DnsZoneRecord("dnsZoneRecordResource", new()
    {
        Domain = "string",
        Meta = new Edgecenter.Inputs.DnsZoneRecordMetaArgs
        {
            Failover = new Edgecenter.Inputs.DnsZoneRecordMetaFailoverArgs
            {
                Frequency = 0,
                Protocol = "string",
                Timeout = 0,
                Host = "string",
                HttpStatusCode = 0,
                Method = "string",
                Port = 0,
                Regexp = "string",
                Tls = false,
                Url = "string",
                Verify = false,
            },
        },
        ResourceRecords = new[]
        {
            new Edgecenter.Inputs.DnsZoneRecordResourceRecordArgs
            {
                Content = "string",
                Enabled = false,
                Meta = new Edgecenter.Inputs.DnsZoneRecordResourceRecordMetaArgs
                {
                    Asns = new[]
                    {
                        0,
                    },
                    Continents = new[]
                    {
                        "string",
                    },
                    Countries = new[]
                    {
                        "string",
                    },
                    Default = false,
                    Ips = new[]
                    {
                        "string",
                    },
                    Latlongs = new[]
                    {
                        0,
                    },
                    Notes = new[]
                    {
                        "string",
                    },
                },
            },
        },
        Type = "string",
        Zone = "string",
        DnsZoneRecordId = "string",
        Filters = new[]
        {
            new Edgecenter.Inputs.DnsZoneRecordFilterArgs
            {
                Type = "string",
                Limit = 0,
                Strict = false,
            },
        },
        Ttl = 0,
    });
    
    example, err := edgecenter.NewDnsZoneRecord(ctx, "dnsZoneRecordResource", &edgecenter.DnsZoneRecordArgs{
    	Domain: pulumi.String("string"),
    	Meta: &edgecenter.DnsZoneRecordMetaArgs{
    		Failover: &edgecenter.DnsZoneRecordMetaFailoverArgs{
    			Frequency:      pulumi.Float64(0),
    			Protocol:       pulumi.String("string"),
    			Timeout:        pulumi.Float64(0),
    			Host:           pulumi.String("string"),
    			HttpStatusCode: pulumi.Float64(0),
    			Method:         pulumi.String("string"),
    			Port:           pulumi.Float64(0),
    			Regexp:         pulumi.String("string"),
    			Tls:            pulumi.Bool(false),
    			Url:            pulumi.String("string"),
    			Verify:         pulumi.Bool(false),
    		},
    	},
    	ResourceRecords: edgecenter.DnsZoneRecordResourceRecordArray{
    		&edgecenter.DnsZoneRecordResourceRecordArgs{
    			Content: pulumi.String("string"),
    			Enabled: pulumi.Bool(false),
    			Meta: &edgecenter.DnsZoneRecordResourceRecordMetaArgs{
    				Asns: pulumi.Float64Array{
    					pulumi.Float64(0),
    				},
    				Continents: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Countries: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Default: pulumi.Bool(false),
    				Ips: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    				Latlongs: pulumi.Float64Array{
    					pulumi.Float64(0),
    				},
    				Notes: pulumi.StringArray{
    					pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Type:            pulumi.String("string"),
    	Zone:            pulumi.String("string"),
    	DnsZoneRecordId: pulumi.String("string"),
    	Filters: edgecenter.DnsZoneRecordFilterArray{
    		&edgecenter.DnsZoneRecordFilterArgs{
    			Type:   pulumi.String("string"),
    			Limit:  pulumi.Float64(0),
    			Strict: pulumi.Bool(false),
    		},
    	},
    	Ttl: pulumi.Float64(0),
    })
    
    var dnsZoneRecordResource = new DnsZoneRecord("dnsZoneRecordResource", DnsZoneRecordArgs.builder()
        .domain("string")
        .meta(DnsZoneRecordMetaArgs.builder()
            .failover(DnsZoneRecordMetaFailoverArgs.builder()
                .frequency(0)
                .protocol("string")
                .timeout(0)
                .host("string")
                .httpStatusCode(0)
                .method("string")
                .port(0)
                .regexp("string")
                .tls(false)
                .url("string")
                .verify(false)
                .build())
            .build())
        .resourceRecords(DnsZoneRecordResourceRecordArgs.builder()
            .content("string")
            .enabled(false)
            .meta(DnsZoneRecordResourceRecordMetaArgs.builder()
                .asns(0)
                .continents("string")
                .countries("string")
                .default_(false)
                .ips("string")
                .latlongs(0)
                .notes("string")
                .build())
            .build())
        .type("string")
        .zone("string")
        .dnsZoneRecordId("string")
        .filters(DnsZoneRecordFilterArgs.builder()
            .type("string")
            .limit(0)
            .strict(false)
            .build())
        .ttl(0)
        .build());
    
    dns_zone_record_resource = edgecenter.DnsZoneRecord("dnsZoneRecordResource",
        domain="string",
        meta={
            "failover": {
                "frequency": 0,
                "protocol": "string",
                "timeout": 0,
                "host": "string",
                "http_status_code": 0,
                "method": "string",
                "port": 0,
                "regexp": "string",
                "tls": False,
                "url": "string",
                "verify": False,
            },
        },
        resource_records=[{
            "content": "string",
            "enabled": False,
            "meta": {
                "asns": [0],
                "continents": ["string"],
                "countries": ["string"],
                "default": False,
                "ips": ["string"],
                "latlongs": [0],
                "notes": ["string"],
            },
        }],
        type="string",
        zone="string",
        dns_zone_record_id="string",
        filters=[{
            "type": "string",
            "limit": 0,
            "strict": False,
        }],
        ttl=0)
    
    const dnsZoneRecordResource = new edgecenter.DnsZoneRecord("dnsZoneRecordResource", {
        domain: "string",
        meta: {
            failover: {
                frequency: 0,
                protocol: "string",
                timeout: 0,
                host: "string",
                httpStatusCode: 0,
                method: "string",
                port: 0,
                regexp: "string",
                tls: false,
                url: "string",
                verify: false,
            },
        },
        resourceRecords: [{
            content: "string",
            enabled: false,
            meta: {
                asns: [0],
                continents: ["string"],
                countries: ["string"],
                "default": false,
                ips: ["string"],
                latlongs: [0],
                notes: ["string"],
            },
        }],
        type: "string",
        zone: "string",
        dnsZoneRecordId: "string",
        filters: [{
            type: "string",
            limit: 0,
            strict: false,
        }],
        ttl: 0,
    });
    
    type: edgecenter:DnsZoneRecord
    properties:
        dnsZoneRecordId: string
        domain: string
        filters:
            - limit: 0
              strict: false
              type: string
        meta:
            failover:
                frequency: 0
                host: string
                httpStatusCode: 0
                method: string
                port: 0
                protocol: string
                regexp: string
                timeout: 0
                tls: false
                url: string
                verify: false
        resourceRecords:
            - content: string
              enabled: false
              meta:
                asns:
                    - 0
                continents:
                    - string
                countries:
                    - string
                default: false
                ips:
                    - string
                latlongs:
                    - 0
                notes:
                    - string
        ttl: 0
        type: string
        zone: string
    

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

    Domain string
    A domain of DNS Zone Record resource.
    Meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    ResourceRecords List<DnsZoneRecordResourceRecord>
    An array of contents with meta of DNS Zone Record resource.
    Type string
    A type of DNS Zone Record resource.
    Zone string
    A zone of DNS Zone Record resource.
    DnsZoneRecordId string
    The ID of this resource.
    Filters List<DnsZoneRecordFilter>
    Ttl double
    A ttl of DNS Zone Record resource.
    Domain string
    A domain of DNS Zone Record resource.
    Meta DnsZoneRecordMetaArgs
    A meta of DNS Zone Record resource.
    ResourceRecords []DnsZoneRecordResourceRecordArgs
    An array of contents with meta of DNS Zone Record resource.
    Type string
    A type of DNS Zone Record resource.
    Zone string
    A zone of DNS Zone Record resource.
    DnsZoneRecordId string
    The ID of this resource.
    Filters []DnsZoneRecordFilterArgs
    Ttl float64
    A ttl of DNS Zone Record resource.
    domain String
    A domain of DNS Zone Record resource.
    meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    resourceRecords List<DnsZoneRecordResourceRecord>
    An array of contents with meta of DNS Zone Record resource.
    type String
    A type of DNS Zone Record resource.
    zone String
    A zone of DNS Zone Record resource.
    dnsZoneRecordId String
    The ID of this resource.
    filters List<DnsZoneRecordFilter>
    ttl Double
    A ttl of DNS Zone Record resource.
    domain string
    A domain of DNS Zone Record resource.
    meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    resourceRecords DnsZoneRecordResourceRecord[]
    An array of contents with meta of DNS Zone Record resource.
    type string
    A type of DNS Zone Record resource.
    zone string
    A zone of DNS Zone Record resource.
    dnsZoneRecordId string
    The ID of this resource.
    filters DnsZoneRecordFilter[]
    ttl number
    A ttl of DNS Zone Record resource.
    domain str
    A domain of DNS Zone Record resource.
    meta DnsZoneRecordMetaArgs
    A meta of DNS Zone Record resource.
    resource_records Sequence[DnsZoneRecordResourceRecordArgs]
    An array of contents with meta of DNS Zone Record resource.
    type str
    A type of DNS Zone Record resource.
    zone str
    A zone of DNS Zone Record resource.
    dns_zone_record_id str
    The ID of this resource.
    filters Sequence[DnsZoneRecordFilterArgs]
    ttl float
    A ttl of DNS Zone Record resource.
    domain String
    A domain of DNS Zone Record resource.
    meta Property Map
    A meta of DNS Zone Record resource.
    resourceRecords List<Property Map>
    An array of contents with meta of DNS Zone Record resource.
    type String
    A type of DNS Zone Record resource.
    zone String
    A zone of DNS Zone Record resource.
    dnsZoneRecordId String
    The ID of this resource.
    filters List<Property Map>
    ttl Number
    A ttl of DNS Zone Record resource.

    Outputs

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

    Get an existing DnsZoneRecord 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?: DnsZoneRecordState, opts?: CustomResourceOptions): DnsZoneRecord
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            dns_zone_record_id: Optional[str] = None,
            domain: Optional[str] = None,
            filters: Optional[Sequence[DnsZoneRecordFilterArgs]] = None,
            meta: Optional[DnsZoneRecordMetaArgs] = None,
            resource_records: Optional[Sequence[DnsZoneRecordResourceRecordArgs]] = None,
            ttl: Optional[float] = None,
            type: Optional[str] = None,
            zone: Optional[str] = None) -> DnsZoneRecord
    func GetDnsZoneRecord(ctx *Context, name string, id IDInput, state *DnsZoneRecordState, opts ...ResourceOption) (*DnsZoneRecord, error)
    public static DnsZoneRecord Get(string name, Input<string> id, DnsZoneRecordState? state, CustomResourceOptions? opts = null)
    public static DnsZoneRecord get(String name, Output<String> id, DnsZoneRecordState state, CustomResourceOptions options)
    resources:  _:    type: edgecenter:DnsZoneRecord    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:
    DnsZoneRecordId string
    The ID of this resource.
    Domain string
    A domain of DNS Zone Record resource.
    Filters List<DnsZoneRecordFilter>
    Meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    ResourceRecords List<DnsZoneRecordResourceRecord>
    An array of contents with meta of DNS Zone Record resource.
    Ttl double
    A ttl of DNS Zone Record resource.
    Type string
    A type of DNS Zone Record resource.
    Zone string
    A zone of DNS Zone Record resource.
    DnsZoneRecordId string
    The ID of this resource.
    Domain string
    A domain of DNS Zone Record resource.
    Filters []DnsZoneRecordFilterArgs
    Meta DnsZoneRecordMetaArgs
    A meta of DNS Zone Record resource.
    ResourceRecords []DnsZoneRecordResourceRecordArgs
    An array of contents with meta of DNS Zone Record resource.
    Ttl float64
    A ttl of DNS Zone Record resource.
    Type string
    A type of DNS Zone Record resource.
    Zone string
    A zone of DNS Zone Record resource.
    dnsZoneRecordId String
    The ID of this resource.
    domain String
    A domain of DNS Zone Record resource.
    filters List<DnsZoneRecordFilter>
    meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    resourceRecords List<DnsZoneRecordResourceRecord>
    An array of contents with meta of DNS Zone Record resource.
    ttl Double
    A ttl of DNS Zone Record resource.
    type String
    A type of DNS Zone Record resource.
    zone String
    A zone of DNS Zone Record resource.
    dnsZoneRecordId string
    The ID of this resource.
    domain string
    A domain of DNS Zone Record resource.
    filters DnsZoneRecordFilter[]
    meta DnsZoneRecordMeta
    A meta of DNS Zone Record resource.
    resourceRecords DnsZoneRecordResourceRecord[]
    An array of contents with meta of DNS Zone Record resource.
    ttl number
    A ttl of DNS Zone Record resource.
    type string
    A type of DNS Zone Record resource.
    zone string
    A zone of DNS Zone Record resource.
    dns_zone_record_id str
    The ID of this resource.
    domain str
    A domain of DNS Zone Record resource.
    filters Sequence[DnsZoneRecordFilterArgs]
    meta DnsZoneRecordMetaArgs
    A meta of DNS Zone Record resource.
    resource_records Sequence[DnsZoneRecordResourceRecordArgs]
    An array of contents with meta of DNS Zone Record resource.
    ttl float
    A ttl of DNS Zone Record resource.
    type str
    A type of DNS Zone Record resource.
    zone str
    A zone of DNS Zone Record resource.
    dnsZoneRecordId String
    The ID of this resource.
    domain String
    A domain of DNS Zone Record resource.
    filters List<Property Map>
    meta Property Map
    A meta of DNS Zone Record resource.
    resourceRecords List<Property Map>
    An array of contents with meta of DNS Zone Record resource.
    ttl Number
    A ttl of DNS Zone Record resource.
    type String
    A type of DNS Zone Record resource.
    zone String
    A zone of DNS Zone Record resource.

    Supporting Types

    DnsZoneRecordFilter, DnsZoneRecordFilterArgs

    Type string
    A DNS Zone Record filter option that describe a name of filter.
    Limit double
    A DNS Zone Record filter option that describe how many records will be percolated.
    Strict bool
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
    Type string
    A DNS Zone Record filter option that describe a name of filter.
    Limit float64
    A DNS Zone Record filter option that describe how many records will be percolated.
    Strict bool
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
    type String
    A DNS Zone Record filter option that describe a name of filter.
    limit Double
    A DNS Zone Record filter option that describe how many records will be percolated.
    strict Boolean
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
    type string
    A DNS Zone Record filter option that describe a name of filter.
    limit number
    A DNS Zone Record filter option that describe how many records will be percolated.
    strict boolean
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
    type str
    A DNS Zone Record filter option that describe a name of filter.
    limit float
    A DNS Zone Record filter option that describe how many records will be percolated.
    strict bool
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.
    type String
    A DNS Zone Record filter option that describe a name of filter.
    limit Number
    A DNS Zone Record filter option that describe how many records will be percolated.
    strict Boolean
    A DNS Zone Record filter option that describe possibility to return answers if no records were percolated through filter.

    DnsZoneRecordMeta, DnsZoneRecordMetaArgs

    Failover DnsZoneRecordMetaFailover
    A failover meta of DNS Zone Record resource.
    Failover DnsZoneRecordMetaFailover
    A failover meta of DNS Zone Record resource.
    failover DnsZoneRecordMetaFailover
    A failover meta of DNS Zone Record resource.
    failover DnsZoneRecordMetaFailover
    A failover meta of DNS Zone Record resource.
    failover DnsZoneRecordMetaFailover
    A failover meta of DNS Zone Record resource.
    failover Property Map
    A failover meta of DNS Zone Record resource.

    DnsZoneRecordMetaFailover, DnsZoneRecordMetaFailoverArgs

    Frequency double
    A failover frequency of DNS Zone Record resource.
    Protocol string
    A failover protocol of DNS Zone Record resource.
    Timeout double
    A failover timeout of DNS Zone Record resource.
    Host string
    A failover host of DNS Zone Record resource.
    HttpStatusCode double
    A failover http status code of DNS Zone Record resource.
    Method string
    A failover method of DNS Zone Record resource.
    Port double
    A failover port of DNS Zone Record resource.
    Regexp string
    A failover regexp of DNS Zone Record resource.
    Tls bool
    A failover tls of DNS Zone Record resource.
    Url string
    A failover url of DNS Zone Record resource.
    Verify bool
    A failover verify of DNS Zone Record resource.
    Frequency float64
    A failover frequency of DNS Zone Record resource.
    Protocol string
    A failover protocol of DNS Zone Record resource.
    Timeout float64
    A failover timeout of DNS Zone Record resource.
    Host string
    A failover host of DNS Zone Record resource.
    HttpStatusCode float64
    A failover http status code of DNS Zone Record resource.
    Method string
    A failover method of DNS Zone Record resource.
    Port float64
    A failover port of DNS Zone Record resource.
    Regexp string
    A failover regexp of DNS Zone Record resource.
    Tls bool
    A failover tls of DNS Zone Record resource.
    Url string
    A failover url of DNS Zone Record resource.
    Verify bool
    A failover verify of DNS Zone Record resource.
    frequency Double
    A failover frequency of DNS Zone Record resource.
    protocol String
    A failover protocol of DNS Zone Record resource.
    timeout Double
    A failover timeout of DNS Zone Record resource.
    host String
    A failover host of DNS Zone Record resource.
    httpStatusCode Double
    A failover http status code of DNS Zone Record resource.
    method String
    A failover method of DNS Zone Record resource.
    port Double
    A failover port of DNS Zone Record resource.
    regexp String
    A failover regexp of DNS Zone Record resource.
    tls Boolean
    A failover tls of DNS Zone Record resource.
    url String
    A failover url of DNS Zone Record resource.
    verify Boolean
    A failover verify of DNS Zone Record resource.
    frequency number
    A failover frequency of DNS Zone Record resource.
    protocol string
    A failover protocol of DNS Zone Record resource.
    timeout number
    A failover timeout of DNS Zone Record resource.
    host string
    A failover host of DNS Zone Record resource.
    httpStatusCode number
    A failover http status code of DNS Zone Record resource.
    method string
    A failover method of DNS Zone Record resource.
    port number
    A failover port of DNS Zone Record resource.
    regexp string
    A failover regexp of DNS Zone Record resource.
    tls boolean
    A failover tls of DNS Zone Record resource.
    url string
    A failover url of DNS Zone Record resource.
    verify boolean
    A failover verify of DNS Zone Record resource.
    frequency float
    A failover frequency of DNS Zone Record resource.
    protocol str
    A failover protocol of DNS Zone Record resource.
    timeout float
    A failover timeout of DNS Zone Record resource.
    host str
    A failover host of DNS Zone Record resource.
    http_status_code float
    A failover http status code of DNS Zone Record resource.
    method str
    A failover method of DNS Zone Record resource.
    port float
    A failover port of DNS Zone Record resource.
    regexp str
    A failover regexp of DNS Zone Record resource.
    tls bool
    A failover tls of DNS Zone Record resource.
    url str
    A failover url of DNS Zone Record resource.
    verify bool
    A failover verify of DNS Zone Record resource.
    frequency Number
    A failover frequency of DNS Zone Record resource.
    protocol String
    A failover protocol of DNS Zone Record resource.
    timeout Number
    A failover timeout of DNS Zone Record resource.
    host String
    A failover host of DNS Zone Record resource.
    httpStatusCode Number
    A failover http status code of DNS Zone Record resource.
    method String
    A failover method of DNS Zone Record resource.
    port Number
    A failover port of DNS Zone Record resource.
    regexp String
    A failover regexp of DNS Zone Record resource.
    tls Boolean
    A failover tls of DNS Zone Record resource.
    url String
    A failover url of DNS Zone Record resource.
    verify Boolean
    A failover verify of DNS Zone Record resource.

    DnsZoneRecordResourceRecord, DnsZoneRecordResourceRecordArgs

    Content string
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    Enabled bool
    Manage of public appearing of DNS Zone Record resource.
    Meta DnsZoneRecordResourceRecordMeta
    Content string
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    Enabled bool
    Manage of public appearing of DNS Zone Record resource.
    Meta DnsZoneRecordResourceRecordMeta
    content String
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    enabled Boolean
    Manage of public appearing of DNS Zone Record resource.
    meta DnsZoneRecordResourceRecordMeta
    content string
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    enabled boolean
    Manage of public appearing of DNS Zone Record resource.
    meta DnsZoneRecordResourceRecordMeta
    content str
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    enabled bool
    Manage of public appearing of DNS Zone Record resource.
    meta DnsZoneRecordResourceRecordMeta
    content String
    A content of DNS Zone Record resource. (TXT: 'anyString', MX: '50 mail.company.io.', CAA: '0 issue "company.org; account=12345"')
    enabled Boolean
    Manage of public appearing of DNS Zone Record resource.
    meta Property Map

    DnsZoneRecordResourceRecordMeta, DnsZoneRecordResourceRecordMetaArgs

    Asns List<double>
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    Continents List<string>
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    Countries List<string>
    Countries meta (e.g. USA) of DNS Zone Record resource.
    Default bool
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    Ips List<string>
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    Latlongs List<double>
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    Notes List<string>
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.
    Asns []float64
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    Continents []string
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    Countries []string
    Countries meta (e.g. USA) of DNS Zone Record resource.
    Default bool
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    Ips []string
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    Latlongs []float64
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    Notes []string
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.
    asns List<Double>
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    continents List<String>
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    countries List<String>
    Countries meta (e.g. USA) of DNS Zone Record resource.
    default_ Boolean
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    ips List<String>
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    latlongs List<Double>
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    notes List<String>
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.
    asns number[]
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    continents string[]
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    countries string[]
    Countries meta (e.g. USA) of DNS Zone Record resource.
    default boolean
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    ips string[]
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    latlongs number[]
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    notes string[]
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.
    asns Sequence[float]
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    continents Sequence[str]
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    countries Sequence[str]
    Countries meta (e.g. USA) of DNS Zone Record resource.
    default bool
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    ips Sequence[str]
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    latlongs Sequence[float]
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    notes Sequence[str]
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.
    asns List<Number>
    An asn meta (e.g. 12345) of DNS Zone Record resource.
    continents List<String>
    Continents meta (e.g. Asia) of DNS Zone Record resource.
    countries List<String>
    Countries meta (e.g. USA) of DNS Zone Record resource.
    default Boolean
    Fallback meta equals true marks records which are used as a default answer (when nothing was selected by specified meta fields).
    ips List<String>
    An ip meta (e.g. 127.0.0.0) of DNS Zone Record resource.
    latlongs List<Number>
    A latlong meta (e.g. 27.988056, 86.925278) of DNS Zone Record resource.
    notes List<String>
    A notes meta (e.g. Miami DC) of DNS Zone Record resource.

    Import

    import using zone:domain:type format

    $ pulumi import edgecenter:index/dnsZoneRecord:DnsZoneRecord example_rrset0 example.com:domain.example.com:A
    

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

    Package Details

    Repository
    edgecenter edge-center/terraform-provider-edgecenter
    License
    Notes
    This Pulumi package is based on the edgecenter Terraform Provider.
    edgecenter logo
    edgecenter 0.8.0 published on Wednesday, Apr 30, 2025 by edge-center