gcorelabs.DnsZoneRecord
Explore with Pulumi AI
Represent DNS Zone Record resource. https://dns.gcorelabs.com/zones
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
const config = new pulumi.Config();
const exampleDomain0 = config.get("exampleDomain0") || "examplezone.com";
const examplezone0 = new gcore.index.Gcore_dns_zone("examplezone0", {name: exampleDomain0});
const exampleRrset0 = new gcore.index.Gcore_dns_zone_record("exampleRrset0", {
zone: examplezone0.name,
domain: examplezone0.name,
type: "A",
ttl: 100,
resourceRecord: [
{
content: "127.0.0.100",
},
{
content: "127.0.0.200",
},
],
});
//
// example1: managing zone outside of TF
//
const subdomainExamplezone = new gcore.index.Gcore_dns_zone_record("subdomainExamplezone", {
zone: "examplezone.com",
domain: "subdomain.examplezone.com",
type: "TXT",
ttl: 10,
filter: [{
type: "geodistance",
limit: 1,
strict: true,
}],
resourceRecord: [{
content: "1234",
enabled: true,
meta: [{
latlong: [
52.367,
4.9041,
],
asn: [12345],
ip: ["1.1.1.1"],
notes: ["notes"],
continents: ["asia"],
countries: ["russia"],
"default": true,
}],
}],
});
const subdomainExamplezoneMx = new gcore.index.Gcore_dns_zone_record("subdomainExamplezoneMx", {
zone: "examplezone.com",
domain: "subdomain.examplezone.com",
type: "MX",
ttl: 10,
resourceRecord: [{
content: "10 mail.my.com.",
enabled: true,
}],
});
const subdomainExamplezoneCaa = new gcore.index.Gcore_dns_zone_record("subdomainExamplezoneCaa", {
zone: "examplezone.com",
domain: "subdomain.examplezone.com",
type: "CAA",
ttl: 10,
resourceRecord: [{
content: "0 issue \"company.org; account=12345\"",
enabled: true,
}],
});
import pulumi
import pulumi_gcore as gcore
config = pulumi.Config()
example_domain0 = config.get("exampleDomain0")
if example_domain0 is None:
example_domain0 = "examplezone.com"
examplezone0 = gcore.index.Gcore_dns_zone("examplezone0", name=example_domain0)
example_rrset0 = gcore.index.Gcore_dns_zone_record("exampleRrset0",
zone=examplezone0.name,
domain=examplezone0.name,
type=A,
ttl=100,
resource_record=[
{
content: 127.0.0.100,
},
{
content: 127.0.0.200,
},
])
#
# example1: managing zone outside of TF
#
subdomain_examplezone = gcore.index.Gcore_dns_zone_record("subdomainExamplezone",
zone=examplezone.com,
domain=subdomain.examplezone.com,
type=TXT,
ttl=10,
filter=[{
type: geodistance,
limit: 1,
strict: True,
}],
resource_record=[{
content: 1234,
enabled: True,
meta: [{
latlong: [
52.367,
4.9041,
],
asn: [12345],
ip: [1.1.1.1],
notes: [notes],
continents: [asia],
countries: [russia],
default: True,
}],
}])
subdomain_examplezone_mx = gcore.index.Gcore_dns_zone_record("subdomainExamplezoneMx",
zone=examplezone.com,
domain=subdomain.examplezone.com,
type=MX,
ttl=10,
resource_record=[{
content: 10 mail.my.com.,
enabled: True,
}])
subdomain_examplezone_caa = gcore.index.Gcore_dns_zone_record("subdomainExamplezoneCaa",
zone=examplezone.com,
domain=subdomain.examplezone.com,
type=CAA,
ttl=10,
resource_record=[{
content: 0 issue "company.org; account=12345",
enabled: True,
}])
package main
import (
"github.com/pulumi/pulumi-gcore/sdk/go/gcore"
"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 := gcore.NewGcore_dns_zone(ctx, "examplezone0", &gcore.Gcore_dns_zoneArgs{
Name: exampleDomain0,
})
if err != nil {
return err
}
_, err = gcore.NewGcore_dns_zone_record(ctx, "exampleRrset0", &gcore.Gcore_dns_zone_recordArgs{
Zone: examplezone0.Name,
Domain: examplezone0.Name,
Type: "A",
Ttl: 100,
ResourceRecord: []map[string]interface{}{
map[string]interface{}{
"content": "127.0.0.100",
},
map[string]interface{}{
"content": "127.0.0.200",
},
},
})
if err != nil {
return err
}
// example1: managing zone outside of TF
_, err = gcore.NewGcore_dns_zone_record(ctx, "subdomainExamplezone", &gcore.Gcore_dns_zone_recordArgs{
Zone: "examplezone.com",
Domain: "subdomain.examplezone.com",
Type: "TXT",
Ttl: 10,
Filter: []map[string]interface{}{
map[string]interface{}{
"type": "geodistance",
"limit": 1,
"strict": true,
},
},
ResourceRecord: []map[string]interface{}{
map[string]interface{}{
"content": "1234",
"enabled": true,
"meta": []map[string]interface{}{
map[string]interface{}{
"latlong": []float64{
52.367,
4.9041,
},
"asn": []float64{
12345,
},
"ip": []string{
"1.1.1.1",
},
"notes": []string{
"notes",
},
"continents": []string{
"asia",
},
"countries": []string{
"russia",
},
"default": true,
},
},
},
},
})
if err != nil {
return err
}
_, err = gcore.NewGcore_dns_zone_record(ctx, "subdomainExamplezoneMx", &gcore.Gcore_dns_zone_recordArgs{
Zone: "examplezone.com",
Domain: "subdomain.examplezone.com",
Type: "MX",
Ttl: 10,
ResourceRecord: []map[string]interface{}{
map[string]interface{}{
"content": "10 mail.my.com.",
"enabled": true,
},
},
})
if err != nil {
return err
}
_, err = gcore.NewGcore_dns_zone_record(ctx, "subdomainExamplezoneCaa", &gcore.Gcore_dns_zone_recordArgs{
Zone: "examplezone.com",
Domain: "subdomain.examplezone.com",
Type: "CAA",
Ttl: 10,
ResourceRecord: []map[string]interface{}{
map[string]interface{}{
"content": "0 issue \"company.org; account=12345\"",
"enabled": true,
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
var config = new Config();
var exampleDomain0 = config.Get("exampleDomain0") ?? "examplezone.com";
var examplezone0 = new Gcore.Index.Gcore_dns_zone("examplezone0", new()
{
Name = exampleDomain0,
});
var exampleRrset0 = new Gcore.Index.Gcore_dns_zone_record("exampleRrset0", new()
{
Zone = examplezone0.Name,
Domain = examplezone0.Name,
Type = "A",
Ttl = 100,
ResourceRecord = new[]
{
{
{ "content", "127.0.0.100" },
},
{
{ "content", "127.0.0.200" },
},
},
});
//
// example1: managing zone outside of TF
//
var subdomainExamplezone = new Gcore.Index.Gcore_dns_zone_record("subdomainExamplezone", new()
{
Zone = "examplezone.com",
Domain = "subdomain.examplezone.com",
Type = "TXT",
Ttl = 10,
Filter = new[]
{
{
{ "type", "geodistance" },
{ "limit", 1 },
{ "strict", true },
},
},
ResourceRecord = new[]
{
{
{ "content", "1234" },
{ "enabled", true },
{ "meta", new[]
{
{
{ "latlong", new[]
{
52.367,
4.9041,
} },
{ "asn", new[]
{
12345,
} },
{ "ip", new[]
{
"1.1.1.1",
} },
{ "notes", new[]
{
"notes",
} },
{ "continents", new[]
{
"asia",
} },
{ "countries", new[]
{
"russia",
} },
{ "default", true },
},
} },
},
},
});
var subdomainExamplezoneMx = new Gcore.Index.Gcore_dns_zone_record("subdomainExamplezoneMx", new()
{
Zone = "examplezone.com",
Domain = "subdomain.examplezone.com",
Type = "MX",
Ttl = 10,
ResourceRecord = new[]
{
{
{ "content", "10 mail.my.com." },
{ "enabled", true },
},
},
});
var subdomainExamplezoneCaa = new Gcore.Index.Gcore_dns_zone_record("subdomainExamplezoneCaa", new()
{
Zone = "examplezone.com",
Domain = "subdomain.examplezone.com",
Type = "CAA",
Ttl = 10,
ResourceRecord = new[]
{
{
{ "content", "0 issue \"company.org; account=12345\"" },
{ "enabled", true },
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.gcore_dns_zone;
import com.pulumi.gcore.Gcore_dns_zoneArgs;
import com.pulumi.gcore.gcore_dns_zone_record;
import com.pulumi.gcore.Gcore_dns_zone_recordArgs;
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 Gcore_dns_zone("examplezone0", Gcore_dns_zoneArgs.builder()
.name(exampleDomain0)
.build());
var exampleRrset0 = new Gcore_dns_zone_record("exampleRrset0", Gcore_dns_zone_recordArgs.builder()
.zone(examplezone0.name())
.domain(examplezone0.name())
.type("A")
.ttl(100)
.resourceRecord(
%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference),
%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
//
// example1: managing zone outside of TF
//
var subdomainExamplezone = new Gcore_dns_zone_record("subdomainExamplezone", Gcore_dns_zone_recordArgs.builder()
.zone("examplezone.com")
.domain("subdomain.examplezone.com")
.type("TXT")
.ttl(10)
.filter(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.resourceRecord(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var subdomainExamplezoneMx = new Gcore_dns_zone_record("subdomainExamplezoneMx", Gcore_dns_zone_recordArgs.builder()
.zone("examplezone.com")
.domain("subdomain.examplezone.com")
.type("MX")
.ttl(10)
.resourceRecord(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
var subdomainExamplezoneCaa = new Gcore_dns_zone_record("subdomainExamplezoneCaa", Gcore_dns_zone_recordArgs.builder()
.zone("examplezone.com")
.domain("subdomain.examplezone.com")
.type("CAA")
.ttl(10)
.resourceRecord(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.build());
}
}
configuration:
# // example0: managing zone and records by TF using variables
# //
exampleDomain0:
type: string
default: examplezone.com
resources:
examplezone0:
type: gcore:gcore_dns_zone
properties:
name: ${exampleDomain0}
exampleRrset0:
type: gcore:gcore_dns_zone_record
properties:
zone: ${examplezone0.name}
domain: ${examplezone0.name}
type: A
ttl: 100
resourceRecord:
- content: 127.0.0.100
- content: 127.0.0.200
# // example1: managing zone outside of TF
# //
subdomainExamplezone:
type: gcore:gcore_dns_zone_record
properties:
zone: examplezone.com
domain: subdomain.examplezone.com
type: TXT
ttl: 10
filter:
- type: geodistance
limit: 1
strict: true
resourceRecord:
- content: '1234'
enabled: true
meta:
- latlong:
- 52.367
- 4.9041
asn:
- 12345
ip:
- 1.1.1.1
notes:
- notes
continents:
- asia
countries:
- russia
default: true
subdomainExamplezoneMx:
type: gcore:gcore_dns_zone_record
properties:
zone: examplezone.com
domain: subdomain.examplezone.com
type: MX
ttl: 10
resourceRecord:
- content: 10 mail.my.com.
enabled: true
subdomainExamplezoneCaa:
type: gcore:gcore_dns_zone_record
properties:
zone: examplezone.com
domain: subdomain.examplezone.com
type: CAA
ttl: 10
resourceRecord:
- content: 0 issue "company.org; account=12345"
enabled: true
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,
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,
timeouts: Optional[DnsZoneRecordTimeoutsArgs] = 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: gcorelabs: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 Gcorelabs.DnsZoneRecord("dnsZoneRecordResource", new()
{
Domain = "string",
ResourceRecords = new[]
{
new Gcorelabs.Inputs.DnsZoneRecordResourceRecordArgs
{
Content = "string",
Enabled = false,
Meta = new Gcorelabs.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 Gcorelabs.Inputs.DnsZoneRecordFilterArgs
{
Type = "string",
Limit = 0,
Strict = false,
},
},
Timeouts = new Gcorelabs.Inputs.DnsZoneRecordTimeoutsArgs
{
Create = "string",
Delete = "string",
},
Ttl = 0,
});
example, err := gcorelabs.NewDnsZoneRecord(ctx, "dnsZoneRecordResource", &gcorelabs.DnsZoneRecordArgs{
Domain: pulumi.String("string"),
ResourceRecords: gcorelabs.DnsZoneRecordResourceRecordArray{
&gcorelabs.DnsZoneRecordResourceRecordArgs{
Content: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Meta: &gcorelabs.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: gcorelabs.DnsZoneRecordFilterArray{
&gcorelabs.DnsZoneRecordFilterArgs{
Type: pulumi.String("string"),
Limit: pulumi.Float64(0),
Strict: pulumi.Bool(false),
},
},
Timeouts: &gcorelabs.DnsZoneRecordTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
},
Ttl: pulumi.Float64(0),
})
var dnsZoneRecordResource = new DnsZoneRecord("dnsZoneRecordResource", DnsZoneRecordArgs.builder()
.domain("string")
.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())
.timeouts(DnsZoneRecordTimeoutsArgs.builder()
.create("string")
.delete("string")
.build())
.ttl(0)
.build());
dns_zone_record_resource = gcorelabs.DnsZoneRecord("dnsZoneRecordResource",
domain="string",
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,
}],
timeouts={
"create": "string",
"delete": "string",
},
ttl=0)
const dnsZoneRecordResource = new gcorelabs.DnsZoneRecord("dnsZoneRecordResource", {
domain: "string",
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,
}],
timeouts: {
create: "string",
"delete": "string",
},
ttl: 0,
});
type: gcorelabs:DnsZoneRecord
properties:
dnsZoneRecordId: string
domain: string
filters:
- limit: 0
strict: false
type: string
resourceRecords:
- content: string
enabled: false
meta:
asns:
- 0
continents:
- string
countries:
- string
default: false
ips:
- string
latlongs:
- 0
notes:
- string
timeouts:
create: string
delete: 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.
- Resource
Records List<DnsZone Record Resource Record> - 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.
- Dns
Zone stringRecord Id - The ID of this resource.
- Filters
List<Dns
Zone Record Filter> - Timeouts
Dns
Zone Record Timeouts - Ttl double
- A ttl of DNS Zone Record resource.
- Domain string
- A domain of DNS Zone Record resource.
- Resource
Records []DnsZone Record Resource Record Args - 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.
- Dns
Zone stringRecord Id - The ID of this resource.
- Filters
[]Dns
Zone Record Filter Args - Timeouts
Dns
Zone Record Timeouts Args - Ttl float64
- A ttl of DNS Zone Record resource.
- domain String
- A domain of DNS Zone Record resource.
- resource
Records List<DnsZone Record Resource Record> - 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.
- dns
Zone StringRecord Id - The ID of this resource.
- filters
List<Dns
Zone Record Filter> - timeouts
Dns
Zone Record Timeouts - ttl Double
- A ttl of DNS Zone Record resource.
- domain string
- A domain of DNS Zone Record resource.
- resource
Records DnsZone Record Resource Record[] - 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.
- dns
Zone stringRecord Id - The ID of this resource.
- filters
Dns
Zone Record Filter[] - timeouts
Dns
Zone Record Timeouts - ttl number
- A ttl of DNS Zone Record resource.
- domain str
- A domain of DNS Zone Record resource.
- resource_
records Sequence[DnsZone Record Resource Record Args] - 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_ strrecord_ id - The ID of this resource.
- filters
Sequence[Dns
Zone Record Filter Args] - timeouts
Dns
Zone Record Timeouts Args - ttl float
- A ttl of DNS Zone Record resource.
- domain String
- A domain of DNS Zone Record resource.
- resource
Records 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.
- dns
Zone StringRecord Id - The ID of this resource.
- filters List<Property Map>
- timeouts 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,
resource_records: Optional[Sequence[DnsZoneRecordResourceRecordArgs]] = None,
timeouts: Optional[DnsZoneRecordTimeoutsArgs] = 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: gcorelabs: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.
- Dns
Zone stringRecord Id - The ID of this resource.
- Domain string
- A domain of DNS Zone Record resource.
- Filters
List<Dns
Zone Record Filter> - Resource
Records List<DnsZone Record Resource Record> - An array of contents with meta of DNS Zone Record resource.
- Timeouts
Dns
Zone Record Timeouts - 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.
- Dns
Zone stringRecord Id - The ID of this resource.
- Domain string
- A domain of DNS Zone Record resource.
- Filters
[]Dns
Zone Record Filter Args - Resource
Records []DnsZone Record Resource Record Args - An array of contents with meta of DNS Zone Record resource.
- Timeouts
Dns
Zone Record Timeouts Args - 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.
- dns
Zone StringRecord Id - The ID of this resource.
- domain String
- A domain of DNS Zone Record resource.
- filters
List<Dns
Zone Record Filter> - resource
Records List<DnsZone Record Resource Record> - An array of contents with meta of DNS Zone Record resource.
- timeouts
Dns
Zone Record Timeouts - 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.
- dns
Zone stringRecord Id - The ID of this resource.
- domain string
- A domain of DNS Zone Record resource.
- filters
Dns
Zone Record Filter[] - resource
Records DnsZone Record Resource Record[] - An array of contents with meta of DNS Zone Record resource.
- timeouts
Dns
Zone Record Timeouts - 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_ strrecord_ id - The ID of this resource.
- domain str
- A domain of DNS Zone Record resource.
- filters
Sequence[Dns
Zone Record Filter Args] - resource_
records Sequence[DnsZone Record Resource Record Args] - An array of contents with meta of DNS Zone Record resource.
- timeouts
Dns
Zone Record Timeouts Args - 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.
- dns
Zone StringRecord Id - The ID of this resource.
- domain String
- A domain of DNS Zone Record resource.
- filters List<Property Map>
- resource
Records List<Property Map> - An array of contents with meta of DNS Zone Record resource.
- timeouts Property Map
- 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 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.
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
Dns
Zone Record Resource Record Meta
- 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
Dns
Zone Record Resource Record Meta
- 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
Dns
Zone Record Resource Record Meta
- 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
Dns
Zone Record Resource Record Meta
- 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
Dns
Zone Record Resource Record Meta
- 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.
DnsZoneRecordTimeouts, DnsZoneRecordTimeoutsArgs
Import
import using zone:domain:type format
$ pulumi import gcorelabs: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
- gcorelabs g-core/terraform-provider-gcorelabs
- License
- Notes
- This Pulumi package is based on the
gcorelabs
Terraform Provider.