azure-native.network.RecordSet
Explore with Pulumi AI
Describes a DNS record set (a collection of DNS records with the same name and type). Azure REST API version: 2018-05-01. Prior API version in Azure Native 1.x: 2018-05-01.
Other available API versions: 2015-05-04-preview, 2016-04-01, 2023-07-01-preview.
Example Usage
Create A recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
ARecords = new[]
{
new AzureNative.Network.Inputs.ARecordArgs
{
Ipv4Address = "127.0.0.1",
},
},
Metadata =
{
{ "key1", "value1" },
},
RecordType = "A",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
ARecords: network.ARecordArray{
&network.ARecordArgs{
Ipv4Address: pulumi.String("127.0.0.1"),
},
},
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("A"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.ARecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.aRecords(ARecordArgs.builder()
.ipv4Address("127.0.0.1")
.build())
.metadata(Map.of("key1", "value1"))
.recordType("A")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
a_records=[{
"ipv4_address": "127.0.0.1",
}],
metadata={
"key1": "value1",
},
record_type="A",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
aRecords: [{
ipv4Address: "127.0.0.1",
}],
metadata: {
key1: "value1",
},
recordType: "A",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
aRecords:
- ipv4Address: 127.0.0.1
metadata:
key1: value1
recordType: A
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create A recordset with alias target resource
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
RecordType = "A",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
TargetResource = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
},
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("A"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
TargetResource: &network.SubResourceArgs{
Id: pulumi.String("/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2"),
},
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.SubResourceArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.recordType("A")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.targetResource(SubResourceArgs.builder()
.id("/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2")
.build())
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
record_type="A",
relative_record_set_name="record1",
resource_group_name="rg1",
target_resource={
"id": "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
},
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
recordType: "A",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
targetResource: {
id: "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2",
},
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
recordType: A
relativeRecordSetName: record1
resourceGroupName: rg1
targetResource:
id: /subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2
ttl: 3600
zoneName: zone1
Create AAAA recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
AaaaRecords = new[]
{
new AzureNative.Network.Inputs.AaaaRecordArgs
{
Ipv6Address = "::1",
},
},
Metadata =
{
{ "key1", "value1" },
},
RecordType = "AAAA",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
AaaaRecords: network.AaaaRecordArray{
&network.AaaaRecordArgs{
Ipv6Address: pulumi.String("::1"),
},
},
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("AAAA"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.AaaaRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.aaaaRecords(AaaaRecordArgs.builder()
.ipv6Address("::1")
.build())
.metadata(Map.of("key1", "value1"))
.recordType("AAAA")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
aaaa_records=[{
"ipv6_address": "::1",
}],
metadata={
"key1": "value1",
},
record_type="AAAA",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
aaaaRecords: [{
ipv6Address: "::1",
}],
metadata: {
key1: "value1",
},
recordType: "AAAA",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
aaaaRecords:
- ipv6Address: ::1
metadata:
key1: value1
recordType: AAAA
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create CAA recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
CaaRecords = new[]
{
new AzureNative.Network.Inputs.CaaRecordArgs
{
Flags = 0,
Tag = "issue",
Value = "ca.contoso.com",
},
},
Metadata =
{
{ "key1", "value1" },
},
RecordType = "CAA",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
CaaRecords: network.CaaRecordArray{
&network.CaaRecordArgs{
Flags: pulumi.Int(0),
Tag: pulumi.String("issue"),
Value: pulumi.String("ca.contoso.com"),
},
},
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("CAA"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.CaaRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.caaRecords(CaaRecordArgs.builder()
.flags(0)
.tag("issue")
.value("ca.contoso.com")
.build())
.metadata(Map.of("key1", "value1"))
.recordType("CAA")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
caa_records=[{
"flags": 0,
"tag": "issue",
"value": "ca.contoso.com",
}],
metadata={
"key1": "value1",
},
record_type="CAA",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
caaRecords: [{
flags: 0,
tag: "issue",
value: "ca.contoso.com",
}],
metadata: {
key1: "value1",
},
recordType: "CAA",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
caaRecords:
- flags: 0
tag: issue
value: ca.contoso.com
metadata:
key1: value1
recordType: CAA
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create CNAME recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
CnameRecord = new AzureNative.Network.Inputs.CnameRecordArgs
{
Cname = "contoso.com",
},
Metadata =
{
{ "key1", "value1" },
},
RecordType = "CNAME",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
CnameRecord: &network.CnameRecordArgs{
Cname: pulumi.String("contoso.com"),
},
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("CNAME"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.CnameRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.cnameRecord(CnameRecordArgs.builder()
.cname("contoso.com")
.build())
.metadata(Map.of("key1", "value1"))
.recordType("CNAME")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
cname_record={
"cname": "contoso.com",
},
metadata={
"key1": "value1",
},
record_type="CNAME",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
cnameRecord: {
cname: "contoso.com",
},
metadata: {
key1: "value1",
},
recordType: "CNAME",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
cnameRecord:
cname: contoso.com
metadata:
key1: value1
recordType: CNAME
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create MX recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
MxRecords = new[]
{
new AzureNative.Network.Inputs.MxRecordArgs
{
Exchange = "mail.contoso.com",
Preference = 0,
},
},
RecordType = "MX",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
MxRecords: network.MxRecordArray{
&network.MxRecordArgs{
Exchange: pulumi.String("mail.contoso.com"),
Preference: pulumi.Int(0),
},
},
RecordType: pulumi.String("MX"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.MxRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.mxRecords(MxRecordArgs.builder()
.exchange("mail.contoso.com")
.preference(0)
.build())
.recordType("MX")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
mx_records=[{
"exchange": "mail.contoso.com",
"preference": 0,
}],
record_type="MX",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
mxRecords: [{
exchange: "mail.contoso.com",
preference: 0,
}],
recordType: "MX",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
mxRecords:
- exchange: mail.contoso.com
preference: 0
recordType: MX
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create NS recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
NsRecords = new[]
{
new AzureNative.Network.Inputs.NsRecordArgs
{
Nsdname = "ns1.contoso.com",
},
},
RecordType = "NS",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
NsRecords: network.NsRecordArray{
&network.NsRecordArgs{
Nsdname: pulumi.String("ns1.contoso.com"),
},
},
RecordType: pulumi.String("NS"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.NsRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.nsRecords(NsRecordArgs.builder()
.nsdname("ns1.contoso.com")
.build())
.recordType("NS")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
ns_records=[{
"nsdname": "ns1.contoso.com",
}],
record_type="NS",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
nsRecords: [{
nsdname: "ns1.contoso.com",
}],
recordType: "NS",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
nsRecords:
- nsdname: ns1.contoso.com
recordType: NS
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
zoneName: zone1
Create PTR recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
PtrRecords = new[]
{
new AzureNative.Network.Inputs.PtrRecordArgs
{
Ptrdname = "localhost",
},
},
RecordType = "PTR",
RelativeRecordSetName = "1",
ResourceGroupName = "rg1",
Ttl = 3600,
ZoneName = "0.0.127.in-addr.arpa",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
PtrRecords: network.PtrRecordArray{
&network.PtrRecordArgs{
Ptrdname: pulumi.String("localhost"),
},
},
RecordType: pulumi.String("PTR"),
RelativeRecordSetName: pulumi.String("1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("0.0.127.in-addr.arpa"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.PtrRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.ptrRecords(PtrRecordArgs.builder()
.ptrdname("localhost")
.build())
.recordType("PTR")
.relativeRecordSetName("1")
.resourceGroupName("rg1")
.ttl(3600)
.zoneName("0.0.127.in-addr.arpa")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
ptr_records=[{
"ptrdname": "localhost",
}],
record_type="PTR",
relative_record_set_name="1",
resource_group_name="rg1",
ttl=3600,
zone_name="0.0.127.in-addr.arpa")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
ptrRecords: [{
ptrdname: "localhost",
}],
recordType: "PTR",
relativeRecordSetName: "1",
resourceGroupName: "rg1",
ttl: 3600,
zoneName: "0.0.127.in-addr.arpa",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
ptrRecords:
- ptrdname: localhost
recordType: PTR
relativeRecordSetName: '1'
resourceGroupName: rg1
ttl: 3600
zoneName: 0.0.127.in-addr.arpa
Create SOA recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
RecordType = "SOA",
RelativeRecordSetName = "@",
ResourceGroupName = "rg1",
SoaRecord = new AzureNative.Network.Inputs.SoaRecordArgs
{
Email = "hostmaster.contoso.com",
ExpireTime = 2419200,
Host = "ns1.contoso.com",
MinimumTtl = 300,
RefreshTime = 3600,
RetryTime = 300,
SerialNumber = 1,
},
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("SOA"),
RelativeRecordSetName: pulumi.String("@"),
ResourceGroupName: pulumi.String("rg1"),
SoaRecord: &network.SoaRecordArgs{
Email: pulumi.String("hostmaster.contoso.com"),
ExpireTime: pulumi.Float64(2419200),
Host: pulumi.String("ns1.contoso.com"),
MinimumTtl: pulumi.Float64(300),
RefreshTime: pulumi.Float64(3600),
RetryTime: pulumi.Float64(300),
SerialNumber: pulumi.Float64(1),
},
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.SoaRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.recordType("SOA")
.relativeRecordSetName("@")
.resourceGroupName("rg1")
.soaRecord(SoaRecordArgs.builder()
.email("hostmaster.contoso.com")
.expireTime(2419200)
.host("ns1.contoso.com")
.minimumTtl(300)
.refreshTime(3600)
.retryTime(300)
.serialNumber(1)
.build())
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
record_type="SOA",
relative_record_set_name="@",
resource_group_name="rg1",
soa_record={
"email": "hostmaster.contoso.com",
"expire_time": 2419200,
"host": "ns1.contoso.com",
"minimum_ttl": 300,
"refresh_time": 3600,
"retry_time": 300,
"serial_number": 1,
},
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
recordType: "SOA",
relativeRecordSetName: "@",
resourceGroupName: "rg1",
soaRecord: {
email: "hostmaster.contoso.com",
expireTime: 2419200,
host: "ns1.contoso.com",
minimumTtl: 300,
refreshTime: 3600,
retryTime: 300,
serialNumber: 1,
},
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
recordType: SOA
relativeRecordSetName: '@'
resourceGroupName: rg1
soaRecord:
email: hostmaster.contoso.com
expireTime: 2.4192e+06
host: ns1.contoso.com
minimumTtl: 300
refreshTime: 3600
retryTime: 300
serialNumber: 1
ttl: 3600
zoneName: zone1
Create SRV recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
RecordType = "SRV",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
SrvRecords = new[]
{
new AzureNative.Network.Inputs.SrvRecordArgs
{
Port = 80,
Priority = 0,
Target = "contoso.com",
Weight = 10,
},
},
Ttl = 3600,
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("SRV"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
SrvRecords: network.SrvRecordArray{
&network.SrvRecordArgs{
Port: pulumi.Int(80),
Priority: pulumi.Int(0),
Target: pulumi.String("contoso.com"),
Weight: pulumi.Int(10),
},
},
Ttl: pulumi.Float64(3600),
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.SrvRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.recordType("SRV")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.srvRecords(SrvRecordArgs.builder()
.port(80)
.priority(0)
.target("contoso.com")
.weight(10)
.build())
.ttl(3600)
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
record_type="SRV",
relative_record_set_name="record1",
resource_group_name="rg1",
srv_records=[{
"port": 80,
"priority": 0,
"target": "contoso.com",
"weight": 10,
}],
ttl=3600,
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
recordType: "SRV",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
srvRecords: [{
port: 80,
priority: 0,
target: "contoso.com",
weight: 10,
}],
ttl: 3600,
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
recordType: SRV
relativeRecordSetName: record1
resourceGroupName: rg1
srvRecords:
- port: 80
priority: 0
target: contoso.com
weight: 10
ttl: 3600
zoneName: zone1
Create TXT recordset
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var recordSet = new AzureNative.Network.RecordSet("recordSet", new()
{
Metadata =
{
{ "key1", "value1" },
},
RecordType = "TXT",
RelativeRecordSetName = "record1",
ResourceGroupName = "rg1",
Ttl = 3600,
TxtRecords = new[]
{
new AzureNative.Network.Inputs.TxtRecordArgs
{
Value = new[]
{
"string1",
"string2",
},
},
},
ZoneName = "zone1",
});
});
package main
import (
network "github.com/pulumi/pulumi-azure-native-sdk/network/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := network.NewRecordSet(ctx, "recordSet", &network.RecordSetArgs{
Metadata: pulumi.StringMap{
"key1": pulumi.String("value1"),
},
RecordType: pulumi.String("TXT"),
RelativeRecordSetName: pulumi.String("record1"),
ResourceGroupName: pulumi.String("rg1"),
Ttl: pulumi.Float64(3600),
TxtRecords: network.TxtRecordArray{
&network.TxtRecordArgs{
Value: pulumi.StringArray{
pulumi.String("string1"),
pulumi.String("string2"),
},
},
},
ZoneName: pulumi.String("zone1"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.network.RecordSet;
import com.pulumi.azurenative.network.RecordSetArgs;
import com.pulumi.azurenative.network.inputs.TxtRecordArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var recordSet = new RecordSet("recordSet", RecordSetArgs.builder()
.metadata(Map.of("key1", "value1"))
.recordType("TXT")
.relativeRecordSetName("record1")
.resourceGroupName("rg1")
.ttl(3600)
.txtRecords(TxtRecordArgs.builder()
.value(
"string1",
"string2")
.build())
.zoneName("zone1")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
record_set = azure_native.network.RecordSet("recordSet",
metadata={
"key1": "value1",
},
record_type="TXT",
relative_record_set_name="record1",
resource_group_name="rg1",
ttl=3600,
txt_records=[{
"value": [
"string1",
"string2",
],
}],
zone_name="zone1")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const recordSet = new azure_native.network.RecordSet("recordSet", {
metadata: {
key1: "value1",
},
recordType: "TXT",
relativeRecordSetName: "record1",
resourceGroupName: "rg1",
ttl: 3600,
txtRecords: [{
value: [
"string1",
"string2",
],
}],
zoneName: "zone1",
});
resources:
recordSet:
type: azure-native:network:RecordSet
properties:
metadata:
key1: value1
recordType: TXT
relativeRecordSetName: record1
resourceGroupName: rg1
ttl: 3600
txtRecords:
- value:
- string1
- string2
zoneName: zone1
Create RecordSet Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new RecordSet(name: string, args: RecordSetArgs, opts?: CustomResourceOptions);
@overload
def RecordSet(resource_name: str,
args: RecordSetArgs,
opts: Optional[ResourceOptions] = None)
@overload
def RecordSet(resource_name: str,
opts: Optional[ResourceOptions] = None,
record_type: Optional[str] = None,
zone_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
metadata: Optional[Mapping[str, str]] = None,
caa_records: Optional[Sequence[CaaRecordArgs]] = None,
mx_records: Optional[Sequence[MxRecordArgs]] = None,
ns_records: Optional[Sequence[NsRecordArgs]] = None,
ptr_records: Optional[Sequence[PtrRecordArgs]] = None,
cname_record: Optional[CnameRecordArgs] = None,
relative_record_set_name: Optional[str] = None,
a_records: Optional[Sequence[ARecordArgs]] = None,
soa_record: Optional[SoaRecordArgs] = None,
srv_records: Optional[Sequence[SrvRecordArgs]] = None,
target_resource: Optional[SubResourceArgs] = None,
ttl: Optional[float] = None,
txt_records: Optional[Sequence[TxtRecordArgs]] = None,
aaaa_records: Optional[Sequence[AaaaRecordArgs]] = None)
func NewRecordSet(ctx *Context, name string, args RecordSetArgs, opts ...ResourceOption) (*RecordSet, error)
public RecordSet(string name, RecordSetArgs args, CustomResourceOptions? opts = null)
public RecordSet(String name, RecordSetArgs args)
public RecordSet(String name, RecordSetArgs args, CustomResourceOptions options)
type: azure-native:network:RecordSet
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 RecordSetArgs
- 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 RecordSetArgs
- 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 RecordSetArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args RecordSetArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args RecordSetArgs
- 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 recordSetResource = new AzureNative.Network.RecordSet("recordSetResource", new()
{
RecordType = "string",
ZoneName = "string",
ResourceGroupName = "string",
Metadata =
{
{ "string", "string" },
},
CaaRecords = new[]
{
new AzureNative.Network.Inputs.CaaRecordArgs
{
Flags = 0,
Tag = "string",
Value = "string",
},
},
MxRecords = new[]
{
new AzureNative.Network.Inputs.MxRecordArgs
{
Exchange = "string",
Preference = 0,
},
},
NsRecords = new[]
{
new AzureNative.Network.Inputs.NsRecordArgs
{
Nsdname = "string",
},
},
PtrRecords = new[]
{
new AzureNative.Network.Inputs.PtrRecordArgs
{
Ptrdname = "string",
},
},
CnameRecord = new AzureNative.Network.Inputs.CnameRecordArgs
{
Cname = "string",
},
RelativeRecordSetName = "string",
ARecords = new[]
{
new AzureNative.Network.Inputs.ARecordArgs
{
Ipv4Address = "string",
},
},
SoaRecord = new AzureNative.Network.Inputs.SoaRecordArgs
{
Email = "string",
ExpireTime = 0,
Host = "string",
MinimumTtl = 0,
RefreshTime = 0,
RetryTime = 0,
SerialNumber = 0,
},
SrvRecords = new[]
{
new AzureNative.Network.Inputs.SrvRecordArgs
{
Port = 0,
Priority = 0,
Target = "string",
Weight = 0,
},
},
TargetResource = new AzureNative.Network.Inputs.SubResourceArgs
{
Id = "string",
},
Ttl = 0,
TxtRecords = new[]
{
new AzureNative.Network.Inputs.TxtRecordArgs
{
Value = new[]
{
"string",
},
},
},
AaaaRecords = new[]
{
new AzureNative.Network.Inputs.AaaaRecordArgs
{
Ipv6Address = "string",
},
},
});
example, err := network.NewRecordSet(ctx, "recordSetResource", &network.RecordSetArgs{
RecordType: pulumi.String("string"),
ZoneName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Metadata: pulumi.StringMap{
"string": pulumi.String("string"),
},
CaaRecords: network.CaaRecordArray{
&network.CaaRecordArgs{
Flags: pulumi.Int(0),
Tag: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
MxRecords: network.MxRecordArray{
&network.MxRecordArgs{
Exchange: pulumi.String("string"),
Preference: pulumi.Int(0),
},
},
NsRecords: network.NsRecordArray{
&network.NsRecordArgs{
Nsdname: pulumi.String("string"),
},
},
PtrRecords: network.PtrRecordArray{
&network.PtrRecordArgs{
Ptrdname: pulumi.String("string"),
},
},
CnameRecord: &network.CnameRecordArgs{
Cname: pulumi.String("string"),
},
RelativeRecordSetName: pulumi.String("string"),
ARecords: network.ARecordArray{
&network.ARecordArgs{
Ipv4Address: pulumi.String("string"),
},
},
SoaRecord: &network.SoaRecordArgs{
Email: pulumi.String("string"),
ExpireTime: pulumi.Float64(0),
Host: pulumi.String("string"),
MinimumTtl: pulumi.Float64(0),
RefreshTime: pulumi.Float64(0),
RetryTime: pulumi.Float64(0),
SerialNumber: pulumi.Float64(0),
},
SrvRecords: network.SrvRecordArray{
&network.SrvRecordArgs{
Port: pulumi.Int(0),
Priority: pulumi.Int(0),
Target: pulumi.String("string"),
Weight: pulumi.Int(0),
},
},
TargetResource: &network.SubResourceArgs{
Id: pulumi.String("string"),
},
Ttl: pulumi.Float64(0),
TxtRecords: network.TxtRecordArray{
&network.TxtRecordArgs{
Value: pulumi.StringArray{
pulumi.String("string"),
},
},
},
AaaaRecords: network.AaaaRecordArray{
&network.AaaaRecordArgs{
Ipv6Address: pulumi.String("string"),
},
},
})
var recordSetResource = new RecordSet("recordSetResource", RecordSetArgs.builder()
.recordType("string")
.zoneName("string")
.resourceGroupName("string")
.metadata(Map.of("string", "string"))
.caaRecords(CaaRecordArgs.builder()
.flags(0)
.tag("string")
.value("string")
.build())
.mxRecords(MxRecordArgs.builder()
.exchange("string")
.preference(0)
.build())
.nsRecords(NsRecordArgs.builder()
.nsdname("string")
.build())
.ptrRecords(PtrRecordArgs.builder()
.ptrdname("string")
.build())
.cnameRecord(CnameRecordArgs.builder()
.cname("string")
.build())
.relativeRecordSetName("string")
.aRecords(ARecordArgs.builder()
.ipv4Address("string")
.build())
.soaRecord(SoaRecordArgs.builder()
.email("string")
.expireTime(0)
.host("string")
.minimumTtl(0)
.refreshTime(0)
.retryTime(0)
.serialNumber(0)
.build())
.srvRecords(SrvRecordArgs.builder()
.port(0)
.priority(0)
.target("string")
.weight(0)
.build())
.targetResource(SubResourceArgs.builder()
.id("string")
.build())
.ttl(0)
.txtRecords(TxtRecordArgs.builder()
.value("string")
.build())
.aaaaRecords(AaaaRecordArgs.builder()
.ipv6Address("string")
.build())
.build());
record_set_resource = azure_native.network.RecordSet("recordSetResource",
record_type="string",
zone_name="string",
resource_group_name="string",
metadata={
"string": "string",
},
caa_records=[{
"flags": 0,
"tag": "string",
"value": "string",
}],
mx_records=[{
"exchange": "string",
"preference": 0,
}],
ns_records=[{
"nsdname": "string",
}],
ptr_records=[{
"ptrdname": "string",
}],
cname_record={
"cname": "string",
},
relative_record_set_name="string",
a_records=[{
"ipv4Address": "string",
}],
soa_record={
"email": "string",
"expireTime": 0,
"host": "string",
"minimumTtl": 0,
"refreshTime": 0,
"retryTime": 0,
"serialNumber": 0,
},
srv_records=[{
"port": 0,
"priority": 0,
"target": "string",
"weight": 0,
}],
target_resource={
"id": "string",
},
ttl=0,
txt_records=[{
"value": ["string"],
}],
aaaa_records=[{
"ipv6Address": "string",
}])
const recordSetResource = new azure_native.network.RecordSet("recordSetResource", {
recordType: "string",
zoneName: "string",
resourceGroupName: "string",
metadata: {
string: "string",
},
caaRecords: [{
flags: 0,
tag: "string",
value: "string",
}],
mxRecords: [{
exchange: "string",
preference: 0,
}],
nsRecords: [{
nsdname: "string",
}],
ptrRecords: [{
ptrdname: "string",
}],
cnameRecord: {
cname: "string",
},
relativeRecordSetName: "string",
aRecords: [{
ipv4Address: "string",
}],
soaRecord: {
email: "string",
expireTime: 0,
host: "string",
minimumTtl: 0,
refreshTime: 0,
retryTime: 0,
serialNumber: 0,
},
srvRecords: [{
port: 0,
priority: 0,
target: "string",
weight: 0,
}],
targetResource: {
id: "string",
},
ttl: 0,
txtRecords: [{
value: ["string"],
}],
aaaaRecords: [{
ipv6Address: "string",
}],
});
type: azure-native:network:RecordSet
properties:
aRecords:
- ipv4Address: string
aaaaRecords:
- ipv6Address: string
caaRecords:
- flags: 0
tag: string
value: string
cnameRecord:
cname: string
metadata:
string: string
mxRecords:
- exchange: string
preference: 0
nsRecords:
- nsdname: string
ptrRecords:
- ptrdname: string
recordType: string
relativeRecordSetName: string
resourceGroupName: string
soaRecord:
email: string
expireTime: 0
host: string
minimumTtl: 0
refreshTime: 0
retryTime: 0
serialNumber: 0
srvRecords:
- port: 0
priority: 0
target: string
weight: 0
targetResource:
id: string
ttl: 0
txtRecords:
- value:
- string
zoneName: string
RecordSet Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The RecordSet resource accepts the following input properties:
- Record
Type string - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- Resource
Group stringName - The name of the resource group.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- ARecords
List<Pulumi.
Azure Native. Network. Inputs. ARecord> - The list of A records in the record set.
- Aaaa
Records List<Pulumi.Azure Native. Network. Inputs. Aaaa Record> - The list of AAAA records in the record set.
- Caa
Records List<Pulumi.Azure Native. Network. Inputs. Caa Record> - The list of CAA records in the record set.
- Cname
Record Pulumi.Azure Native. Network. Inputs. Cname Record - The CNAME record in the record set.
- Metadata Dictionary<string, string>
- The metadata attached to the record set.
- Mx
Records List<Pulumi.Azure Native. Network. Inputs. Mx Record> - The list of MX records in the record set.
- Ns
Records List<Pulumi.Azure Native. Network. Inputs. Ns Record> - The list of NS records in the record set.
- Ptr
Records List<Pulumi.Azure Native. Network. Inputs. Ptr Record> - The list of PTR records in the record set.
- Relative
Record stringSet Name - The name of the record set, relative to the name of the zone.
- Soa
Record Pulumi.Azure Native. Network. Inputs. Soa Record - The SOA record in the record set.
- Srv
Records List<Pulumi.Azure Native. Network. Inputs. Srv Record> - The list of SRV records in the record set.
- Target
Resource Pulumi.Azure Native. Network. Inputs. Sub Resource - A reference to an azure resource from where the dns resource value is taken.
- Ttl double
- The TTL (time-to-live) of the records in the record set.
- Txt
Records List<Pulumi.Azure Native. Network. Inputs. Txt Record> - The list of TXT records in the record set.
- Record
Type string - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- Resource
Group stringName - The name of the resource group.
- Zone
Name string - The name of the DNS zone (without a terminating dot).
- ARecords
[]ARecord
Args - The list of A records in the record set.
- Aaaa
Records []AaaaRecord Args - The list of AAAA records in the record set.
- Caa
Records []CaaRecord Args - The list of CAA records in the record set.
- Cname
Record CnameRecord Args - The CNAME record in the record set.
- Metadata map[string]string
- The metadata attached to the record set.
- Mx
Records []MxRecord Args - The list of MX records in the record set.
- Ns
Records []NsRecord Args - The list of NS records in the record set.
- Ptr
Records []PtrRecord Args - The list of PTR records in the record set.
- Relative
Record stringSet Name - The name of the record set, relative to the name of the zone.
- Soa
Record SoaRecord Args - The SOA record in the record set.
- Srv
Records []SrvRecord Args - The list of SRV records in the record set.
- Target
Resource SubResource Args - A reference to an azure resource from where the dns resource value is taken.
- Ttl float64
- The TTL (time-to-live) of the records in the record set.
- Txt
Records []TxtRecord Args - The list of TXT records in the record set.
- record
Type String - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- resource
Group StringName - The name of the resource group.
- zone
Name String - The name of the DNS zone (without a terminating dot).
- a
Records List<ARecord> - The list of A records in the record set.
- aaaa
Records List<AaaaRecord> - The list of AAAA records in the record set.
- caa
Records List<CaaRecord> - The list of CAA records in the record set.
- cname
Record CnameRecord - The CNAME record in the record set.
- metadata Map<String,String>
- The metadata attached to the record set.
- mx
Records List<MxRecord> - The list of MX records in the record set.
- ns
Records List<NsRecord> - The list of NS records in the record set.
- ptr
Records List<PtrRecord> - The list of PTR records in the record set.
- relative
Record StringSet Name - The name of the record set, relative to the name of the zone.
- soa
Record SoaRecord - The SOA record in the record set.
- srv
Records List<SrvRecord> - The list of SRV records in the record set.
- target
Resource SubResource - A reference to an azure resource from where the dns resource value is taken.
- ttl Double
- The TTL (time-to-live) of the records in the record set.
- txt
Records List<TxtRecord> - The list of TXT records in the record set.
- record
Type string - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- resource
Group stringName - The name of the resource group.
- zone
Name string - The name of the DNS zone (without a terminating dot).
- a
Records ARecord[] - The list of A records in the record set.
- aaaa
Records AaaaRecord[] - The list of AAAA records in the record set.
- caa
Records CaaRecord[] - The list of CAA records in the record set.
- cname
Record CnameRecord - The CNAME record in the record set.
- metadata {[key: string]: string}
- The metadata attached to the record set.
- mx
Records MxRecord[] - The list of MX records in the record set.
- ns
Records NsRecord[] - The list of NS records in the record set.
- ptr
Records PtrRecord[] - The list of PTR records in the record set.
- relative
Record stringSet Name - The name of the record set, relative to the name of the zone.
- soa
Record SoaRecord - The SOA record in the record set.
- srv
Records SrvRecord[] - The list of SRV records in the record set.
- target
Resource SubResource - A reference to an azure resource from where the dns resource value is taken.
- ttl number
- The TTL (time-to-live) of the records in the record set.
- txt
Records TxtRecord[] - The list of TXT records in the record set.
- record_
type str - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- resource_
group_ strname - The name of the resource group.
- zone_
name str - The name of the DNS zone (without a terminating dot).
- a_
records Sequence[ARecordArgs] - The list of A records in the record set.
- aaaa_
records Sequence[AaaaRecord Args] - The list of AAAA records in the record set.
- caa_
records Sequence[CaaRecord Args] - The list of CAA records in the record set.
- cname_
record CnameRecord Args - The CNAME record in the record set.
- metadata Mapping[str, str]
- The metadata attached to the record set.
- mx_
records Sequence[MxRecord Args] - The list of MX records in the record set.
- ns_
records Sequence[NsRecord Args] - The list of NS records in the record set.
- ptr_
records Sequence[PtrRecord Args] - The list of PTR records in the record set.
- relative_
record_ strset_ name - The name of the record set, relative to the name of the zone.
- soa_
record SoaRecord Args - The SOA record in the record set.
- srv_
records Sequence[SrvRecord Args] - The list of SRV records in the record set.
- target_
resource SubResource Args - A reference to an azure resource from where the dns resource value is taken.
- ttl float
- The TTL (time-to-live) of the records in the record set.
- txt_
records Sequence[TxtRecord Args] - The list of TXT records in the record set.
- record
Type String - The type of DNS record in this record set. Record sets of type SOA can be updated but not created (they are created when the DNS zone is created).
- resource
Group StringName - The name of the resource group.
- zone
Name String - The name of the DNS zone (without a terminating dot).
- a
Records List<Property Map> - The list of A records in the record set.
- aaaa
Records List<Property Map> - The list of AAAA records in the record set.
- caa
Records List<Property Map> - The list of CAA records in the record set.
- cname
Record Property Map - The CNAME record in the record set.
- metadata Map<String>
- The metadata attached to the record set.
- mx
Records List<Property Map> - The list of MX records in the record set.
- ns
Records List<Property Map> - The list of NS records in the record set.
- ptr
Records List<Property Map> - The list of PTR records in the record set.
- relative
Record StringSet Name - The name of the record set, relative to the name of the zone.
- soa
Record Property Map - The SOA record in the record set.
- srv
Records List<Property Map> - The list of SRV records in the record set.
- target
Resource Property Map - A reference to an azure resource from where the dns resource value is taken.
- ttl Number
- The TTL (time-to-live) of the records in the record set.
- txt
Records List<Property Map> - The list of TXT records in the record set.
Outputs
All input properties are implicitly available as output properties. Additionally, the RecordSet resource produces the following output properties:
Supporting Types
ARecord, ARecordArgs
- Ipv4Address string
- The IPv4 address of this A record.
- Ipv4Address string
- The IPv4 address of this A record.
- ipv4Address String
- The IPv4 address of this A record.
- ipv4Address string
- The IPv4 address of this A record.
- ipv4_
address str - The IPv4 address of this A record.
- ipv4Address String
- The IPv4 address of this A record.
ARecordResponse, ARecordResponseArgs
- Ipv4Address string
- The IPv4 address of this A record.
- Ipv4Address string
- The IPv4 address of this A record.
- ipv4Address String
- The IPv4 address of this A record.
- ipv4Address string
- The IPv4 address of this A record.
- ipv4_
address str - The IPv4 address of this A record.
- ipv4Address String
- The IPv4 address of this A record.
AaaaRecord, AaaaRecordArgs
- Ipv6Address string
- The IPv6 address of this AAAA record.
- Ipv6Address string
- The IPv6 address of this AAAA record.
- ipv6Address String
- The IPv6 address of this AAAA record.
- ipv6Address string
- The IPv6 address of this AAAA record.
- ipv6_
address str - The IPv6 address of this AAAA record.
- ipv6Address String
- The IPv6 address of this AAAA record.
AaaaRecordResponse, AaaaRecordResponseArgs
- Ipv6Address string
- The IPv6 address of this AAAA record.
- Ipv6Address string
- The IPv6 address of this AAAA record.
- ipv6Address String
- The IPv6 address of this AAAA record.
- ipv6Address string
- The IPv6 address of this AAAA record.
- ipv6_
address str - The IPv6 address of this AAAA record.
- ipv6Address String
- The IPv6 address of this AAAA record.
CaaRecord, CaaRecordArgs
CaaRecordResponse, CaaRecordResponseArgs
CnameRecord, CnameRecordArgs
- Cname string
- The canonical name for this CNAME record.
- Cname string
- The canonical name for this CNAME record.
- cname String
- The canonical name for this CNAME record.
- cname string
- The canonical name for this CNAME record.
- cname str
- The canonical name for this CNAME record.
- cname String
- The canonical name for this CNAME record.
CnameRecordResponse, CnameRecordResponseArgs
- Cname string
- The canonical name for this CNAME record.
- Cname string
- The canonical name for this CNAME record.
- cname String
- The canonical name for this CNAME record.
- cname string
- The canonical name for this CNAME record.
- cname str
- The canonical name for this CNAME record.
- cname String
- The canonical name for this CNAME record.
MxRecord, MxRecordArgs
- Exchange string
- The domain name of the mail host for this MX record.
- Preference int
- The preference value for this MX record.
- Exchange string
- The domain name of the mail host for this MX record.
- Preference int
- The preference value for this MX record.
- exchange String
- The domain name of the mail host for this MX record.
- preference Integer
- The preference value for this MX record.
- exchange string
- The domain name of the mail host for this MX record.
- preference number
- The preference value for this MX record.
- exchange str
- The domain name of the mail host for this MX record.
- preference int
- The preference value for this MX record.
- exchange String
- The domain name of the mail host for this MX record.
- preference Number
- The preference value for this MX record.
MxRecordResponse, MxRecordResponseArgs
- Exchange string
- The domain name of the mail host for this MX record.
- Preference int
- The preference value for this MX record.
- Exchange string
- The domain name of the mail host for this MX record.
- Preference int
- The preference value for this MX record.
- exchange String
- The domain name of the mail host for this MX record.
- preference Integer
- The preference value for this MX record.
- exchange string
- The domain name of the mail host for this MX record.
- preference number
- The preference value for this MX record.
- exchange str
- The domain name of the mail host for this MX record.
- preference int
- The preference value for this MX record.
- exchange String
- The domain name of the mail host for this MX record.
- preference Number
- The preference value for this MX record.
NsRecord, NsRecordArgs
- Nsdname string
- The name server name for this NS record.
- Nsdname string
- The name server name for this NS record.
- nsdname String
- The name server name for this NS record.
- nsdname string
- The name server name for this NS record.
- nsdname str
- The name server name for this NS record.
- nsdname String
- The name server name for this NS record.
NsRecordResponse, NsRecordResponseArgs
- Nsdname string
- The name server name for this NS record.
- Nsdname string
- The name server name for this NS record.
- nsdname String
- The name server name for this NS record.
- nsdname string
- The name server name for this NS record.
- nsdname str
- The name server name for this NS record.
- nsdname String
- The name server name for this NS record.
PtrRecord, PtrRecordArgs
- Ptrdname string
- The PTR target domain name for this PTR record.
- Ptrdname string
- The PTR target domain name for this PTR record.
- ptrdname String
- The PTR target domain name for this PTR record.
- ptrdname string
- The PTR target domain name for this PTR record.
- ptrdname str
- The PTR target domain name for this PTR record.
- ptrdname String
- The PTR target domain name for this PTR record.
PtrRecordResponse, PtrRecordResponseArgs
- Ptrdname string
- The PTR target domain name for this PTR record.
- Ptrdname string
- The PTR target domain name for this PTR record.
- ptrdname String
- The PTR target domain name for this PTR record.
- ptrdname string
- The PTR target domain name for this PTR record.
- ptrdname str
- The PTR target domain name for this PTR record.
- ptrdname String
- The PTR target domain name for this PTR record.
SoaRecord, SoaRecordArgs
- Email string
- The email contact for this SOA record.
- Expire
Time double - The expire time for this SOA record.
- Host string
- The domain name of the authoritative name server for this SOA record.
- Minimum
Ttl double - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- Refresh
Time double - The refresh value for this SOA record.
- Retry
Time double - The retry time for this SOA record.
- Serial
Number double - The serial number for this SOA record.
- Email string
- The email contact for this SOA record.
- Expire
Time float64 - The expire time for this SOA record.
- Host string
- The domain name of the authoritative name server for this SOA record.
- Minimum
Ttl float64 - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- Refresh
Time float64 - The refresh value for this SOA record.
- Retry
Time float64 - The retry time for this SOA record.
- Serial
Number float64 - The serial number for this SOA record.
- email String
- The email contact for this SOA record.
- expire
Time Double - The expire time for this SOA record.
- host String
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl Double - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time Double - The refresh value for this SOA record.
- retry
Time Double - The retry time for this SOA record.
- serial
Number Double - The serial number for this SOA record.
- email string
- The email contact for this SOA record.
- expire
Time number - The expire time for this SOA record.
- host string
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl number - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time number - The refresh value for this SOA record.
- retry
Time number - The retry time for this SOA record.
- serial
Number number - The serial number for this SOA record.
- email str
- The email contact for this SOA record.
- expire_
time float - The expire time for this SOA record.
- host str
- The domain name of the authoritative name server for this SOA record.
- minimum_
ttl float - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh_
time float - The refresh value for this SOA record.
- retry_
time float - The retry time for this SOA record.
- serial_
number float - The serial number for this SOA record.
- email String
- The email contact for this SOA record.
- expire
Time Number - The expire time for this SOA record.
- host String
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl Number - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time Number - The refresh value for this SOA record.
- retry
Time Number - The retry time for this SOA record.
- serial
Number Number - The serial number for this SOA record.
SoaRecordResponse, SoaRecordResponseArgs
- Email string
- The email contact for this SOA record.
- Expire
Time double - The expire time for this SOA record.
- Host string
- The domain name of the authoritative name server for this SOA record.
- Minimum
Ttl double - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- Refresh
Time double - The refresh value for this SOA record.
- Retry
Time double - The retry time for this SOA record.
- Serial
Number double - The serial number for this SOA record.
- Email string
- The email contact for this SOA record.
- Expire
Time float64 - The expire time for this SOA record.
- Host string
- The domain name of the authoritative name server for this SOA record.
- Minimum
Ttl float64 - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- Refresh
Time float64 - The refresh value for this SOA record.
- Retry
Time float64 - The retry time for this SOA record.
- Serial
Number float64 - The serial number for this SOA record.
- email String
- The email contact for this SOA record.
- expire
Time Double - The expire time for this SOA record.
- host String
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl Double - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time Double - The refresh value for this SOA record.
- retry
Time Double - The retry time for this SOA record.
- serial
Number Double - The serial number for this SOA record.
- email string
- The email contact for this SOA record.
- expire
Time number - The expire time for this SOA record.
- host string
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl number - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time number - The refresh value for this SOA record.
- retry
Time number - The retry time for this SOA record.
- serial
Number number - The serial number for this SOA record.
- email str
- The email contact for this SOA record.
- expire_
time float - The expire time for this SOA record.
- host str
- The domain name of the authoritative name server for this SOA record.
- minimum_
ttl float - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh_
time float - The refresh value for this SOA record.
- retry_
time float - The retry time for this SOA record.
- serial_
number float - The serial number for this SOA record.
- email String
- The email contact for this SOA record.
- expire
Time Number - The expire time for this SOA record.
- host String
- The domain name of the authoritative name server for this SOA record.
- minimum
Ttl Number - The minimum value for this SOA record. By convention this is used to determine the negative caching duration.
- refresh
Time Number - The refresh value for this SOA record.
- retry
Time Number - The retry time for this SOA record.
- serial
Number Number - The serial number for this SOA record.
SrvRecord, SrvRecordArgs
SrvRecordResponse, SrvRecordResponseArgs
SubResource, SubResourceArgs
- Id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- Id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id String
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id string
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id str
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
- id String
- Sub-resource ID. Both absolute resource ID and a relative resource ID are accepted. An absolute ID starts with /subscriptions/ and contains the entire ID of the parent resource and the ID of the sub-resource in the end. A relative ID replaces the ID of the parent resource with a token '$self', followed by the sub-resource ID itself. Example of a relative ID: $self/frontEndConfigurations/my-frontend.
SubResourceResponse, SubResourceResponseArgs
- Id string
- Resource ID.
- Id string
- Resource ID.
- id String
- Resource ID.
- id string
- Resource ID.
- id str
- Resource ID.
- id String
- Resource ID.
TxtRecord, TxtRecordArgs
- Value List<string>
- The text value of this TXT record.
- Value []string
- The text value of this TXT record.
- value List<String>
- The text value of this TXT record.
- value string[]
- The text value of this TXT record.
- value Sequence[str]
- The text value of this TXT record.
- value List<String>
- The text value of this TXT record.
TxtRecordResponse, TxtRecordResponseArgs
- Value List<string>
- The text value of this TXT record.
- Value []string
- The text value of this TXT record.
- value List<String>
- The text value of this TXT record.
- value string[]
- The text value of this TXT record.
- value Sequence[str]
- The text value of this TXT record.
- value List<String>
- The text value of this TXT record.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:network:RecordSet record1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/dnsZones/{zoneName}/{recordType}/{relativeRecordSetName}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0