1. Packages
  2. Selectel Provider
  3. API Docs
  4. getDomainsRrsetV2
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

selectel.getDomainsRrsetV2

Explore with Pulumi AI

selectel logo
selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel

    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.
    ProjectId 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.
    ZoneId string
    Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
    Id string
    Name string
    RRSet name.
    ProjectId 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.
    ZoneId string
    Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
    Id string
    name String
    RRSet name.
    projectId 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.
    zoneId String
    Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
    id String
    name string
    RRSet name.
    projectId 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.
    zoneId 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.
    projectId 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.
    zoneId String
    Unique identifier of the zone. Retrieved from the selectel.DomainsZoneV2 resource.
    id String

    getDomainsRrsetV2 Result

    The following output properties are available:

    Comment string
    Comment for the RRSet.
    Id string
    ManagedBy string
    RRSet owner.
    Name string
    ProjectId string
    Records List<GetDomainsRrsetV2Record>
    List of records in the RRSet.
    Ttl double
    RRSet time-to-live in seconds.
    Type string
    ZoneId string
    Comment string
    Comment for the RRSet.
    Id string
    ManagedBy string
    RRSet owner.
    Name string
    ProjectId string
    Records []GetDomainsRrsetV2Record
    List of records in the RRSet.
    Ttl float64
    RRSet time-to-live in seconds.
    Type string
    ZoneId string
    comment String
    Comment for the RRSet.
    id String
    managedBy String
    RRSet owner.
    name String
    projectId String
    records List<GetDomainsRrsetV2Record>
    List of records in the RRSet.
    ttl Double
    RRSet time-to-live in seconds.
    type String
    zoneId String
    comment string
    Comment for the RRSet.
    id string
    managedBy string
    RRSet owner.
    name string
    projectId string
    records GetDomainsRrsetV2Record[]
    List of records in the RRSet.
    ttl number
    RRSet time-to-live in seconds.
    type string
    zoneId string
    comment str
    Comment for the RRSet.
    id str
    managed_by str
    RRSet owner.
    name str
    project_id str
    records Sequence[GetDomainsRrsetV2Record]
    List of records in the RRSet.
    ttl float
    RRSet time-to-live in seconds.
    type str
    zone_id str
    comment String
    Comment for the RRSet.
    id String
    managedBy String
    RRSet owner.
    name String
    projectId String
    records List<Property Map>
    List of records in the RRSet.
    ttl Number
    RRSet time-to-live in seconds.
    type String
    zoneId String

    Supporting Types

    GetDomainsRrsetV2Record

    Content string
    Record value.
    Disabled bool
    Shows if the record is enabled or disabled.
    Content string
    Record value.
    Disabled bool
    Shows if the record is enabled or disabled.
    content String
    Record value.
    disabled Boolean
    Shows if the record is enabled or disabled.
    content string
    Record value.
    disabled boolean
    Shows if the record is enabled or disabled.
    content str
    Record value.
    disabled bool
    Shows if the record is enabled or disabled.
    content String
    Record value.
    disabled Boolean
    Shows if the record is enabled or disabled.

    Package Details

    Repository
    selectel selectel/terraform-provider-selectel
    License
    Notes
    This Pulumi package is based on the selectel Terraform Provider.
    selectel logo
    selectel 6.4.0 published on Monday, Apr 14, 2025 by selectel