tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getPrivateDnsRecords
Start a Neo task
Explain and create a tencentcloud.getPrivateDnsRecords resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of Private Dns records
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getPrivateDnsRecords({
zoneId: "zone-kumt5wos",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_private_dns_records(zone_id="zone-kumt5wos")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetPrivateDnsRecords(ctx, &tencentcloud.GetPrivateDnsRecordsArgs{
ZoneId: "zone-kumt5wos",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetPrivateDnsRecords.Invoke(new()
{
ZoneId = "zone-kumt5wos",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetPrivateDnsRecordsArgs;
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 example = TencentcloudFunctions.getPrivateDnsRecords(GetPrivateDnsRecordsArgs.builder()
.zoneId("zone-kumt5wos")
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getPrivateDnsRecords
arguments:
zoneId: zone-kumt5wos
Or
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = tencentcloud.getPrivateDnsRecords({
zoneId: "zone-kumt5wos",
filters: [{
name: "RecordType",
values: ["A"],
}],
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.get_private_dns_records(zone_id="zone-kumt5wos",
filters=[{
"name": "RecordType",
"values": ["A"],
}])
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.GetPrivateDnsRecords(ctx, &tencentcloud.GetPrivateDnsRecordsArgs{
ZoneId: "zone-kumt5wos",
Filters: []tencentcloud.GetPrivateDnsRecordsFilter{
{
Name: "RecordType",
Values: []string{
"A",
},
},
},
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var example = Tencentcloud.GetPrivateDnsRecords.Invoke(new()
{
ZoneId = "zone-kumt5wos",
Filters = new[]
{
new Tencentcloud.Inputs.GetPrivateDnsRecordsFilterInputArgs
{
Name = "RecordType",
Values = new[]
{
"A",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetPrivateDnsRecordsArgs;
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 example = TencentcloudFunctions.getPrivateDnsRecords(GetPrivateDnsRecordsArgs.builder()
.zoneId("zone-kumt5wos")
.filters(GetPrivateDnsRecordsFilterArgs.builder()
.name("RecordType")
.values("A")
.build())
.build());
}
}
variables:
example:
fn::invoke:
function: tencentcloud:getPrivateDnsRecords
arguments:
zoneId: zone-kumt5wos
filters:
- name: RecordType
values:
- A
Using getPrivateDnsRecords
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 getPrivateDnsRecords(args: GetPrivateDnsRecordsArgs, opts?: InvokeOptions): Promise<GetPrivateDnsRecordsResult>
function getPrivateDnsRecordsOutput(args: GetPrivateDnsRecordsOutputArgs, opts?: InvokeOptions): Output<GetPrivateDnsRecordsResult>def get_private_dns_records(filters: Optional[Sequence[GetPrivateDnsRecordsFilter]] = None,
id: Optional[str] = None,
result_output_file: Optional[str] = None,
zone_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPrivateDnsRecordsResult
def get_private_dns_records_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetPrivateDnsRecordsFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
zone_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPrivateDnsRecordsResult]func GetPrivateDnsRecords(ctx *Context, args *GetPrivateDnsRecordsArgs, opts ...InvokeOption) (*GetPrivateDnsRecordsResult, error)
func GetPrivateDnsRecordsOutput(ctx *Context, args *GetPrivateDnsRecordsOutputArgs, opts ...InvokeOption) GetPrivateDnsRecordsResultOutput> Note: This function is named GetPrivateDnsRecords in the Go SDK.
public static class GetPrivateDnsRecords
{
public static Task<GetPrivateDnsRecordsResult> InvokeAsync(GetPrivateDnsRecordsArgs args, InvokeOptions? opts = null)
public static Output<GetPrivateDnsRecordsResult> Invoke(GetPrivateDnsRecordsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPrivateDnsRecordsResult> getPrivateDnsRecords(GetPrivateDnsRecordsArgs args, InvokeOptions options)
public static Output<GetPrivateDnsRecordsResult> getPrivateDnsRecords(GetPrivateDnsRecordsArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getPrivateDnsRecords:getPrivateDnsRecords
arguments:
# arguments dictionaryThe following arguments are supported:
- Zone
Id string - Private zone id: zone-xxxxxx.
- Filters
List<Get
Private Dns Records Filter> - Filter parameters (Value and RecordType filtering are supported).
- Id string
- Result
Output stringFile - Used to save results.
- Zone
Id string - Private zone id: zone-xxxxxx.
- Filters
[]Get
Private Dns Records Filter - Filter parameters (Value and RecordType filtering are supported).
- Id string
- Result
Output stringFile - Used to save results.
- zone
Id String - Private zone id: zone-xxxxxx.
- filters
List<Get
Private Dns Records Filter> - Filter parameters (Value and RecordType filtering are supported).
- id String
- result
Output StringFile - Used to save results.
- zone
Id string - Private zone id: zone-xxxxxx.
- filters
Get
Private Dns Records Filter[] - Filter parameters (Value and RecordType filtering are supported).
- id string
- result
Output stringFile - Used to save results.
- zone_
id str - Private zone id: zone-xxxxxx.
- filters
Sequence[Get
Private Dns Records Filter] - Filter parameters (Value and RecordType filtering are supported).
- id str
- result_
output_ strfile - Used to save results.
- zone
Id String - Private zone id: zone-xxxxxx.
- filters List<Property Map>
- Filter parameters (Value and RecordType filtering are supported).
- id String
- result
Output StringFile - Used to save results.
getPrivateDnsRecords Result
The following output properties are available:
- Id string
- Record
Sets List<GetPrivate Dns Records Record Set> - Parse record list.
- Zone
Id string - Private zone id: zone-xxxxxx.
- Filters
List<Get
Private Dns Records Filter> - Result
Output stringFile
- Id string
- Record
Sets []GetPrivate Dns Records Record Set - Parse record list.
- Zone
Id string - Private zone id: zone-xxxxxx.
- Filters
[]Get
Private Dns Records Filter - Result
Output stringFile
- id String
- record
Sets List<GetPrivate Dns Records Record Set> - Parse record list.
- zone
Id String - Private zone id: zone-xxxxxx.
- filters
List<Get
Private Dns Records Filter> - result
Output StringFile
- id string
- record
Sets GetPrivate Dns Records Record Set[] - Parse record list.
- zone
Id string - Private zone id: zone-xxxxxx.
- filters
Get
Private Dns Records Filter[] - result
Output stringFile
- id str
- record_
sets Sequence[GetPrivate Dns Records Record Set] - Parse record list.
- zone_
id str - Private zone id: zone-xxxxxx.
- filters
Sequence[Get
Private Dns Records Filter] - result_
output_ strfile
- id String
- record
Sets List<Property Map> - Parse record list.
- zone
Id String - Private zone id: zone-xxxxxx.
- filters List<Property Map>
- result
Output StringFile
Supporting Types
GetPrivateDnsRecordsFilter
GetPrivateDnsRecordsRecordSet
- Created
On string - Record creation time.
- Enabled double
- Enabled. 0 meaning paused, 1 meaning senabled.
- Extra string
- Additional information.
- Mx double
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- Record
Id string - Record sid.
- Record
Type string - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- Record
Value string - Record value.
- Status string
- Record status.
- Sub
Domain string - Subdomain name.
- Ttl double
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- Updated
On string - Record update time.
- Weight double
- Record weight, value is 1-100.
- Zone
Id string - Private zone id: zone-xxxxxx.
- Created
On string - Record creation time.
- Enabled float64
- Enabled. 0 meaning paused, 1 meaning senabled.
- Extra string
- Additional information.
- Mx float64
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- Record
Id string - Record sid.
- Record
Type string - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- Record
Value string - Record value.
- Status string
- Record status.
- Sub
Domain string - Subdomain name.
- Ttl float64
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- Updated
On string - Record update time.
- Weight float64
- Record weight, value is 1-100.
- Zone
Id string - Private zone id: zone-xxxxxx.
- created
On String - Record creation time.
- enabled Double
- Enabled. 0 meaning paused, 1 meaning senabled.
- extra String
- Additional information.
- mx Double
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- record
Id String - Record sid.
- record
Type String - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- record
Value String - Record value.
- status String
- Record status.
- sub
Domain String - Subdomain name.
- ttl Double
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- updated
On String - Record update time.
- weight Double
- Record weight, value is 1-100.
- zone
Id String - Private zone id: zone-xxxxxx.
- created
On string - Record creation time.
- enabled number
- Enabled. 0 meaning paused, 1 meaning senabled.
- extra string
- Additional information.
- mx number
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- record
Id string - Record sid.
- record
Type string - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- record
Value string - Record value.
- status string
- Record status.
- sub
Domain string - Subdomain name.
- ttl number
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- updated
On string - Record update time.
- weight number
- Record weight, value is 1-100.
- zone
Id string - Private zone id: zone-xxxxxx.
- created_
on str - Record creation time.
- enabled float
- Enabled. 0 meaning paused, 1 meaning senabled.
- extra str
- Additional information.
- mx float
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- record_
id str - Record sid.
- record_
type str - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- record_
value str - Record value.
- status str
- Record status.
- sub_
domain str - Subdomain name.
- ttl float
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- updated_
on str - Record update time.
- weight float
- Record weight, value is 1-100.
- zone_
id str - Private zone id: zone-xxxxxx.
- created
On String - Record creation time.
- enabled Number
- Enabled. 0 meaning paused, 1 meaning senabled.
- extra String
- Additional information.
- mx Number
- MX priority: required if the record type is MX. Value range: 5,10,15,20,30,40,50.
- record
Id String - Record sid.
- record
Type String - Record type, optional record type are: A, AAAA, CNAME, MX, TXT, PTR.
- record
Value String - Record value.
- status String
- Record status.
- sub
Domain String - Subdomain name.
- ttl Number
- Record cache time, the smaller the value, the faster it takes effect. The value is 1-86400s. The default is 600.
- updated
On String - Record update time.
- weight Number
- Record weight, value is 1-100.
- zone
Id String - Private zone id: zone-xxxxxx.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
