From 68ff44f3dfd899f8a9d03e7bf94a36a3728ee732 Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 20:59:00 +0800 Subject: [PATCH 1/2] add --- .../services/ssl/data_source_tc_ssl_certificates.go | 12 ++++++++++++ website/docs/d/ssl_certificates.html.markdown | 2 ++ 2 files changed, 14 insertions(+) diff --git a/tencentcloud/services/ssl/data_source_tc_ssl_certificates.go b/tencentcloud/services/ssl/data_source_tc_ssl_certificates.go index 7a7938b4e5..0197ede49d 100644 --- a/tencentcloud/services/ssl/data_source_tc_ssl_certificates.go +++ b/tencentcloud/services/ssl/data_source_tc_ssl_certificates.go @@ -106,6 +106,16 @@ func DataSourceTencentCloudSslCertificates() *schema.Resource { Computed: true, Description: "Creation time of the SSL certificate.", }, + "owner_uin": { + Type: schema.TypeString, + Computed: true, + Description: "Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained.", + }, + "validity_period": { + Type: schema.TypeString, + Computed: true, + Description: "Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained.", + }, "subject_names": { Type: schema.TypeList, Elem: &schema.Schema{Type: schema.TypeString}, @@ -214,6 +224,8 @@ func dataSourceTencentCloudSslCertificatesRead(d *schema.ResourceData, m interfa "begin_time": *certificate.CertBeginTime, "end_time": *certificate.CertEndTime, "create_time": *certificate.InsertTime, + "owner_uin": *certificate.OwnerUin, + "validity_period": *certificate.ValidityPeriod, } if len(certificate.SubjectAltName) > 0 { diff --git a/website/docs/d/ssl_certificates.html.markdown b/website/docs/d/ssl_certificates.html.markdown index 95c982f793..7321b3a155 100644 --- a/website/docs/d/ssl_certificates.html.markdown +++ b/website/docs/d/ssl_certificates.html.markdown @@ -46,10 +46,12 @@ In addition to all arguments above, the following attributes are exported: * `key` - Key of the SSL certificate. * `name` - Name of the SSL certificate. * `order_id` - Order ID returned. + * `owner_uin` - Account UIN.Note: This field may return NULL, indicating that the valid value cannot be obtained. * `product_zh_name` - Certificate authority. * `project_id` - Project ID of the SSL certificate. * `status` - Status of the SSL certificate. * `subject_names` - ALL domains included in the SSL certificate. Including the primary domain name. * `type` - Type of the SSL certificate. + * `validity_period` - Validity period: unit (month).Note: This field may return NULL, indicating that the valid value cannot be obtained. From 6e8cdaf658118a4a4ea23639a4d239d8ac3529bb Mon Sep 17 00:00:00 2001 From: SevenEarth <391613297@qq.com> Date: Fri, 13 Sep 2024 21:00:39 +0800 Subject: [PATCH 2/2] add --- .changelog/2832.txt | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 .changelog/2832.txt diff --git a/.changelog/2832.txt b/.changelog/2832.txt new file mode 100644 index 0000000000..356324d772 --- /dev/null +++ b/.changelog/2832.txt @@ -0,0 +1,3 @@ +```release-note:enhancement +datasource/tencentcloud_ssl_certificates: add `owner_uin` and `validity_period` params +```