Skip to content

Commit 031fab2

Browse files
authored
fix(ssl): [119537816] tencentcloud_ssl_certificates add owner_uin and validity_period params (#2832)
* add * add
1 parent 9709596 commit 031fab2

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed

.changelog/2832.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: add `owner_uin` and `validity_period` params
3+
```

tencentcloud/services/ssl/data_source_tc_ssl_certificates.go

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,16 @@ func DataSourceTencentCloudSslCertificates() *schema.Resource {
106106
Computed: true,
107107
Description: "Creation time of the SSL certificate.",
108108
},
109+
"owner_uin": {
110+
Type: schema.TypeString,
111+
Computed: true,
112+
Description: "Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.",
113+
},
114+
"validity_period": {
115+
Type: schema.TypeString,
116+
Computed: true,
117+
Description: "Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.",
118+
},
109119
"subject_names": {
110120
Type: schema.TypeList,
111121
Elem: &schema.Schema{Type: schema.TypeString},
@@ -214,6 +224,8 @@ func dataSourceTencentCloudSslCertificatesRead(d *schema.ResourceData, m interfa
214224
"begin_time": *certificate.CertBeginTime,
215225
"end_time": *certificate.CertEndTime,
216226
"create_time": *certificate.InsertTime,
227+
"owner_uin": *certificate.OwnerUin,
228+
"validity_period": *certificate.ValidityPeriod,
217229
}
218230

219231
if len(certificate.SubjectAltName) > 0 {

website/docs/d/ssl_certificates.html.markdown

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,12 @@ In addition to all arguments above, the following attributes are exported:
4646
* `key` - Key of the SSL certificate.
4747
* `name` - Name of the SSL certificate.
4848
* `order_id` - Order ID returned.
49+
* `owner_uin` - Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.
4950
* `product_zh_name` - Certificate authority.
5051
* `project_id` - Project ID of the SSL certificate.
5152
* `status` - Status of the SSL certificate.
5253
* `subject_names` - ALL domains included in the SSL certificate. Including the primary domain name.
5354
* `type` - Type of the SSL certificate.
55+
* `validity_period` - Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.
5456

5557

0 commit comments

Comments
 (0)