selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel
selectel.getDomainsRrsetV2
Explore with Pulumi AI
Provides information about an RRSet in DNS Hosting (actual). For more information about RRSets, see the official Selectel documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as selectel from "@pulumi/selectel";
const rrset1 = selectel.getDomainsRrsetV2({
name: "example.com.",
type: "A",
zoneId: selectel_domains_zone_v2.zone_1.id,
projectId: selectel_vpc_project_v2.project_1.id,
});
import pulumi
import pulumi_selectel as selectel
rrset1 = selectel.get_domains_rrset_v2(name="example.com.",
type="A",
zone_id=selectel_domains_zone_v2["zone_1"]["id"],
project_id=selectel_vpc_project_v2["project_1"]["id"])
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.LookupDomainsRrsetV2(ctx, &selectel.LookupDomainsRrsetV2Args{
Name: "example.com.",
Type: "A",
ZoneId: selectel_domains_zone_v2.Zone_1.Id,
ProjectId: selectel_vpc_project_v2.Project_1.Id,
}, nil)
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 rrset1 = Selectel.GetDomainsRrsetV2.Invoke(new()
{
Name = "example.com.",
Type = "A",
ZoneId = selectel_domains_zone_v2.Zone_1.Id,
ProjectId = selectel_vpc_project_v2.Project_1.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.selectel.SelectelFunctions;
import com.pulumi.selectel.inputs.GetDomainsRrsetV2Args;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var rrset1 = SelectelFunctions.getDomainsRrsetV2(GetDomainsRrsetV2Args.builder()
.name("example.com.")
.type("A")
.zoneId(selectel_domains_zone_v2.zone_1().id())
.projectId(selectel_vpc_project_v2.project_1().id())
.build());
}
}
variables:
rrset1:
fn::invoke:
function: selectel:getDomainsRrsetV2
arguments:
name: example.com.
type: A
zoneId: ${selectel_domains_zone_v2.zone_1.id}
projectId: ${selectel_vpc_project_v2.project_1.id}
Using getDomainsRrsetV2
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDomainsRrsetV2(args: GetDomainsRrsetV2Args, opts?: InvokeOptions): Promise<GetDomainsRrsetV2Result>
function getDomainsRrsetV2Output(args: GetDomainsRrsetV2OutputArgs, opts?: InvokeOptions): Output<GetDomainsRrsetV2Result>
def get_domains_rrset_v2(id: Optional[str] = None,
name: Optional[str] = None,
project_id: Optional[str] = None,
type: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetDomainsRrsetV2Result
def get_domains_rrset_v2_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetDomainsRrsetV2Result]
func LookupDomainsRrsetV2(ctx *Context, args *LookupDomainsRrsetV2Args, opts ...InvokeOption) (*LookupDomainsRrsetV2Result, error)
func LookupDomainsRrsetV2Output(ctx *Context, args *LookupDomainsRrsetV2OutputArgs, opts ...InvokeOption) LookupDomainsRrsetV2ResultOutput
> Note: This function is named LookupDomainsRrsetV2
in the Go SDK.
public static class GetDomainsRrsetV2
{
public static Task<GetDomainsRrsetV2Result> InvokeAsync(GetDomainsRrsetV2Args args, InvokeOptions? opts = null)
public static Output<GetDomainsRrsetV2Result> Invoke(GetDomainsRrsetV2InvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetDomainsRrsetV2Result> getDomainsRrsetV2(GetDomainsRrsetV2Args args, InvokeOptions options)
public static Output<GetDomainsRrsetV2Result> getDomainsRrsetV2(GetDomainsRrsetV2Args args, InvokeOptions options)
fn::invoke:
function: selectel:index/getDomainsRrsetV2:getDomainsRrsetV2
arguments:
# arguments dictionary
The following arguments are supported:
- Name string
- RRSet name.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Type string
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- Id string
- Name string
- RRSet name.
- Project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- Type string
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - Zone
Id string - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- Id string
- name String
- RRSet name.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- type String
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- id String
- name string
- RRSet name.
- project
Id string - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- type string
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id string - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- id string
- name str
- RRSet name.
- project_
id str - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- type str
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - zone_
id str - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- id str
- name String
- RRSet name.
- project
Id String - Unique identifier of the associated project. Retrieved from the selectel.VpcProjectV2 resource. Learn more about Projects.
- type String
- RRSet type. Available types are
A
,AAAA
,TXT
,CNAME
,NS
,MX
,SRV
,SSHFP
,ALIAS
,CAA
. - zone
Id String - Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
- id String
getDomainsRrsetV2 Result
The following output properties are available:
- comment str
- Comment for the RRSet.
- id str
- managed_
by str - RRSet owner.
- name str
- project_
id str - records
Sequence[Get
Domains Rrset V2Record] - List of records in the RRSet.
- ttl float
- RRSet time-to-live in seconds.
- type str
- zone_
id str
Supporting Types
GetDomainsRrsetV2Record
Package Details
- Repository
- selectel selectel/terraform-provider-selectel
- License
- Notes
- This Pulumi package is based on the
selectel
Terraform Provider.