1. Packages
  2. Volcengine
  3. API Docs
  4. dns
  5. RecordSets
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

volcengine.dns.RecordSets

Explore with Pulumi AI

volcengine logo
Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine

    Use this data source to query detailed information of dns record sets

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const fooZones = volcengine.dns.Zones({
        key: "xxx",
        searchMode: "xx",
    });
    const fooRecordSets = fooZones.then(fooZones => volcengine.dns.RecordSets({
        zid: fooZones.zones?.[0]?.zid,
    }));
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo_zones = volcengine.dns.zones(key="xxx",
        search_mode="xx")
    foo_record_sets = volcengine.dns.record_sets(zid=foo_zones.zones[0].zid)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/volcengine/pulumi-volcengine/sdk/go/volcengine/dns"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		fooZones, err := dns.Zones(ctx, &dns.ZonesArgs{
    			Key:        pulumi.StringRef("xxx"),
    			SearchMode: pulumi.StringRef("xx"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = dns.RecordSets(ctx, &dns.RecordSetsArgs{
    			Zid: fooZones.Zones[0].Zid,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Volcengine = Pulumi.Volcengine;
    
    return await Deployment.RunAsync(() => 
    {
        var fooZones = Volcengine.Dns.Zones.Invoke(new()
        {
            Key = "xxx",
            SearchMode = "xx",
        });
    
        var fooRecordSets = Volcengine.Dns.RecordSets.Invoke(new()
        {
            Zid = fooZones.Apply(zonesResult => zonesResult.Zones[0]?.Zid),
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.volcengine.dns.DnsFunctions;
    import com.pulumi.volcengine.dns.inputs.ZonesArgs;
    import com.pulumi.volcengine.dns.inputs.RecordSetsArgs;
    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 fooZones = DnsFunctions.Zones(ZonesArgs.builder()
                .key("xxx")
                .searchMode("xx")
                .build());
    
            final var fooRecordSets = DnsFunctions.RecordSets(RecordSetsArgs.builder()
                .zid(fooZones.applyValue(zonesResult -> zonesResult.zones()[0].zid()))
                .build());
    
        }
    }
    
    variables:
      fooZones:
        fn::invoke:
          Function: volcengine:dns:Zones
          Arguments:
            key: xxx
            searchMode: xx
      fooRecordSets:
        fn::invoke:
          Function: volcengine:dns:RecordSets
          Arguments:
            zid: ${fooZones.zones[0].zid}
    

    Using RecordSets

    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 recordSets(args: RecordSetsArgs, opts?: InvokeOptions): Promise<RecordSetsResult>
    function recordSetsOutput(args: RecordSetsOutputArgs, opts?: InvokeOptions): Output<RecordSetsResult>
    def record_sets(host: Optional[str] = None,
                    name_regex: Optional[str] = None,
                    output_file: Optional[str] = None,
                    record_set_id: Optional[str] = None,
                    search_mode: Optional[str] = None,
                    zid: Optional[int] = None,
                    opts: Optional[InvokeOptions] = None) -> RecordSetsResult
    def record_sets_output(host: Optional[pulumi.Input[str]] = None,
                    name_regex: Optional[pulumi.Input[str]] = None,
                    output_file: Optional[pulumi.Input[str]] = None,
                    record_set_id: Optional[pulumi.Input[str]] = None,
                    search_mode: Optional[pulumi.Input[str]] = None,
                    zid: Optional[pulumi.Input[int]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[RecordSetsResult]
    func RecordSets(ctx *Context, args *RecordSetsArgs, opts ...InvokeOption) (*RecordSetsResult, error)
    func RecordSetsOutput(ctx *Context, args *RecordSetsOutputArgs, opts ...InvokeOption) RecordSetsResultOutput
    public static class RecordSets 
    {
        public static Task<RecordSetsResult> InvokeAsync(RecordSetsArgs args, InvokeOptions? opts = null)
        public static Output<RecordSetsResult> Invoke(RecordSetsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<RecordSetsResult> recordSets(RecordSetsArgs args, InvokeOptions options)
    public static Output<RecordSetsResult> recordSets(RecordSetsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:dns:RecordSets
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Zid int
    The domain ID.
    Host string
    The domain prefix of the record set.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    RecordSetId string
    The record set ID.
    SearchMode string
    The matching mode for Host.
    Zid int
    The domain ID.
    Host string
    The domain prefix of the record set.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    RecordSetId string
    The record set ID.
    SearchMode string
    The matching mode for Host.
    zid Integer
    The domain ID.
    host String
    The domain prefix of the record set.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    recordSetId String
    The record set ID.
    searchMode String
    The matching mode for Host.
    zid number
    The domain ID.
    host string
    The domain prefix of the record set.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    recordSetId string
    The record set ID.
    searchMode string
    The matching mode for Host.
    zid int
    The domain ID.
    host str
    The domain prefix of the record set.
    name_regex str
    A Name Regex of Resource.
    output_file str
    File name where to save data source results.
    record_set_id str
    The record set ID.
    search_mode str
    The matching mode for Host.
    zid Number
    The domain ID.
    host String
    The domain prefix of the record set.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    recordSetId String
    The record set ID.
    searchMode String
    The matching mode for Host.

    RecordSets Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    RecordSets List<RecordSetsRecordSet>
    The collection of query.
    TotalCount int
    The total count of query.
    Zid int
    Host string
    The host record contained in the DNS record set.
    NameRegex string
    OutputFile string
    RecordSetId string
    SearchMode string
    Id string
    The provider-assigned unique ID for this managed resource.
    RecordSets []RecordSetsRecordSet
    The collection of query.
    TotalCount int
    The total count of query.
    Zid int
    Host string
    The host record contained in the DNS record set.
    NameRegex string
    OutputFile string
    RecordSetId string
    SearchMode string
    id String
    The provider-assigned unique ID for this managed resource.
    recordSets List<RecordSetsRecordSet>
    The collection of query.
    totalCount Integer
    The total count of query.
    zid Integer
    host String
    The host record contained in the DNS record set.
    nameRegex String
    outputFile String
    recordSetId String
    searchMode String
    id string
    The provider-assigned unique ID for this managed resource.
    recordSets RecordSetsRecordSet[]
    The collection of query.
    totalCount number
    The total count of query.
    zid number
    host string
    The host record contained in the DNS record set.
    nameRegex string
    outputFile string
    recordSetId string
    searchMode string
    id str
    The provider-assigned unique ID for this managed resource.
    record_sets Sequence[RecordSetsRecordSet]
    The collection of query.
    total_count int
    The total count of query.
    zid int
    host str
    The host record contained in the DNS record set.
    name_regex str
    output_file str
    record_set_id str
    search_mode str
    id String
    The provider-assigned unique ID for this managed resource.
    recordSets List<Property Map>
    The collection of query.
    totalCount Number
    The total count of query.
    zid Number
    host String
    The host record contained in the DNS record set.
    nameRegex String
    outputFile String
    recordSetId String
    searchMode String

    Supporting Types

    RecordSetsRecordSet

    Host string
    The domain prefix of the record set.
    Id string
    The ID of the DNS record set.
    Line string
    The line code corresponding to the DNS record set.
    Pqdn string
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    Type string
    The type of DNS records in the DNS record set.
    WeightEnabled bool
    Indicates whether load balancing is enabled for the DNS record set.
    Host string
    The domain prefix of the record set.
    Id string
    The ID of the DNS record set.
    Line string
    The line code corresponding to the DNS record set.
    Pqdn string
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    Type string
    The type of DNS records in the DNS record set.
    WeightEnabled bool
    Indicates whether load balancing is enabled for the DNS record set.
    host String
    The domain prefix of the record set.
    id String
    The ID of the DNS record set.
    line String
    The line code corresponding to the DNS record set.
    pqdn String
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    type String
    The type of DNS records in the DNS record set.
    weightEnabled Boolean
    Indicates whether load balancing is enabled for the DNS record set.
    host string
    The domain prefix of the record set.
    id string
    The ID of the DNS record set.
    line string
    The line code corresponding to the DNS record set.
    pqdn string
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    type string
    The type of DNS records in the DNS record set.
    weightEnabled boolean
    Indicates whether load balancing is enabled for the DNS record set.
    host str
    The domain prefix of the record set.
    id str
    The ID of the DNS record set.
    line str
    The line code corresponding to the DNS record set.
    pqdn str
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    type str
    The type of DNS records in the DNS record set.
    weight_enabled bool
    Indicates whether load balancing is enabled for the DNS record set.
    host String
    The domain prefix of the record set.
    id String
    The ID of the DNS record set.
    line String
    The line code corresponding to the DNS record set.
    pqdn String
    The domain prefix contained in the DNS record set, in PQDN (Partially Qualified Domain Name) format.
    type String
    The type of DNS records in the DNS record set.
    weightEnabled Boolean
    Indicates whether load balancing is enabled for the DNS record set.

    Package Details

    Repository
    volcengine volcengine/pulumi-volcengine
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine