Skip to content

Commit 3fce506

Browse files
committed
add
1 parent e3db67b commit 3fce506

14 files changed

+911
-0
lines changed

tencentcloud/provider.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1062,6 +1062,8 @@ func Provider() *schema.Provider {
10621062
"tencentcloud_wedata_data_source_without_info": wedata.DataSourceTencentCloudWedataDataSourceWithoutInfo(),
10631063
"tencentcloud_private_dns_records": privatedns.DataSourceTencentCloudPrivateDnsRecords(),
10641064
"tencentcloud_private_dns_private_zone_list": privatedns.DataSourceTencentCloudPrivateDnsPrivateZoneList(),
1065+
"tencentcloud_private_dns_forward_rules": privatedns.DataSourceTencentCloudPrivateDnsForwardRules(),
1066+
"tencentcloud_private_dns_end_points": privatedns.DataSourceTencentCloudPrivateDnsEndPoints(),
10651067
"tencentcloud_waf_ciphers": waf.DataSourceTencentCloudWafCiphers(),
10661068
"tencentcloud_waf_tls_versions": waf.DataSourceTencentCloudWafTlsVersions(),
10671069
"tencentcloud_waf_domains": waf.DataSourceTencentCloudWafDomains(),

tencentcloud/provider.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1356,6 +1356,8 @@ PrivateDNS
13561356
Data Source
13571357
tencentcloud_private_dns_records
13581358
tencentcloud_private_dns_private_zone_list
1359+
tencentcloud_private_dns_forward_rules
1360+
tencentcloud_private_dns_end_points
13591361

13601362
Cloud Log Service(CLS)
13611363
Resource

tencentcloud/services/privatedns/data_source_tc_private_dns_end_points.go

Lines changed: 212 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
Use this data source to query detailed information of private dns dns end points
2+
3+
Example Usage
4+
5+
Query all private dns end points
6+
7+
```hcl
8+
data "tencentcloud_private_dns_end_points" "example" {}
9+
```
10+
11+
Query all private dns end points by filters
12+
13+
```hcl
14+
data "tencentcloud_private_dns_end_points" "example" {
15+
filters {
16+
name = "EndPointName"
17+
values = ["tf-example"]
18+
}
19+
20+
filters {
21+
name = "EndPointId"
22+
values = ["eid-72dc11b8f3"]
23+
}
24+
25+
filters {
26+
name = "EndPointServiceId"
27+
values = ["vpcsvc-61wcwmar"]
28+
}
29+
30+
filters {
31+
name = "EndPointVip"
32+
values = [
33+
"172.10.10.1"
34+
]
35+
}
36+
}
37+
```
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
package privatedns
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
package privatedns_test
2+
3+
import (
4+
"testing"
5+
6+
"github.com/hashicorp/terraform-plugin-sdk/v2/helper/resource"
7+
8+
tcacctest "github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/acctest"
9+
)
10+
11+
func TestAccTencentCloudPrivateDnsEndPointsDataSource_basic(t *testing.T) {
12+
t.Parallel()
13+
resource.Test(t, resource.TestCase{
14+
PreCheck: func() {
15+
tcacctest.AccPreCheck(t)
16+
},
17+
Providers: tcacctest.AccProviders,
18+
Steps: []resource.TestStep{{
19+
Config: testAccPrivateDnsEndPointsDataSource,
20+
Check: resource.ComposeTestCheckFunc(
21+
tcacctest.AccCheckTencentCloudDataSourceID("data.tencentcloud_private_dns_end_points.private_dns_end_points"),
22+
),
23+
}},
24+
})
25+
}
26+
27+
const testAccPrivateDnsEndPointsDataSource = `
28+
data "tencentcloud_private_dns_end_points" "example" {}
29+
`

0 commit comments

Comments
 (0)