selectel.DomainsRrsetV2
Explore with Pulumi AI
Creates and manages an RRSet in DNS Hosting (actual) using public API v2. For more information about RRSets, see the official Selectel documentation.
Example Usage
A RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const aRrset1 = new selectel.DomainsRrsetV2("aRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "A",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "127.0.0.1",
}],
});
import pulumi
import pulumi_selectel as selectel
a_rrset1 = selectel.DomainsRrsetV2("aRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="A",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "127.0.0.1",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "aRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("A"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("127.0.0.1"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var aRrset1 = new Selectel.DomainsRrsetV2("aRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "A",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "127.0.0.1",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 aRrset1 = new DomainsRrsetV2("aRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("A")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("127.0.0.1")
.build())
.build());
}
}
resources:
aRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: A
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 127.0.0.1
AAAA RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const aaaaRrset1 = new selectel.DomainsRrsetV2("aaaaRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "AAAA",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "2400:cb00:2049:1::a29f:1804",
}],
});
import pulumi
import pulumi_selectel as selectel
aaaa_rrset1 = selectel.DomainsRrsetV2("aaaaRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="AAAA",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "2400:cb00:2049:1::a29f:1804",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "aaaaRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("AAAA"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("2400:cb00:2049:1::a29f:1804"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var aaaaRrset1 = new Selectel.DomainsRrsetV2("aaaaRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "AAAA",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "2400:cb00:2049:1::a29f:1804",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 aaaaRrset1 = new DomainsRrsetV2("aaaaRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("AAAA")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("2400:cb00:2049:1::a29f:1804")
.build())
.build());
}
}
resources:
aaaaRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: AAAA
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 2400:cb00:2049:1::a29f:1804
TXT RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const txtRrset1 = new selectel.DomainsRrsetV2("txtRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "TXT",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "\"hello, world!\"",
}],
});
import pulumi
import pulumi_selectel as selectel
txt_rrset1 = selectel.DomainsRrsetV2("txtRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="TXT",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "\"hello, world!\"",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "txtRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("TXT"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("\"hello, world!\""),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var txtRrset1 = new Selectel.DomainsRrsetV2("txtRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "TXT",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "\"hello, world!\"",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 txtRrset1 = new DomainsRrsetV2("txtRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("TXT")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("\"hello, world!\"")
.build())
.build());
}
}
resources:
txtRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: TXT
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: '"hello, world!"'
CNAME RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const cnameRrset1 = new selectel.DomainsRrsetV2("cnameRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "CNAME",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "origin.com.",
}],
});
import pulumi
import pulumi_selectel as selectel
cname_rrset1 = selectel.DomainsRrsetV2("cnameRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="CNAME",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "origin.com.",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "cnameRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("CNAME"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("origin.com."),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var cnameRrset1 = new Selectel.DomainsRrsetV2("cnameRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "CNAME",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "origin.com.",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 cnameRrset1 = new DomainsRrsetV2("cnameRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("CNAME")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("origin.com.")
.build())
.build());
}
}
resources:
cnameRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: CNAME
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: origin.com.
MX RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const mxRrset1 = new selectel.DomainsRrsetV2("mxRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "MX",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "10 mail.example.org.",
}],
});
import pulumi
import pulumi_selectel as selectel
mx_rrset1 = selectel.DomainsRrsetV2("mxRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="MX",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "10 mail.example.org.",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "mxRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("MX"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("10 mail.example.org."),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var mxRrset1 = new Selectel.DomainsRrsetV2("mxRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "MX",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "10 mail.example.org.",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 mxRrset1 = new DomainsRrsetV2("mxRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("MX")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("10 mail.example.org.")
.build())
.build());
}
}
resources:
mxRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: MX
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 10 mail.example.org.
NS RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const nsRrset1 = new selectel.DomainsRrsetV2("nsRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "NS",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "a.ns.selectel.ru.",
}],
});
import pulumi
import pulumi_selectel as selectel
ns_rrset1 = selectel.DomainsRrsetV2("nsRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="NS",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "a.ns.selectel.ru.",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "nsRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("NS"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("a.ns.selectel.ru."),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var nsRrset1 = new Selectel.DomainsRrsetV2("nsRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "NS",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "a.ns.selectel.ru.",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 nsRrset1 = new DomainsRrsetV2("nsRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("NS")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("a.ns.selectel.ru.")
.build())
.build());
}
}
resources:
nsRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: NS
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: a.ns.selectel.ru.
SRV RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const srvRrset1 = new selectel.DomainsRrsetV2("srvRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "SRV",
ttl: 120,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "10 20 30 example.org.",
}],
});
import pulumi
import pulumi_selectel as selectel
srv_rrset1 = selectel.DomainsRrsetV2("srvRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="SRV",
ttl=120,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "10 20 30 example.org.",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "srvRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("SRV"),
Ttl: pulumi.Float64(120),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("10 20 30 example.org."),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var srvRrset1 = new Selectel.DomainsRrsetV2("srvRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "SRV",
Ttl = 120,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "10 20 30 example.org.",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 srvRrset1 = new DomainsRrsetV2("srvRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("SRV")
.ttl(120)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("10 20 30 example.org.")
.build())
.build());
}
}
resources:
srvRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: SRV
ttl: 120
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 10 20 30 example.org.
SSHFP RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const sshfpRrset1 = new selectel.DomainsRrsetV2("sshfpRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "SSHFP",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49",
}],
});
import pulumi
import pulumi_selectel as selectel
sshfp_rrset1 = selectel.DomainsRrsetV2("sshfpRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="SSHFP",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "sshfpRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("SSHFP"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49"),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var sshfpRrset1 = new Selectel.DomainsRrsetV2("sshfpRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "SSHFP",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 sshfpRrset1 = new DomainsRrsetV2("sshfpRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("SSHFP")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49")
.build())
.build());
}
}
resources:
sshfpRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: SSHFP
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 1 1 7491973e5f8b39d5327cd4e08bc81b05f7710b49
ALIAS RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const aliasRrset1 = new selectel.DomainsRrsetV2("aliasRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "ALIAS",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "origin.com.",
}],
});
import pulumi
import pulumi_selectel as selectel
alias_rrset1 = selectel.DomainsRrsetV2("aliasRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="ALIAS",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "origin.com.",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "aliasRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("ALIAS"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("origin.com."),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var aliasRrset1 = new Selectel.DomainsRrsetV2("aliasRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "ALIAS",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "origin.com.",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 aliasRrset1 = new DomainsRrsetV2("aliasRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("ALIAS")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("origin.com.")
.build())
.build());
}
}
resources:
aliasRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: ALIAS
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: origin.com.
CAA RRSet
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const caaRrset1 = new selectel.DomainsRrsetV2("caaRrset1", {
zoneId: selectel_domains_zone_v2.zone_1.id,
type: "CAA",
ttl: 60,
projectId: selectel_vpc_project_v2.project_1.id,
records: [{
content: "128 issue \"letsencrypt.com.\"",
}],
});
import pulumi
import pulumi_selectel as selectel
caa_rrset1 = selectel.DomainsRrsetV2("caaRrset1",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
type="CAA",
ttl=60,
project_id=selectel_vpc_project_v2["project_1"]["id"],
records=[{
"content": "128 issue \"letsencrypt.com.\"",
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/selectel/v6/selectel"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := selectel.NewDomainsRrsetV2(ctx, "caaRrset1", &selectel.DomainsRrsetV2Args{
ZoneId: pulumi.Any(selectel_domains_zone_v2.Zone_1.Id),
Type: pulumi.String("CAA"),
Ttl: pulumi.Float64(60),
ProjectId: pulumi.Any(selectel_vpc_project_v2.Project_1.Id),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("128 issue \"letsencrypt.com.\""),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Selectel = Pulumi.Selectel;
return await Deployment.RunAsync(() =>
{
var caaRrset1 = new Selectel.DomainsRrsetV2("caaRrset1", new()
{
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
Type = "CAA",
Ttl = 60,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "128 issue \"letsencrypt.com.\"",
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.DomainsRrsetV2;
import com.pulumi.selectel.DomainsRrsetV2Args;
import com.pulumi.selectel.inputs.DomainsRrsetV2RecordArgs;
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 caaRrset1 = new DomainsRrsetV2("caaRrset1", DomainsRrsetV2Args.builder()
.zoneId(selectel_domains_zone_v2.zone_1().id())
.type("CAA")
.ttl(60)
.projectId(selectel_vpc_project_v2.project_1().id())
.records(DomainsRrsetV2RecordArgs.builder()
.content("128 issue \"letsencrypt.com.\"")
.build())
.build());
}
}
resources:
caaRrset1:
type: selectel:DomainsRrsetV2
properties:
zoneId: ${selectel_domains_zone_v2.zone_1.id}
type: CAA
ttl: 60
projectId: ${selectel_vpc_project_v2.project_1.id}
records:
- content: 128 issue "letsencrypt.com."
Create DomainsRrsetV2 Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new DomainsRrsetV2(name: string, args: DomainsRrsetV2Args, opts?: CustomResourceOptions);
@overload
def DomainsRrsetV2(resource_name: str,
args: DomainsRrsetV2Args,
opts: Optional[ResourceOptions] = None)
@overload
def DomainsRrsetV2(resource_name: str,
opts: Optional[ResourceOptions] = None,
project_id: Optional[str] = None,
records: Optional[Sequence[DomainsRrsetV2RecordArgs]] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None,
comment: Optional[str] = None,
domains_rrset_v2_id: Optional[str] = None,
name: Optional[str] = None)
func NewDomainsRrsetV2(ctx *Context, name string, args DomainsRrsetV2Args, opts ...ResourceOption) (*DomainsRrsetV2, error)
public DomainsRrsetV2(string name, DomainsRrsetV2Args args, CustomResourceOptions? opts = null)
public DomainsRrsetV2(String name, DomainsRrsetV2Args args)
public DomainsRrsetV2(String name, DomainsRrsetV2Args args, CustomResourceOptions options)
type: selectel:DomainsRrsetV2
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 DomainsRrsetV2Args
- 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 DomainsRrsetV2Args
- 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 DomainsRrsetV2Args
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args DomainsRrsetV2Args
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args DomainsRrsetV2Args
- 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 domainsRrsetV2Resource = new Selectel.DomainsRrsetV2("domainsRrsetV2Resource", new()
{
ProjectId = "string",
Records = new[]
{
new Selectel.Inputs.DomainsRrsetV2RecordArgs
{
Content = "string",
Disabled = false,
},
},
Ttl = 0,
Type = "string",
ZoneId = "string",
Comment = "string",
DomainsRrsetV2Id = "string",
Name = "string",
});
example, err := selectel.NewDomainsRrsetV2(ctx, "domainsRrsetV2Resource", &selectel.DomainsRrsetV2Args{
ProjectId: pulumi.String("string"),
Records: selectel.DomainsRrsetV2RecordArray{
&selectel.DomainsRrsetV2RecordArgs{
Content: pulumi.String("string"),
Disabled: pulumi.Bool(false),
},
},
Ttl: pulumi.Float64(0),
Type: pulumi.String("string"),
ZoneId: pulumi.String("string"),
Comment: pulumi.String("string"),
DomainsRrsetV2Id: pulumi.String("string"),
Name: pulumi.String("string"),
})
var domainsRrsetV2Resource = new DomainsRrsetV2("domainsRrsetV2Resource", DomainsRrsetV2Args.builder()
.projectId("string")
.records(DomainsRrsetV2RecordArgs.builder()
.content("string")
.disabled(false)
.build())
.ttl(0)
.type("string")
.zoneId("string")
.comment("string")
.domainsRrsetV2Id("string")
.name("string")
.build());
domains_rrset_v2_resource = selectel.DomainsRrsetV2("domainsRrsetV2Resource",
project_id="string",
records=[{
"content": "string",
"disabled": False,
}],
ttl=0,
type="string",
zone_id="string",
comment="string",
domains_rrset_v2_id="string",
name="string")
const domainsRrsetV2Resource = new selectel.DomainsRrsetV2("domainsRrsetV2Resource", {
projectId: "string",
records: [{
content: "string",
disabled: false,
}],
ttl: 0,
type: "string",
zoneId: "string",
comment: "string",
domainsRrsetV2Id: "string",
name: "string",
});
type: selectel:DomainsRrsetV2
properties:
comment: string
domainsRrsetV2Id: string
name: string
projectId: string
records:
- content: string
disabled: false
ttl: 0
type: string
zoneId: string
DomainsRrsetV2 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 DomainsRrsetV2 resource accepts the following input properties:
- Project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Records
List<Domains
Rrset V2Record> - List of records in the RRSet.
- Ttl double
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- Type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- Comment string
- Comment to add to the RRSet.
- Domains
Rrset stringV2Id - Name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
- Project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Records
[]Domains
Rrset V2Record Args - List of records in the RRSet.
- Ttl float64
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- Type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- Comment string
- Comment to add to the RRSet.
- Domains
Rrset stringV2Id - Name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
- project
Id String - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
List<Domains
Rrset V2Record> - List of records in the RRSet.
- ttl Double
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type String
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment String
- Comment to add to the RRSet.
- domains
Rrset StringV2Id - name String
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
- project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
Domains
Rrset V2Record[] - List of records in the RRSet.
- ttl number
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment string
- Comment to add to the RRSet.
- domains
Rrset stringV2Id - name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
- project_
id str - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
Sequence[Domains
Rrset V2Record Args] - List of records in the RRSet.
- ttl float
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type str
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone_
id str - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment str
- Comment to add to the RRSet.
- domains_
rrset_ strv2_ id - name str
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
- project
Id String - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records List<Property Map>
- List of records in the RRSet.
- ttl Number
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type String
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment String
- Comment to add to the RRSet.
- domains
Rrset StringV2Id - name String
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet.
Outputs
All input properties are implicitly available as output properties. Additionally, the DomainsRrsetV2 resource produces the following output properties:
- id str
- The provider-assigned unique ID for this managed resource.
- managed_
by str - RRSet owner.
Look up Existing DomainsRrsetV2 Resource
Get an existing DomainsRrsetV2 resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: DomainsRrsetV2State, opts?: CustomResourceOptions): DomainsRrsetV2
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
comment: Optional[str] = None,
domains_rrset_v2_id: Optional[str] = None,
managed_by: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
records: Optional[Sequence[DomainsRrsetV2RecordArgs]] = None,
ttl: Optional[float] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None) -> DomainsRrsetV2
func GetDomainsRrsetV2(ctx *Context, name string, id IDInput, state *DomainsRrsetV2State, opts ...ResourceOption) (*DomainsRrsetV2, error)
public static DomainsRrsetV2 Get(string name, Input<string> id, DomainsRrsetV2State? state, CustomResourceOptions? opts = null)
public static DomainsRrsetV2 get(String name, Output<String> id, DomainsRrsetV2State state, CustomResourceOptions options)
resources: _: type: selectel:DomainsRrsetV2 get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Comment string
- Comment to add to the RRSet.
- Domains
Rrset stringV2Id - Managed
By string - RRSet owner.
- Name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - Project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Records
List<Domains
Rrset V2Record> - List of records in the RRSet.
- Ttl double
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- Type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- Comment string
- Comment to add to the RRSet.
- Domains
Rrset stringV2Id - Managed
By string - RRSet owner.
- Name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - Project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Records
[]Domains
Rrset V2Record Args - List of records in the RRSet.
- Ttl float64
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- Type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment String
- Comment to add to the RRSet.
- domains
Rrset StringV2Id - managed
By String - RRSet owner.
- name String
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - project
Id String - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
List<Domains
Rrset V2Record> - List of records in the RRSet.
- ttl Double
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type String
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment string
- Comment to add to the RRSet.
- domains
Rrset stringV2Id - managed
By string - RRSet owner.
- name string
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - project
Id string - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
Domains
Rrset V2Record[] - List of records in the RRSet.
- ttl number
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type string
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id string - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment str
- Comment to add to the RRSet.
- domains_
rrset_ strv2_ id - managed_
by str - RRSet owner.
- name str
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - project_
id str - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records
Sequence[Domains
Rrset V2Record Args] - List of records in the RRSet.
- ttl float
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type str
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone_
id str - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
- comment String
- Comment to add to the RRSet.
- domains
Rrset StringV2Id - managed
By String - RRSet owner.
- name String
- RRSet name. Changing this creates a new RRSet. The value must be the same as the zone name. If
type
isNS
, you can create an RRSet only for a subdomain, so the value must be a subzone name, the parent zone of which is delegated to DNS hosting (actual). Iftype
isSRV
, the name must also include service and protocol, see the example usage for SRV RRSet. - project
Id String - Unique identifier of the associated project. Changing this creates a new RRSet. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- records List<Property Map>
- List of records in the RRSet.
- ttl Number
- RRSet time-to-live in seconds. The available range is from 60 to 604800.
- type String
- RRSet type. Changing this creates a new RRSet. Available types are
A
,AAAA
,TXT
,CNAME
,MX
,NS
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Changing this creates a new RRSet. Retrieved from the selectel.DomainsZoneV2 resource.
Supporting Types
DomainsRrsetV2Record, DomainsRrsetV2RecordArgs
- Content string
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- Disabled bool
- Enables or disables the record. Boolean flag, the default value is false.
- Content string
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- Disabled bool
- Enables or disables the record. Boolean flag, the default value is false.
- content String
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- disabled Boolean
- Enables or disables the record. Boolean flag, the default value is false.
- content string
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- disabled boolean
- Enables or disables the record. Boolean flag, the default value is false.
- content str
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- disabled bool
- Enables or disables the record. Boolean flag, the default value is false.
- content String
Record value. The value depends on the RRSet type.
<ipv4_address>
— IPv4-address. Applicable only to A RRSets.<ipv6_address>
— IPv6-address. Applicable only to AAAA RRSets.<text>
— Any text wrapped in\"
. Applicable only to TXT RRSets.<target>
— Canonical name of the host providing the service with a dot at the end. Applicable only to CNAME, ALIAS, and SRV RRSets.<name_server>
— Canonical name of the NS server. Applicable only to NS RRSets.<priority>
— Priority of the records preferences. Applicable only to MX and SRV RRSets. Lower value means more preferred.<host>
— Name of the mailserver with a dot at the end. Applicable only to MX RRSets.<weight>
— Weight for the records with the same priority. Higher value means more preferred. Applicable only to SRV RRSets.<port>
— TCP or UDP port of the host of the service. Applicable only to SRV RRSets.<algorithm>
— Algorithm of the public key. Applicable only to SSHFP RRSets. Available values are1
for RSA,2
for DSA,3
for ECDSA,4
for Ed25519.<fingerprint_type>
— Algorithm used to hash the public key. Applicable only to SSHFP RRSets. Available values are1
for SHA-1,2
for SHA-256.<fingerprint>
— Hexadecimal representation of the hash result, as text. Applicable only to SSHFP RRSets.<flag>
— Critical value that has a specific meaning per RFC. Applicable only to CAA RRSets. The available range is from 0 to 128.<tag>
— Identifier of the property represented by the record. Applicable only to CAA RRSets. Available values areissue
,issuewild
,iodef
,auth
,path
,policy
.<value>
— Value associated with the tag wrapped in\"
. Applicable only to CAA RRSets.
- disabled Boolean
- Enables or disables the record. Boolean flag, the default value is false.
Import
You can import an RRSet:
export OS_DOMAIN_NAME=<account_id>
export OS_USERNAME=
export OS_PASSWORD=
export INFRA_PROJECT_ID=<selectel_project_id>
$ pulumi import selectel:index/domainsRrsetV2:DomainsRrsetV2 rrset_1 <zone_name>/<rrset_name>/<rrset_type>
where:
<account_id>
— Selectel account ID. The account ID is in the top right corner of the Control panel. Learn more about Registration.<username>
— Name of the service user. To get the name, in the Control panel, go to Identity & Access Management ⟶ User management ⟶ the Service users tab ⟶ copy the name of the required user. Learn more about Service users.<password>
— Password of the service user.<selectel_project_id>
— Unique identifier of the associated project. To get the ID, in the Control panel, go to Cloud Platform ⟶ project name ⟶ copy the ID of the required project. Learn more about Projects.<zone_name>
— Zone name, for example,example.com.
. To get the name, in the Control panel, go to DNS. The zone name is in the Zone column.<rrset_name>
— RRSet name, for example,example.com.
. To get the name, in the Control panel, go to DNS → the zone page. The RRSet name is in the Group name column.<rrset_type>
— RRSet type. To get the type, in the Control panel, go to DNS → the zone page. The RRSet type is in the Type column.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.