Volcengine v0.0.31 published on Monday, May 12, 2025 by Volcengine
volcengine.dns.getRecordSets
Explore with Pulumi AI
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.getZones({
key: "xxx",
searchMode: "xx",
});
const fooRecordSets = fooZones.then(fooZones => volcengine.dns.getRecordSets({
zid: fooZones.zones?.[0]?.zid,
}));
import pulumi
import pulumi_volcengine as volcengine
foo_zones = volcengine.dns.get_zones(key="xxx",
search_mode="xx")
foo_record_sets = volcengine.dns.get_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.GetZones(ctx, &dns.GetZonesArgs{
Key: pulumi.StringRef("xxx"),
SearchMode: pulumi.StringRef("xx"),
}, nil)
if err != nil {
return err
}
_, err = dns.GetRecordSets(ctx, &dns.GetRecordSetsArgs{
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.GetZones.Invoke(new()
{
Key = "xxx",
SearchMode = "xx",
});
var fooRecordSets = Volcengine.Dns.GetRecordSets.Invoke(new()
{
Zid = fooZones.Apply(getZonesResult => getZonesResult.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.GetZonesArgs;
import com.pulumi.volcengine.dns.inputs.GetRecordSetsArgs;
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.getZones(GetZonesArgs.builder()
.key("xxx")
.searchMode("xx")
.build());
final var fooRecordSets = DnsFunctions.getRecordSets(GetRecordSetsArgs.builder()
.zid(fooZones.applyValue(getZonesResult -> getZonesResult.zones()[0].zid()))
.build());
}
}
variables:
fooZones:
fn::invoke:
Function: volcengine:dns:getZones
Arguments:
key: xxx
searchMode: xx
fooRecordSets:
fn::invoke:
Function: volcengine:dns:getRecordSets
Arguments:
zid: ${fooZones.zones[0].zid}
Using getRecordSets
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 getRecordSets(args: GetRecordSetsArgs, opts?: InvokeOptions): Promise<GetRecordSetsResult>
function getRecordSetsOutput(args: GetRecordSetsOutputArgs, opts?: InvokeOptions): Output<GetRecordSetsResult>
def get_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) -> GetRecordSetsResult
def get_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[GetRecordSetsResult]
func GetRecordSets(ctx *Context, args *GetRecordSetsArgs, opts ...InvokeOption) (*GetRecordSetsResult, error)
func GetRecordSetsOutput(ctx *Context, args *GetRecordSetsOutputArgs, opts ...InvokeOption) GetRecordSetsResultOutput
> Note: This function is named GetRecordSets
in the Go SDK.
public static class GetRecordSets
{
public static Task<GetRecordSetsResult> InvokeAsync(GetRecordSetsArgs args, InvokeOptions? opts = null)
public static Output<GetRecordSetsResult> Invoke(GetRecordSetsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRecordSetsResult> getRecordSets(GetRecordSetsArgs args, InvokeOptions options)
public static Output<GetRecordSetsResult> getRecordSets(GetRecordSetsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:dns/getRecordSets:getRecordSets
arguments:
# arguments dictionary
The following arguments are supported:
- Zid int
- The domain ID.
- Host string
- The domain prefix of the record set.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Record
Set stringId - The record set ID.
- Search
Mode string - The matching mode for Host.
- Zid int
- The domain ID.
- Host string
- The domain prefix of the record set.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Record
Set stringId - The record set ID.
- Search
Mode string - The matching mode for Host.
- zid Integer
- The domain ID.
- host String
- The domain prefix of the record set.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- record
Set StringId - The record set ID.
- search
Mode String - The matching mode for Host.
- zid number
- The domain ID.
- host string
- The domain prefix of the record set.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- record
Set stringId - The record set ID.
- search
Mode 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_ strid - 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.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- record
Set StringId - The record set ID.
- search
Mode String - The matching mode for Host.
getRecordSets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Sets List<GetRecord Sets Record Set> - The collection of query.
- Total
Count int - The total count of query.
- Zid int
- Host string
- The host record contained in the DNS record set.
- Name
Regex string - Output
File string - Record
Set stringId - Search
Mode string
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Sets []GetRecord Sets Record Set - The collection of query.
- Total
Count int - The total count of query.
- Zid int
- Host string
- The host record contained in the DNS record set.
- Name
Regex string - Output
File string - Record
Set stringId - Search
Mode string
- id String
- The provider-assigned unique ID for this managed resource.
- record
Sets List<GetRecord Sets Record Set> - The collection of query.
- total
Count Integer - The total count of query.
- zid Integer
- host String
- The host record contained in the DNS record set.
- name
Regex String - output
File String - record
Set StringId - search
Mode String
- id string
- The provider-assigned unique ID for this managed resource.
- record
Sets GetRecord Sets Record Set[] - The collection of query.
- total
Count number - The total count of query.
- zid number
- host string
- The host record contained in the DNS record set.
- name
Regex string - output
File string - record
Set stringId - search
Mode string
- id str
- The provider-assigned unique ID for this managed resource.
- record_
sets Sequence[GetRecord Sets Record Set] - 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_ strid - search_
mode str
- id String
- The provider-assigned unique ID for this managed resource.
- record
Sets List<Property Map> - The collection of query.
- total
Count Number - The total count of query.
- zid Number
- host String
- The host record contained in the DNS record set.
- name
Regex String - output
File String - record
Set StringId - search
Mode String
Supporting Types
GetRecordSetsRecordSet
- 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.
- 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.
- 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.
- weight
Enabled 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.
- weight
Enabled 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.
- weight
Enabled 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.