published on Monday, Mar 30, 2026 by g-core
published on Monday, Mar 30, 2026 by g-core
DNS resource record sets (RRsets) define individual DNS records such as A, AAAA, CNAME, MX, and TXT with TTL and geo-balancing settings.
Example Usage
A record
Creates an A record set with multiple IP addresses.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
// Create an A record set
const aRecord = new gcore.DnsZoneRrset("a_record", {
zoneName: "example.com",
rrsetName: "example.com",
rrsetType: "A",
ttl: 120,
resourceRecords: [
{
contents: [JSON.stringify("127.0.0.100")],
},
{
contents: [JSON.stringify("127.0.0.200")],
},
],
});
import pulumi
import json
import pulumi_gcore as gcore
# Create an A record set
a_record = gcore.DnsZoneRrset("a_record",
zone_name="example.com",
rrset_name="example.com",
rrset_type="A",
ttl=120,
resource_records=[
{
"contents": [json.dumps("127.0.0.100")],
},
{
"contents": [json.dumps("127.0.0.200")],
},
])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal("127.0.0.100")
if err != nil {
return err
}
json0 := string(tmpJSON0)
tmpJSON1, err := json.Marshal("127.0.0.200")
if err != nil {
return err
}
json1 := string(tmpJSON1)
// Create an A record set
_, err = gcore.NewDnsZoneRrset(ctx, "a_record", &gcore.DnsZoneRrsetArgs{
ZoneName: pulumi.String("example.com"),
RrsetName: pulumi.String("example.com"),
RrsetType: pulumi.String("A"),
Ttl: pulumi.Float64(120),
ResourceRecords: gcore.DnsZoneRrsetResourceRecordArray{
&gcore.DnsZoneRrsetResourceRecordArgs{
Contents: pulumi.StringArray{
pulumi.String(json0),
},
},
&gcore.DnsZoneRrsetResourceRecordArgs{
Contents: pulumi.StringArray{
pulumi.String(json1),
},
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
// Create an A record set
var aRecord = new Gcore.DnsZoneRrset("a_record", new()
{
ZoneName = "example.com",
RrsetName = "example.com",
RrsetType = "A",
Ttl = 120,
ResourceRecords = new[]
{
new Gcore.Inputs.DnsZoneRrsetResourceRecordArgs
{
Contents = new[]
{
JsonSerializer.Serialize("127.0.0.100"),
},
},
new Gcore.Inputs.DnsZoneRrsetResourceRecordArgs
{
Contents = new[]
{
JsonSerializer.Serialize("127.0.0.200"),
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.DnsZoneRrset;
import com.pulumi.gcore.DnsZoneRrsetArgs;
import com.pulumi.gcore.inputs.DnsZoneRrsetResourceRecordArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
// Create an A record set
var aRecord = new DnsZoneRrset("aRecord", DnsZoneRrsetArgs.builder()
.zoneName("example.com")
.rrsetName("example.com")
.rrsetType("A")
.ttl(120.0)
.resourceRecords(
DnsZoneRrsetResourceRecordArgs.builder()
.contents(serializeJson(
"127.0.0.100"))
.build(),
DnsZoneRrsetResourceRecordArgs.builder()
.contents(serializeJson(
"127.0.0.200"))
.build())
.build());
}
}
resources:
# Create an A record set
aRecord:
type: gcore:DnsZoneRrset
name: a_record
properties:
zoneName: example.com
rrsetName: example.com
rrsetType: A
ttl: 120
resourceRecords:
- contents:
- fn::toJSON: 127.0.0.100
- contents:
- fn::toJSON: 127.0.0.200
MX record
Creates an MX record for mail routing.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
// Create an MX record
const mxRecord = new gcore.DnsZoneRrset("mx_record", {
zoneName: "example.com",
rrsetName: "example.com",
rrsetType: "MX",
ttl: 300,
resourceRecords: [{
contents: [JSON.stringify("10 mail.example.com.")],
enabled: true,
}],
});
import pulumi
import json
import pulumi_gcore as gcore
# Create an MX record
mx_record = gcore.DnsZoneRrset("mx_record",
zone_name="example.com",
rrset_name="example.com",
rrset_type="MX",
ttl=300,
resource_records=[{
"contents": [json.dumps("10 mail.example.com.")],
"enabled": True,
}])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal("10 mail.example.com.")
if err != nil {
return err
}
json0 := string(tmpJSON0)
// Create an MX record
_, err = gcore.NewDnsZoneRrset(ctx, "mx_record", &gcore.DnsZoneRrsetArgs{
ZoneName: pulumi.String("example.com"),
RrsetName: pulumi.String("example.com"),
RrsetType: pulumi.String("MX"),
Ttl: pulumi.Float64(300),
ResourceRecords: gcore.DnsZoneRrsetResourceRecordArray{
&gcore.DnsZoneRrsetResourceRecordArgs{
Contents: pulumi.StringArray{
pulumi.String(json0),
},
Enabled: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
// Create an MX record
var mxRecord = new Gcore.DnsZoneRrset("mx_record", new()
{
ZoneName = "example.com",
RrsetName = "example.com",
RrsetType = "MX",
Ttl = 300,
ResourceRecords = new[]
{
new Gcore.Inputs.DnsZoneRrsetResourceRecordArgs
{
Contents = new[]
{
JsonSerializer.Serialize("10 mail.example.com."),
},
Enabled = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.DnsZoneRrset;
import com.pulumi.gcore.DnsZoneRrsetArgs;
import com.pulumi.gcore.inputs.DnsZoneRrsetResourceRecordArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
// Create an MX record
var mxRecord = new DnsZoneRrset("mxRecord", DnsZoneRrsetArgs.builder()
.zoneName("example.com")
.rrsetName("example.com")
.rrsetType("MX")
.ttl(300.0)
.resourceRecords(DnsZoneRrsetResourceRecordArgs.builder()
.contents(serializeJson(
"10 mail.example.com."))
.enabled(true)
.build())
.build());
}
}
resources:
# Create an MX record
mxRecord:
type: gcore:DnsZoneRrset
name: mx_record
properties:
zoneName: example.com
rrsetName: example.com
rrsetType: MX
ttl: 300
resourceRecords:
- contents:
- fn::toJSON: 10 mail.example.com.
enabled: true
TXT record with GeoDNS picker
Creates a TXT record on a subdomain with a GeoDNS picker for location-based responses.
import * as pulumi from "@pulumi/pulumi";
import * as gcore from "@pulumi/gcore";
// Create a TXT record on a subdomain
const txtRecord = new gcore.DnsZoneRrset("txt_record", {
zoneName: "example.com",
rrsetName: "subdomain.example.com",
rrsetType: "TXT",
ttl: 120,
resourceRecords: [{
contents: [JSON.stringify("v=spf1 include:_spf.google.com ~all")],
enabled: true,
}],
pickers: [{
type: "geodns",
limit: 1,
strict: true,
}],
});
import pulumi
import json
import pulumi_gcore as gcore
# Create a TXT record on a subdomain
txt_record = gcore.DnsZoneRrset("txt_record",
zone_name="example.com",
rrset_name="subdomain.example.com",
rrset_type="TXT",
ttl=120,
resource_records=[{
"contents": [json.dumps("v=spf1 include:_spf.google.com ~all")],
"enabled": True,
}],
pickers=[{
"type": "geodns",
"limit": 1,
"strict": True,
}])
package main
import (
"encoding/json"
"github.com/pulumi/pulumi-terraform-provider/sdks/go/gcore/v2/gcore"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
tmpJSON0, err := json.Marshal("v=spf1 include:_spf.google.com ~all")
if err != nil {
return err
}
json0 := string(tmpJSON0)
// Create a TXT record on a subdomain
_, err = gcore.NewDnsZoneRrset(ctx, "txt_record", &gcore.DnsZoneRrsetArgs{
ZoneName: pulumi.String("example.com"),
RrsetName: pulumi.String("subdomain.example.com"),
RrsetType: pulumi.String("TXT"),
Ttl: pulumi.Float64(120),
ResourceRecords: gcore.DnsZoneRrsetResourceRecordArray{
&gcore.DnsZoneRrsetResourceRecordArgs{
Contents: pulumi.StringArray{
pulumi.String(json0),
},
Enabled: pulumi.Bool(true),
},
},
Pickers: gcore.DnsZoneRrsetPickerArray{
&gcore.DnsZoneRrsetPickerArgs{
Type: pulumi.String("geodns"),
Limit: pulumi.Float64(1),
Strict: pulumi.Bool(true),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using System.Text.Json;
using Pulumi;
using Gcore = Pulumi.Gcore;
return await Deployment.RunAsync(() =>
{
// Create a TXT record on a subdomain
var txtRecord = new Gcore.DnsZoneRrset("txt_record", new()
{
ZoneName = "example.com",
RrsetName = "subdomain.example.com",
RrsetType = "TXT",
Ttl = 120,
ResourceRecords = new[]
{
new Gcore.Inputs.DnsZoneRrsetResourceRecordArgs
{
Contents = new[]
{
JsonSerializer.Serialize("v=spf1 include:_spf.google.com ~all"),
},
Enabled = true,
},
},
Pickers = new[]
{
new Gcore.Inputs.DnsZoneRrsetPickerArgs
{
Type = "geodns",
Limit = 1,
Strict = true,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcore.DnsZoneRrset;
import com.pulumi.gcore.DnsZoneRrsetArgs;
import com.pulumi.gcore.inputs.DnsZoneRrsetResourceRecordArgs;
import com.pulumi.gcore.inputs.DnsZoneRrsetPickerArgs;
import static com.pulumi.codegen.internal.Serialization.*;
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) {
// Create a TXT record on a subdomain
var txtRecord = new DnsZoneRrset("txtRecord", DnsZoneRrsetArgs.builder()
.zoneName("example.com")
.rrsetName("subdomain.example.com")
.rrsetType("TXT")
.ttl(120.0)
.resourceRecords(DnsZoneRrsetResourceRecordArgs.builder()
.contents(serializeJson(
"v=spf1 include:_spf.google.com ~all"))
.enabled(true)
.build())
.pickers(DnsZoneRrsetPickerArgs.builder()
.type("geodns")
.limit(1.0)
.strict(true)
.build())
.build());
}
}
resources:
# Create a TXT record on a subdomain
txtRecord:
type: gcore:DnsZoneRrset
name: txt_record
properties:
zoneName: example.com
rrsetName: subdomain.example.com
rrsetType: TXT
ttl: 120
resourceRecords:
- contents:
- fn::toJSON: v=spf1 include:_spf.google.com ~all
enabled: true
pickers:
- type: geodns
limit: 1
strict: true
Create DnsZoneRrset Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DnsZoneRrset(name: string, args: DnsZoneRrsetArgs, opts?: CustomResourceOptions);@overload
def DnsZoneRrset(resource_name: str,
args: DnsZoneRrsetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def DnsZoneRrset(resource_name: str,
opts: Optional[ResourceOptions] = None,
resource_records: Optional[Sequence[DnsZoneRrsetResourceRecordArgs]] = None,
rrset_name: Optional[str] = None,
rrset_type: Optional[str] = None,
zone_name: Optional[str] = None,
meta: Optional[Mapping[str, str]] = None,
pickers: Optional[Sequence[DnsZoneRrsetPickerArgs]] = None,
ttl: Optional[float] = None)func NewDnsZoneRrset(ctx *Context, name string, args DnsZoneRrsetArgs, opts ...ResourceOption) (*DnsZoneRrset, error)public DnsZoneRrset(string name, DnsZoneRrsetArgs args, CustomResourceOptions? opts = null)
public DnsZoneRrset(String name, DnsZoneRrsetArgs args)
public DnsZoneRrset(String name, DnsZoneRrsetArgs args, CustomResourceOptions options)
type: gcore:DnsZoneRrset
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 DnsZoneRrsetArgs
- 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 DnsZoneRrsetArgs
- 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 DnsZoneRrsetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DnsZoneRrsetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DnsZoneRrsetArgs
- 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 dnsZoneRrsetResource = new Gcore.Index.DnsZoneRrset("dnsZoneRrsetResource", new()
{
ResourceRecords = new[]
{
new Gcore.Inputs.DnsZoneRrsetResourceRecordArgs
{
Contents = new[]
{
"string",
},
Enabled = false,
Id = 0,
Meta =
{
{ "string", "string" },
},
},
},
RrsetName = "string",
RrsetType = "string",
ZoneName = "string",
Meta =
{
{ "string", "string" },
},
Pickers = new[]
{
new Gcore.Inputs.DnsZoneRrsetPickerArgs
{
Type = "string",
Limit = 0,
Strict = false,
},
},
Ttl = 0,
});
example, err := gcore.NewDnsZoneRrset(ctx, "dnsZoneRrsetResource", &gcore.DnsZoneRrsetArgs{
ResourceRecords: gcore.DnsZoneRrsetResourceRecordArray{
&gcore.DnsZoneRrsetResourceRecordArgs{
Contents: pulumi.StringArray{
pulumi.String("string"),
},
Enabled: pulumi.Bool(false),
Id: pulumi.Float64(0),
Meta: pulumi.StringMap{
"string": pulumi.String("string"),
},
},
},
RrsetName: pulumi.String("string"),
RrsetType: pulumi.String("string"),
ZoneName: pulumi.String("string"),
Meta: pulumi.StringMap{
"string": pulumi.String("string"),
},
Pickers: gcore.DnsZoneRrsetPickerArray{
&gcore.DnsZoneRrsetPickerArgs{
Type: pulumi.String("string"),
Limit: pulumi.Float64(0),
Strict: pulumi.Bool(false),
},
},
Ttl: pulumi.Float64(0),
})
var dnsZoneRrsetResource = new DnsZoneRrset("dnsZoneRrsetResource", DnsZoneRrsetArgs.builder()
.resourceRecords(DnsZoneRrsetResourceRecordArgs.builder()
.contents("string")
.enabled(false)
.id(0.0)
.meta(Map.of("string", "string"))
.build())
.rrsetName("string")
.rrsetType("string")
.zoneName("string")
.meta(Map.of("string", "string"))
.pickers(DnsZoneRrsetPickerArgs.builder()
.type("string")
.limit(0.0)
.strict(false)
.build())
.ttl(0.0)
.build());
dns_zone_rrset_resource = gcore.DnsZoneRrset("dnsZoneRrsetResource",
resource_records=[{
"contents": ["string"],
"enabled": False,
"id": 0,
"meta": {
"string": "string",
},
}],
rrset_name="string",
rrset_type="string",
zone_name="string",
meta={
"string": "string",
},
pickers=[{
"type": "string",
"limit": 0,
"strict": False,
}],
ttl=0)
const dnsZoneRrsetResource = new gcore.DnsZoneRrset("dnsZoneRrsetResource", {
resourceRecords: [{
contents: ["string"],
enabled: false,
id: 0,
meta: {
string: "string",
},
}],
rrsetName: "string",
rrsetType: "string",
zoneName: "string",
meta: {
string: "string",
},
pickers: [{
type: "string",
limit: 0,
strict: false,
}],
ttl: 0,
});
type: gcore:DnsZoneRrset
properties:
meta:
string: string
pickers:
- limit: 0
strict: false
type: string
resourceRecords:
- contents:
- string
enabled: false
id: 0
meta:
string: string
rrsetName: string
rrsetType: string
ttl: 0
zoneName: string
DnsZoneRrset 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 DnsZoneRrset resource accepts the following input properties:
- Resource
Records List<DnsZone Rrset Resource Record> - List of resource record from rrset
- Rrset
Name string - Rrset
Type string - Zone
Name string - Meta Dictionary<string, string>
- Meta information for rrset
- Pickers
List<Dns
Zone Rrset Picker> - Set of pickers
- Ttl double
- Resource
Records []DnsZone Rrset Resource Record Args - List of resource record from rrset
- Rrset
Name string - Rrset
Type string - Zone
Name string - Meta map[string]string
- Meta information for rrset
- Pickers
[]Dns
Zone Rrset Picker Args - Set of pickers
- Ttl float64
- resource
Records List<DnsZone Rrset Resource Record> - List of resource record from rrset
- rrset
Name String - rrset
Type String - zone
Name String - meta Map<String,String>
- Meta information for rrset
- pickers
List<Dns
Zone Rrset Picker> - Set of pickers
- ttl Double
- resource
Records DnsZone Rrset Resource Record[] - List of resource record from rrset
- rrset
Name string - rrset
Type string - zone
Name string - meta {[key: string]: string}
- Meta information for rrset
- pickers
Dns
Zone Rrset Picker[] - Set of pickers
- ttl number
- resource_
records Sequence[DnsZone Rrset Resource Record Args] - List of resource record from rrset
- rrset_
name str - rrset_
type str - zone_
name str - meta Mapping[str, str]
- Meta information for rrset
- pickers
Sequence[Dns
Zone Rrset Picker Args] - Set of pickers
- ttl float
- resource
Records List<Property Map> - List of resource record from rrset
- rrset
Name String - rrset
Type String - zone
Name String - meta Map<String>
- Meta information for rrset
- pickers List<Property Map>
- Set of pickers
- ttl Number
Outputs
All input properties are implicitly available as output properties. Additionally, the DnsZoneRrset resource produces the following output properties:
- Filter
Set doubleId - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- Warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- Warnings
List<Dns
Zone Rrset Warning> - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- Filter
Set float64Id - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- Warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- Warnings
[]Dns
Zone Rrset Warning - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- filter
Set DoubleId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- type String
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning String
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
List<Dns
Zone Rrset Warning> - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- filter
Set numberId - id string
- The provider-assigned unique ID for this managed resource.
- name string
- type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
Dns
Zone Rrset Warning[] - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- filter_
set_ floatid - id str
- The provider-assigned unique ID for this managed resource.
- name str
- type str
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning str
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
Sequence[Dns
Zone Rrset Warning] - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- filter
Set NumberId - id String
- The provider-assigned unique ID for this managed resource.
- name String
- type String
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning String
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings List<Property Map>
- Warning about some possible side effects without strictly disallowing operations on rrset readonly
Look up Existing DnsZoneRrset Resource
Get an existing DnsZoneRrset 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?: DnsZoneRrsetState, opts?: CustomResourceOptions): DnsZoneRrset@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
filter_set_id: Optional[float] = None,
meta: Optional[Mapping[str, str]] = None,
name: Optional[str] = None,
pickers: Optional[Sequence[DnsZoneRrsetPickerArgs]] = None,
resource_records: Optional[Sequence[DnsZoneRrsetResourceRecordArgs]] = None,
rrset_name: Optional[str] = None,
rrset_type: Optional[str] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
warning: Optional[str] = None,
warnings: Optional[Sequence[DnsZoneRrsetWarningArgs]] = None,
zone_name: Optional[str] = None) -> DnsZoneRrsetfunc GetDnsZoneRrset(ctx *Context, name string, id IDInput, state *DnsZoneRrsetState, opts ...ResourceOption) (*DnsZoneRrset, error)public static DnsZoneRrset Get(string name, Input<string> id, DnsZoneRrsetState? state, CustomResourceOptions? opts = null)public static DnsZoneRrset get(String name, Output<String> id, DnsZoneRrsetState state, CustomResourceOptions options)resources: _: type: gcore:DnsZoneRrset 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.
- Filter
Set doubleId - Meta Dictionary<string, string>
- Meta information for rrset
- Name string
- Pickers
List<Dns
Zone Rrset Picker> - Set of pickers
- Resource
Records List<DnsZone Rrset Resource Record> - List of resource record from rrset
- Rrset
Name string - Rrset
Type string - Ttl double
- Type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- Warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- Warnings
List<Dns
Zone Rrset Warning> - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- Zone
Name string
- Filter
Set float64Id - Meta map[string]string
- Meta information for rrset
- Name string
- Pickers
[]Dns
Zone Rrset Picker Args - Set of pickers
- Resource
Records []DnsZone Rrset Resource Record Args - List of resource record from rrset
- Rrset
Name string - Rrset
Type string - Ttl float64
- Type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- Warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- Warnings
[]Dns
Zone Rrset Warning Args - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- Zone
Name string
- filter
Set DoubleId - meta Map<String,String>
- Meta information for rrset
- name String
- pickers
List<Dns
Zone Rrset Picker> - Set of pickers
- resource
Records List<DnsZone Rrset Resource Record> - List of resource record from rrset
- rrset
Name String - rrset
Type String - ttl Double
- type String
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning String
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
List<Dns
Zone Rrset Warning> - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- zone
Name String
- filter
Set numberId - meta {[key: string]: string}
- Meta information for rrset
- name string
- pickers
Dns
Zone Rrset Picker[] - Set of pickers
- resource
Records DnsZone Rrset Resource Record[] - List of resource record from rrset
- rrset
Name string - rrset
Type string - ttl number
- type string
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning string
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
Dns
Zone Rrset Warning[] - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- zone
Name string
- filter_
set_ floatid - meta Mapping[str, str]
- Meta information for rrset
- name str
- pickers
Sequence[Dns
Zone Rrset Picker Args] - Set of pickers
- resource_
records Sequence[DnsZone Rrset Resource Record Args] - List of resource record from rrset
- rrset_
name str - rrset_
type str - ttl float
- type str
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning str
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings
Sequence[Dns
Zone Rrset Warning Args] - Warning about some possible side effects without strictly disallowing operations on rrset readonly
- zone_
name str
- filter
Set NumberId - meta Map<String>
- Meta information for rrset
- name String
- pickers List<Property Map>
- Set of pickers
- resource
Records List<Property Map> - List of resource record from rrset
- rrset
Name String - rrset
Type String - ttl Number
- type String
- RRSet type Available values: "A", "AAAA", "NS", "CNAME", "MX", "TXT", "SRV", "SOA".
- warning String
- Warning about some possible side effects without strictly disallowing operations on rrset readonly Deprecated: use Warnings instead
- warnings List<Property Map>
- Warning about some possible side effects without strictly disallowing operations on rrset readonly
- zone
Name String
Supporting Types
DnsZoneRrsetPicker, DnsZoneRrsetPickerArgs
- Type string
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- Limit double
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- Strict bool
- if strict=false, then the filter will return all records if no records match the filter
- Type string
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- Limit float64
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- Strict bool
- if strict=false, then the filter will return all records if no records match the filter
- type String
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- limit Double
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- strict Boolean
- if strict=false, then the filter will return all records if no records match the filter
- type string
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- limit number
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- strict boolean
- if strict=false, then the filter will return all records if no records match the filter
- type str
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- limit float
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- strict bool
- if strict=false, then the filter will return all records if no records match the filter
- type String
- Filter type Available values: "geodns", "asn", "country", "continent", "region", "ip", "geodistance", "weighted_shuffle", "default", "first_n".
- limit Number
- Limits the number of records returned by the filter Can be a positive value for a specific limit. Use zero or leave it blank to indicate no limits.
- strict Boolean
- if strict=false, then the filter will return all records if no records match the filter
DnsZoneRrsetResourceRecord, DnsZoneRrsetResourceRecordArgs
- Contents List<string>
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- Enabled bool
- Id double
- ID of the resource record
- Meta Dictionary<string, string>
- This meta will be used to decide which resource record should pass through filters from the filter set
- Contents []string
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- Enabled bool
- Id float64
- ID of the resource record
- Meta map[string]string
- This meta will be used to decide which resource record should pass through filters from the filter set
- contents List<String>
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- enabled Boolean
- id Double
- ID of the resource record
- meta Map<String,String>
- This meta will be used to decide which resource record should pass through filters from the filter set
- contents string[]
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- enabled boolean
- id number
- ID of the resource record
- meta {[key: string]: string}
- This meta will be used to decide which resource record should pass through filters from the filter set
- contents Sequence[str]
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- enabled bool
- id float
- ID of the resource record
- meta Mapping[str, str]
- This meta will be used to decide which resource record should pass through filters from the filter set
- contents List<String>
- Content of resource record.
Values must be valid JSON (strings need inner quotes).
Examples:
- A-record:
["\"192.168.1.1\""] - MX-record:
[10, "\"mail.example.com.\""]
- A-record:
- enabled Boolean
- id Number
- ID of the resource record
- meta Map<String>
- This meta will be used to decide which resource record should pass through filters from the filter set
DnsZoneRrsetWarning, DnsZoneRrsetWarningArgs
Import
$ pulumi import gcore:index/dnsZoneRrset:DnsZoneRrset example '<zone_name>/<rrset_name>/<rrset_type>'
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- gcore g-core/terraform-provider-gcore
- License
- Notes
- This Pulumi package is based on the
gcoreTerraform Provider.
published on Monday, Mar 30, 2026 by g-core
