azure-native.network.RecordSet
Explore with Pulumi AI
Describes a DNS record set (a collection of DNS records with the same name and type). API Version: 2018-05-01.
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"
"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.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 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(Map.of("ipv4Address", "127.0.0.1"))
.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=[azure_native.network.ARecordArgs(
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"
"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 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(Map.of("id", "/subscriptions/726f8cd6-6459-4db4-8e6d-2cd2716904e2/resourceGroups/test/providers/Microsoft.Network/trafficManagerProfiles/testpp2"))
.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=azure_native.network.SubResourceArgs(
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"
"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.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 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(Map.of("ipv6Address", "::1"))
.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=[azure_native.network.AaaaRecordArgs(
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"
"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.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 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(Map.ofEntries(
Map.entry("flags", 0),
Map.entry("tag", "issue"),
Map.entry("value", "ca.contoso.com")
))
.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=[azure_native.network.CaaRecordArgs(
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"
"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 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(Map.of("cname", "contoso.com"))
.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=azure_native.network.CnameRecordArgs(
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"
"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.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 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(Map.ofEntries(
Map.entry("exchange", "mail.contoso.com"),
Map.entry("preference", 0)
))
.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=[azure_native.network.MxRecordArgs(
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"
"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.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 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(Map.of("nsdname", "ns1.contoso.com"))
.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=[azure_native.network.NsRecordArgs(
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"
"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.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 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(Map.of("ptrdname", "localhost"))
.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=[azure_native.network.PtrRecordArgs(
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"
"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 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(Map.ofEntries(
Map.entry("email", "hostmaster.contoso.com"),
Map.entry("expireTime", 2419200),
Map.entry("host", "ns1.contoso.com"),
Map.entry("minimumTtl", 300),
Map.entry("refreshTime", 3600),
Map.entry("retryTime", 300),
Map.entry("serialNumber", 1)
))
.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=azure_native.network.SoaRecordArgs(
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"
"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.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 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(Map.ofEntries(
Map.entry("port", 80),
Map.entry("priority", 0),
Map.entry("target", "contoso.com"),
Map.entry("weight", 10)
))
.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=[azure_native.network.SrvRecordArgs(
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"
"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.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 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(Map.of("value",
"string1",
"string2"))
.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=[azure_native.network.TxtRecordArgs(
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[]
{
{
{ "flags", 0 },
{ "tag", "string" },
{ "value", "string" },
},
},
MxRecords = new[]
{
{
{ "exchange", "string" },
{ "preference", 0 },
},
},
NsRecords = new[]
{
{
{ "nsdname", "string" },
},
},
PtrRecords = new[]
{
{
{ "ptrdname", "string" },
},
},
CnameRecord =
{
{ "cname", "string" },
},
RelativeRecordSetName = "string",
ARecords = new[]
{
{
{ "ipv4Address", "string" },
},
},
SoaRecord =
{
{ "email", "string" },
{ "expireTime", 0 },
{ "host", "string" },
{ "minimumTtl", 0 },
{ "refreshTime", 0 },
{ "retryTime", 0 },
{ "serialNumber", 0 },
},
SrvRecords = new[]
{
{
{ "port", 0 },
{ "priority", 0 },
{ "target", "string" },
{ "weight", 0 },
},
},
TargetResource =
{
{ "id", "string" },
},
Ttl = 0,
TxtRecords = new[]
{
{
{ "value", new[]
{
"string",
} },
},
},
AaaaRecords = new[]
{
{
{ "ipv6Address", "string" },
},
},
});
example, err := network.NewRecordSet(ctx, "recordSetResource", &network.RecordSetArgs{
RecordType: "string",
ZoneName: "string",
ResourceGroupName: "string",
Metadata: map[string]interface{}{
"string": "string",
},
CaaRecords: []map[string]interface{}{
map[string]interface{}{
"flags": 0,
"tag": "string",
"value": "string",
},
},
MxRecords: []map[string]interface{}{
map[string]interface{}{
"exchange": "string",
"preference": 0,
},
},
NsRecords: []map[string]interface{}{
map[string]interface{}{
"nsdname": "string",
},
},
PtrRecords: []map[string]interface{}{
map[string]interface{}{
"ptrdname": "string",
},
},
CnameRecord: map[string]interface{}{
"cname": "string",
},
RelativeRecordSetName: "string",
ARecords: []map[string]interface{}{
map[string]interface{}{
"ipv4Address": "string",
},
},
SoaRecord: map[string]interface{}{
"email": "string",
"expireTime": 0,
"host": "string",
"minimumTtl": 0,
"refreshTime": 0,
"retryTime": 0,
"serialNumber": 0,
},
SrvRecords: []map[string]interface{}{
map[string]interface{}{
"port": 0,
"priority": 0,
"target": "string",
"weight": 0,
},
},
TargetResource: map[string]interface{}{
"id": "string",
},
Ttl: 0,
TxtRecords: []map[string]interface{}{
map[string]interface{}{
"value": []string{
"string",
},
},
},
AaaaRecords: []map[string]interface{}{
map[string]interface{}{
"ipv6Address": "string",
},
},
})
var recordSetResource = new RecordSet("recordSetResource", RecordSetArgs.builder()
.recordType("string")
.zoneName("string")
.resourceGroupName("string")
.metadata(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.caaRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.mxRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.nsRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.ptrRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.cnameRecord(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.relativeRecordSetName("string")
.aRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.soaRecord(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.srvRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.targetResource(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.ttl(0)
.txtRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.aaaaRecords(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference))
.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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
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/subid/resourceGroups/rg1/providers/Microsoft.Network/dnsZones/zone1/TXT/record1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- azure-native-v1 pulumi/pulumi-azure-native
- License
- Apache-2.0