Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine
volcengine.dns.RecordSets
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.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.
- 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.
RecordSets Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Record
Sets List<RecordSets 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 []RecordSets 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<RecordSets 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 RecordSets 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[RecordSets 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
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.
- 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.