tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getPrivateDnsRecords
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 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 privateDnsRecord = tencentcloud.getPrivateDnsRecords({
filters: [{
name: "Value",
values: ["8.8.8.8"],
}],
zoneId: "zone-xxxxxx",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
private_dns_record = tencentcloud.get_private_dns_records(filters=[{
"name": "Value",
"values": ["8.8.8.8"],
}],
zone_id="zone-xxxxxx")
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{
Filters: []tencentcloud.GetPrivateDnsRecordsFilter{
{
Name: "Value",
Values: []string{
"8.8.8.8",
},
},
},
ZoneId: "zone-xxxxxx",
}, 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 privateDnsRecord = Tencentcloud.GetPrivateDnsRecords.Invoke(new()
{
Filters = new[]
{
new Tencentcloud.Inputs.GetPrivateDnsRecordsFilterInputArgs
{
Name = "Value",
Values = new[]
{
"8.8.8.8",
},
},
},
ZoneId = "zone-xxxxxx",
});
});
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 privateDnsRecord = TencentcloudFunctions.getPrivateDnsRecords(GetPrivateDnsRecordsArgs.builder()
.filters(GetPrivateDnsRecordsFilterArgs.builder()
.name("Value")
.values("8.8.8.8")
.build())
.zoneId("zone-xxxxxx")
.build());
}
}
variables:
privateDnsRecord:
fn::invoke:
function: tencentcloud:getPrivateDnsRecords
arguments:
filters:
- name: Value
values:
- 8.8.8.8
zoneId: zone-xxxxxx
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 dictionary
The 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
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack