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

volcengine.dns.Records

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 records

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as volcengine from "@pulumi/volcengine";
    
    const foo = volcengine.dns.Records({
        zid: 58857,
    });
    
    import pulumi
    import pulumi_volcengine as volcengine
    
    foo = volcengine.dns.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.Records(ctx, &dns.RecordsArgs{
    			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.Records.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.RecordsArgs;
    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.Records(RecordsArgs.builder()
                .zid(58857)
                .build());
    
        }
    }
    
    variables:
      foo:
        fn::invoke:
          Function: volcengine:dns:Records
          Arguments:
            zid: 58857
    

    Using Records

    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 records(args: RecordsArgs, opts?: InvokeOptions): Promise<RecordsResult>
    function recordsOutput(args: RecordsOutputArgs, opts?: InvokeOptions): Output<RecordsResult>
    def 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) -> RecordsResult
    def 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[RecordsResult]
    func Records(ctx *Context, args *RecordsArgs, opts ...InvokeOption) (*RecordsResult, error)
    func RecordsOutput(ctx *Context, args *RecordsOutputArgs, opts ...InvokeOption) RecordsResultOutput
    public static class Records 
    {
        public static Task<RecordsResult> InvokeAsync(RecordsArgs args, InvokeOptions? opts = null)
        public static Output<RecordsResult> Invoke(RecordsInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<RecordsResult> records(RecordsArgs args, InvokeOptions options)
    public static Output<RecordsResult> records(RecordsArgs args, InvokeOptions options)
    
    fn::invoke:
      function: volcengine:dns:Records
      arguments:
        # arguments dictionary

    The 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.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    SearchMode string
    The matching mode for the Host parameter.
    SearchOrder 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.
    NameRegex string
    A Name Regex of Resource.
    OutputFile string
    File name where to save data source results.
    SearchMode string
    The matching mode for the Host parameter.
    SearchOrder 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.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    searchMode String
    The matching mode for the Host parameter.
    searchOrder 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.
    nameRegex string
    A Name Regex of Resource.
    outputFile string
    File name where to save data source results.
    searchMode string
    The matching mode for the Host parameter.
    searchOrder 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.
    nameRegex String
    A Name Regex of Resource.
    outputFile String
    File name where to save data source results.
    searchMode String
    The matching mode for the Host parameter.
    searchOrder 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.

    Records Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Records List<RecordsRecord>
    The collection of query.
    TotalCount 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.
    NameRegex string
    OutputFile string
    SearchMode string
    SearchOrder 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 []RecordsRecord
    The collection of query.
    TotalCount 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.
    NameRegex string
    OutputFile string
    SearchMode string
    SearchOrder 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<RecordsRecord>
    The collection of query.
    totalCount 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.
    nameRegex String
    outputFile String
    searchMode String
    searchOrder 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 RecordsRecord[]
    The collection of query.
    totalCount 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.
    nameRegex string
    outputFile string
    searchMode string
    searchOrder 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[RecordsRecord]
    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.
    totalCount 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.
    nameRegex String
    outputFile String
    searchMode String
    searchOrder String
    type String
    The type of the DNS record.
    value String
    The record value contained in the DNS record.

    Supporting Types

    RecordsRecord

    CreatedAt 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.
    RecordId string
    The ID of the DNS record.
    RecordSetId string
    The ID of the record set to which the DNS record belongs.
    Remark string
    The remark of the DNS record.
    Tags 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.
    UpdatedAt string
    The most recent update time of the domain.
    Value string
    Value of the DNS record.
    Weight int
    The weight of the DNS record.
    CreatedAt 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.
    RecordId string
    The ID of the DNS record.
    RecordSetId string
    The ID of the record set to which the DNS record belongs.
    Remark string
    The remark of the DNS record.
    Tags []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.
    UpdatedAt string
    The most recent update time of the domain.
    Value string
    Value of the DNS record.
    Weight int
    The weight of the DNS record.
    createdAt 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.
    recordId String
    The ID of the DNS record.
    recordSetId String
    The ID of the record set to which the DNS record belongs.
    remark String
    The remark of the DNS record.
    tags 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.
    updatedAt String
    The most recent update time of the domain.
    value String
    Value of the DNS record.
    weight Integer
    The weight of the DNS record.
    createdAt 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.
    recordId string
    The ID of the DNS record.
    recordSetId string
    The ID of the record set to which the DNS record belongs.
    remark string
    The remark of the DNS record.
    tags 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.
    updatedAt 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_id str
    The ID of the record set to which the DNS record belongs.
    remark str
    The remark of the DNS record.
    tags 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.
    createdAt 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.
    recordId String
    The ID of the DNS record.
    recordSetId String
    The ID of the record set to which the DNS record belongs.
    remark String
    The remark of the DNS record.
    tags 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.
    updatedAt 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 volcengine Terraform Provider.
    volcengine logo
    Volcengine v0.0.29 published on Tuesday, Apr 29, 2025 by Volcengine