Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
Use this data source to query detailed information of dns records
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as volcengine from "@pulumi/volcengine";
const foo = volcengine.dns.getRecords({
zid: 58857,
});
import pulumi
import pulumi_volcengine as volcengine
foo = volcengine.dns.get_records(zid=58857)
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 {
_, err := dns.GetRecords(ctx, &dns.GetRecordsArgs{
Zid: 58857,
}, 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 foo = Volcengine.Dns.GetRecords.Invoke(new()
{
Zid = 58857,
});
});
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.GetRecordsArgs;
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 foo = DnsFunctions.getRecords(GetRecordsArgs.builder()
.zid(58857)
.build());
}
}
variables:
foo:
fn::invoke:
Function: volcengine:dns:getRecords
Arguments:
zid: 58857
Using getRecords
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 getRecords(args: GetRecordsArgs, opts?: InvokeOptions): Promise<GetRecordsResult>
function getRecordsOutput(args: GetRecordsOutputArgs, opts?: InvokeOptions): Output<GetRecordsResult>def get_records(host: Optional[str] = None,
line: Optional[str] = None,
name_regex: Optional[str] = None,
output_file: Optional[str] = None,
search_mode: Optional[str] = None,
search_order: Optional[str] = None,
type: Optional[str] = None,
value: Optional[str] = None,
zid: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetRecordsResult
def get_records_output(host: Optional[pulumi.Input[str]] = None,
line: Optional[pulumi.Input[str]] = None,
name_regex: Optional[pulumi.Input[str]] = None,
output_file: Optional[pulumi.Input[str]] = None,
search_mode: Optional[pulumi.Input[str]] = None,
search_order: Optional[pulumi.Input[str]] = None,
type: Optional[pulumi.Input[str]] = None,
value: Optional[pulumi.Input[str]] = None,
zid: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRecordsResult]func GetRecords(ctx *Context, args *GetRecordsArgs, opts ...InvokeOption) (*GetRecordsResult, error)
func GetRecordsOutput(ctx *Context, args *GetRecordsOutputArgs, opts ...InvokeOption) GetRecordsResultOutput> Note: This function is named GetRecords in the Go SDK.
public static class GetRecords
{
public static Task<GetRecordsResult> InvokeAsync(GetRecordsArgs args, InvokeOptions? opts = null)
public static Output<GetRecordsResult> Invoke(GetRecordsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRecordsResult> getRecords(GetRecordsArgs args, InvokeOptions options)
public static Output<GetRecordsResult> getRecords(GetRecordsArgs args, InvokeOptions options)
fn::invoke:
function: volcengine:dns/getRecords:getRecords
arguments:
# arguments dictionaryThe following arguments are supported:
- Zid int
- The ID of the domain.
- Host string
- Domain prefix of the DNS record.
- Line string
- Line of the DNS record.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Search
Mode string - The matching mode for the Host parameter.
- Search
Order string - The Method to sort the returned list of DNS records.
- Type string
- Type of the DNS record.
- Value string
- Value of the DNS record.
- Zid int
- The ID of the domain.
- Host string
- Domain prefix of the DNS record.
- Line string
- Line of the DNS record.
- Name
Regex string - A Name Regex of Resource.
- Output
File string - File name where to save data source results.
- Search
Mode string - The matching mode for the Host parameter.
- Search
Order string - The Method to sort the returned list of DNS records.
- Type string
- Type of the DNS record.
- Value string
- Value of the DNS record.
- zid Integer
- The ID of the domain.
- host String
- Domain prefix of the DNS record.
- line String
- Line of the DNS record.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- search
Mode String - The matching mode for the Host parameter.
- search
Order String - The Method to sort the returned list of DNS records.
- type String
- Type of the DNS record.
- value String
- Value of the DNS record.
- zid number
- The ID of the domain.
- host string
- Domain prefix of the DNS record.
- line string
- Line of the DNS record.
- name
Regex string - A Name Regex of Resource.
- output
File string - File name where to save data source results.
- search
Mode string - The matching mode for the Host parameter.
- search
Order string - The Method to sort the returned list of DNS records.
- type string
- Type of the DNS record.
- value string
- Value of the DNS record.
- zid int
- The ID of the domain.
- host str
- Domain prefix of the DNS record.
- line str
- Line of the DNS record.
- name_
regex str - A Name Regex of Resource.
- output_
file str - File name where to save data source results.
- search_
mode str - The matching mode for the Host parameter.
- search_
order str - The Method to sort the returned list of DNS records.
- type str
- Type of the DNS record.
- value str
- Value of the DNS record.
- zid Number
- The ID of the domain.
- host String
- Domain prefix of the DNS record.
- line String
- Line of the DNS record.
- name
Regex String - A Name Regex of Resource.
- output
File String - File name where to save data source results.
- search
Mode String - The matching mode for the Host parameter.
- search
Order String - The Method to sort the returned list of DNS records.
- type String
- Type of the DNS record.
- value String
- Value of the DNS record.
getRecords Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Records
List<Get
Records Record> - The collection of query.
- Total
Count int - The total count of query.
- Zid int
- Host string
- The host record included in the DNS record.
- Line string
- The line code corresponding to the DNS record.
- Name
Regex string - Output
File string - Search
Mode string - Search
Order string - Type string
- The type of the DNS record.
- Value string
- The record value contained in the DNS record.
- Id string
- The provider-assigned unique ID for this managed resource.
- Records
[]Get
Records Record - The collection of query.
- Total
Count int - The total count of query.
- Zid int
- Host string
- The host record included in the DNS record.
- Line string
- The line code corresponding to the DNS record.
- Name
Regex string - Output
File string - Search
Mode string - Search
Order string - Type string
- The type of the DNS record.
- Value string
- The record value contained in the DNS record.
- id String
- The provider-assigned unique ID for this managed resource.
- records
List<Get
Records Record> - The collection of query.
- total
Count Integer - The total count of query.
- zid Integer
- host String
- The host record included in the DNS record.
- line String
- The line code corresponding to the DNS record.
- name
Regex String - output
File String - search
Mode String - search
Order String - type String
- The type of the DNS record.
- value String
- The record value contained in the DNS record.
- id string
- The provider-assigned unique ID for this managed resource.
- records
Get
Records Record[] - The collection of query.
- total
Count number - The total count of query.
- zid number
- host string
- The host record included in the DNS record.
- line string
- The line code corresponding to the DNS record.
- name
Regex string - output
File string - search
Mode string - search
Order string - type string
- The type of the DNS record.
- value string
- The record value contained in the DNS record.
- id str
- The provider-assigned unique ID for this managed resource.
- records
Sequence[Get
Records Record] - The collection of query.
- total_
count int - The total count of query.
- zid int
- host str
- The host record included in the DNS record.
- line str
- The line code corresponding to the DNS record.
- name_
regex str - output_
file str - search_
mode str - search_
order str - type str
- The type of the DNS record.
- value str
- The record value contained in the DNS record.
- id String
- The provider-assigned unique ID for this managed resource.
- records List<Property Map>
- The collection of query.
- total
Count Number - The total count of query.
- zid Number
- host String
- The host record included in the DNS record.
- line String
- The line code corresponding to the DNS record.
- name
Regex String - output
File String - search
Mode String - search
Order String - type String
- The type of the DNS record.
- value String
- The record value contained in the DNS record.
Supporting Types
GetRecordsRecord
- Created
At string - The creation time of the domain.
- Enable bool
- Indicates whether the DNS record is enabled.
- Host string
- Domain prefix of the DNS record.
- Line string
- Line of the DNS record.
- Operators List<string>
- The account ID that called this API.
- Pqdn string
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- Record
Id string - The ID of the DNS record.
- Record
Set stringId - The ID of the record set to which the DNS record belongs.
- Remark string
- The remark of the DNS record.
- List<string>
- The tag information of the DNS record.
- Ttl int
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- Type string
- Type of the DNS record.
- Updated
At string - The most recent update time of the domain.
- Value string
- Value of the DNS record.
- Weight int
- The weight of the DNS record.
- Created
At string - The creation time of the domain.
- Enable bool
- Indicates whether the DNS record is enabled.
- Host string
- Domain prefix of the DNS record.
- Line string
- Line of the DNS record.
- Operators []string
- The account ID that called this API.
- Pqdn string
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- Record
Id string - The ID of the DNS record.
- Record
Set stringId - The ID of the record set to which the DNS record belongs.
- Remark string
- The remark of the DNS record.
- []string
- The tag information of the DNS record.
- Ttl int
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- Type string
- Type of the DNS record.
- Updated
At string - The most recent update time of the domain.
- Value string
- Value of the DNS record.
- Weight int
- The weight of the DNS record.
- created
At String - The creation time of the domain.
- enable Boolean
- Indicates whether the DNS record is enabled.
- host String
- Domain prefix of the DNS record.
- line String
- Line of the DNS record.
- operators List<String>
- The account ID that called this API.
- pqdn String
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- record
Id String - The ID of the DNS record.
- record
Set StringId - The ID of the record set to which the DNS record belongs.
- remark String
- The remark of the DNS record.
- List<String>
- The tag information of the DNS record.
- ttl Integer
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- type String
- Type of the DNS record.
- updated
At String - The most recent update time of the domain.
- value String
- Value of the DNS record.
- weight Integer
- The weight of the DNS record.
- created
At string - The creation time of the domain.
- enable boolean
- Indicates whether the DNS record is enabled.
- host string
- Domain prefix of the DNS record.
- line string
- Line of the DNS record.
- operators string[]
- The account ID that called this API.
- pqdn string
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- record
Id string - The ID of the DNS record.
- record
Set stringId - The ID of the record set to which the DNS record belongs.
- remark string
- The remark of the DNS record.
- string[]
- The tag information of the DNS record.
- ttl number
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- type string
- Type of the DNS record.
- updated
At string - The most recent update time of the domain.
- value string
- Value of the DNS record.
- weight number
- The weight of the DNS record.
- created_
at str - The creation time of the domain.
- enable bool
- Indicates whether the DNS record is enabled.
- host str
- Domain prefix of the DNS record.
- line str
- Line of the DNS record.
- operators Sequence[str]
- The account ID that called this API.
- pqdn str
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- record_
id str - The ID of the DNS record.
- record_
set_ strid - The ID of the record set to which the DNS record belongs.
- remark str
- The remark of the DNS record.
- Sequence[str]
- The tag information of the DNS record.
- ttl int
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- type str
- Type of the DNS record.
- updated_
at str - The most recent update time of the domain.
- value str
- Value of the DNS record.
- weight int
- The weight of the DNS record.
- created
At String - The creation time of the domain.
- enable Boolean
- Indicates whether the DNS record is enabled.
- host String
- Domain prefix of the DNS record.
- line String
- Line of the DNS record.
- operators List<String>
- The account ID that called this API.
- pqdn String
- The hostname included in the DNS record, in PQDN (Partially Qualified Domain Name) format.
- record
Id String - The ID of the DNS record.
- record
Set StringId - The ID of the record set to which the DNS record belongs.
- remark String
- The remark of the DNS record.
- List<String>
- The tag information of the DNS record.
- ttl Number
- The Time to Live (TTL) of the DNS record. The unit is seconds.
- type String
- Type of the DNS record.
- updated
At String - The most recent update time of the domain.
- value String
- Value of the DNS record.
- weight Number
- The weight of the DNS record.
Package Details
- Repository
- volcengine volcengine/pulumi-volcengine
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
volcengineTerraform Provider.
Volcengine v0.0.38 published on Friday, Oct 31, 2025 by Volcengine
