Skip to content

Commit 8a2979b

Browse files
authored
fix(ssl): [123456789] tencentcloud_ssl_certificates update doc (#3121)
* add * add
1 parent fb2e45b commit 8a2979b

File tree

3 files changed

+42
-7
lines changed

3 files changed

+42
-7
lines changed

.changelog/3121.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
datasource/tencentcloud_ssl_certificates: update doc
3+
```
Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
1-
Use this data source to query SSL certificate.
1+
Use this data source to query SSL certificates.
22

33
Example Usage
44

5+
Query all SSL certificates
6+
7+
```hcl
8+
data "tencentcloud_ssl_certificates" "example" {}
9+
```
10+
11+
Query SSL certificates by filter
12+
513
```hcl
6-
data "tencentcloud_ssl_certificates" "foo" {
7-
name = "certificate"
14+
data "tencentcloud_ssl_certificates" "example" {
15+
name = "tf-example"
16+
}
17+
18+
data "tencentcloud_ssl_certificates" "example" {
19+
type = "CA"
20+
}
21+
22+
data "tencentcloud_ssl_certificates" "example" {
23+
id = "LCYouprI"
824
}
925
```

website/docs/d/ssl_certificates.html.markdown

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,34 @@ layout: "tencentcloud"
44
page_title: "TencentCloud: tencentcloud_ssl_certificates"
55
sidebar_current: "docs-tencentcloud-datasource-ssl_certificates"
66
description: |-
7-
Use this data source to query SSL certificate.
7+
Use this data source to query SSL certificates.
88
---
99

1010
# tencentcloud_ssl_certificates
1111

12-
Use this data source to query SSL certificate.
12+
Use this data source to query SSL certificates.
1313

1414
## Example Usage
1515

16+
### Query all SSL certificates
17+
18+
```hcl
19+
data "tencentcloud_ssl_certificates" "example" {}
20+
```
21+
22+
### Query SSL certificates by filter
23+
1624
```hcl
17-
data "tencentcloud_ssl_certificates" "foo" {
18-
name = "certificate"
25+
data "tencentcloud_ssl_certificates" "example" {
26+
name = "tf-example"
27+
}
28+
29+
data "tencentcloud_ssl_certificates" "example" {
30+
type = "CA"
31+
}
32+
33+
data "tencentcloud_ssl_certificates" "example" {
34+
id = "LCYouprI"
1935
}
2036
```
2137

0 commit comments

Comments
 (0)