Skip to content

Commit 2173158

Browse files
author
WeiMengXS
committed
feat: changelog
1 parent d14bcf7 commit 2173158

6 files changed

+143
-42
lines changed

tencentcloud/resource_tc_ssl_commit_certificate_information.go

Lines changed: 34 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,43 @@ Provides a resource to create a ssl commit_certificate_information
44
Example Usage
55
66
```hcl
7-
resource "tencentcloud_ssl_commit_certificate_information" "commit_certificate_information" {
8-
certificate_id = "abcb1234"
9-
verify_type = "type"
7+
resource "tencentcloud_ssl_pay_certificate" "example" {
8+
product_id = 33
9+
domain_num = 1
10+
alias = "example-ssl-update"
11+
project_id = 0
12+
wait_commit_flag = true
13+
information {
14+
csr_type = "online"
15+
certificate_domain = "www.domain.com"
16+
organization_name = "test-update"
17+
organization_division = "test"
18+
organization_address = "test"
19+
organization_country = "CN"
20+
organization_city = "test"
21+
organization_region = "test"
22+
postal_code = "0755"
23+
phone_area_code = "0755"
24+
phone_number = "12345678901"
25+
verify_type = "DNS"
26+
admin_first_name = "test"
27+
admin_last_name = "test"
28+
admin_phone_num = "12345678901"
29+
admin_email = "test@tencent.com"
30+
admin_position = "dev"
31+
contact_first_name = "test"
32+
contact_last_name = "test"
33+
contact_email = "test@tencent.com"
34+
contact_number = "12345678901"
35+
contact_position = "dev"
36+
}
37+
}
38+
resource "tencentcloud_ssl_commit_certificate_information" "example" {
39+
product_id = 33
40+
certificate_id = tencentcloud_ssl_pay_certificate.example.certificate_id
1041
}
1142
```
1243
13-
Import
14-
1544
ssl commit_certificate_information can be imported using the id, e.g.
1645
1746
*/

tencentcloud/resource_tc_ssl_commit_certificate_information_test.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ func TestAccTencentCloudSslCommitCertificateInformationResource_basic(t *testing
2323

2424
const testAccSslCommitCertificateInformation = `
2525
26-
resource "tencentcloud_ssl_pay_certificate" "ssl" {
26+
resource "tencentcloud_ssl_pay_certificate" "example" {
2727
product_id = 33
2828
domain_num = 1
29-
alias = "test-ssl-update"
29+
alias = "example-ssl-update"
3030
project_id = 0
3131
wait_commit_flag = true
3232
information {
@@ -54,9 +54,9 @@ resource "tencentcloud_ssl_pay_certificate" "ssl" {
5454
contact_position = "dev"
5555
}
5656
}
57-
resource "tencentcloud_ssl_commit_certificate_information" "commit_certificate_information" {
57+
resource "tencentcloud_ssl_commit_certificate_information" "example" {
5858
product_id = 33
59-
certificate_id = tencentcloud_ssl_pay_certificate.ssl.certificate_id
59+
certificate_id = tencentcloud_ssl_pay_certificate.example.certificate_id
6060
}
6161
6262
`

tencentcloud/resource_tc_ssl_pay_certificate.go

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ and belonging items can be updated. The Destroy operation will only cancel the c
77
certificate and refund the fee. If you need a refund, you need to check the current certificate status in the console
88
as `Review Cancel`, and then you can click `Request a refund` to refund the fee.
99
10-
# Example Usage
10+
Example Usage
1111
1212
```hcl
1313
@@ -44,7 +44,7 @@ as `Review Cancel`, and then you can click `Request a refund` to refund the fee.
4444
4545
```
4646
47-
# Import
47+
Import
4848
4949
payment SSL instance can be imported, e.g.
5050
@@ -279,7 +279,6 @@ func resourceTencentCloudSSLInstance() *schema.Resource {
279279
},
280280
"domain_list": {
281281
Type: schema.TypeSet,
282-
Computed: true,
283282
Optional: true,
284283
Elem: &schema.Schema{Type: schema.TypeString},
285284
Description: "Array of uploaded domain names, multi-domain certificates can be uploaded.",
@@ -552,7 +551,6 @@ func resourceTencentCloudSSLInstanceRead(d *schema.ResourceData, meta interface{
552551
dvAuth["dv_auth_verify_type"] = *item.DvAuthVerifyType
553552
dvAuths = append(dvAuths, dvAuth)
554553
}
555-
556554
_ = d.Set("dv_auths", dvAuths)
557555
}
558556

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
subcategory: "SSL Certificates"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_ssl_commit_certificate_information"
5+
sidebar_current: "docs-tencentcloud-resource-ssl_commit_certificate_information"
6+
description: |-
7+
Provides a resource to create a ssl commit_certificate_information
8+
---
9+
10+
# tencentcloud_ssl_commit_certificate_information
11+
12+
Provides a resource to create a ssl commit_certificate_information
13+
14+
## Example Usage
15+
16+
```hcl
17+
resource "tencentcloud_ssl_pay_certificate" "example" {
18+
product_id = 33
19+
domain_num = 1
20+
alias = "example-ssl-update"
21+
project_id = 0
22+
wait_commit_flag = true
23+
information {
24+
csr_type = "online"
25+
certificate_domain = "www.domain.com"
26+
organization_name = "test-update"
27+
organization_division = "test"
28+
organization_address = "test"
29+
organization_country = "CN"
30+
organization_city = "test"
31+
organization_region = "test"
32+
postal_code = "0755"
33+
phone_area_code = "0755"
34+
phone_number = "12345678901"
35+
verify_type = "DNS"
36+
admin_first_name = "test"
37+
admin_last_name = "test"
38+
admin_phone_num = "12345678901"
39+
admin_email = "test@tencent.com"
40+
admin_position = "dev"
41+
contact_first_name = "test"
42+
contact_last_name = "test"
43+
contact_email = "test@tencent.com"
44+
contact_number = "12345678901"
45+
contact_position = "dev"
46+
}
47+
}
48+
resource "tencentcloud_ssl_commit_certificate_information" "example" {
49+
product_id = 33
50+
certificate_id = tencentcloud_ssl_pay_certificate.example.certificate_id
51+
}
52+
```
53+
54+
## Argument Reference
55+
56+
The following arguments are supported:
57+
58+
* `certificate_id` - (Required, String, ForceNew) Certificate Id.
59+
* `product_id` - (Required, Int, ForceNew) Certificate commodity ID. Valid value ranges: (3~42). `3` means SecureSite enhanced Enterprise Edition (EV Pro), `4` means SecureSite enhanced (EV), `5` means SecureSite Enterprise Professional Edition (OV Pro), `6` means SecureSite Enterprise (OV), `7` means SecureSite Enterprise Type (OV) wildcard, `8` means Geotrust enhanced (EV), `9` means Geotrust enterprise (OV), `10` means Geotrust enterprise (OV) wildcard, `11` means TrustAsia domain type multi-domain SSL certificate, `12` means TrustAsia domain type ( DV) wildcard, `13` means TrustAsia enterprise wildcard (OV) SSL certificate (D3), `14` means TrustAsia enterprise (OV) SSL certificate (D3), `15` means TrustAsia enterprise multi-domain (OV) SSL certificate (D3), `16` means TrustAsia Enhanced (EV) SSL Certificate (D3), `17` means TrustAsia Enhanced Multiple Domain (EV) SSL Certificate (D3), `18` means GlobalSign Enterprise (OV) SSL Certificate, `19` means GlobalSign Enterprise Wildcard (OV) SSL Certificate, `20` means GlobalSign Enhanced (EV) SSL Certificate, `21` means TrustAsia Enterprise Wildcard Multiple Domain (OV) SSL Certificate (D3), `22` means GlobalSign Enterprise Multiple Domain (OV) SSL Certificate, `23` means GlobalSign Enterprise Multiple Wildcard Domain name (OV) SSL certificate, `24` means GlobalSign enhanced multi-domain (EV) SSL certificate, `25` means Wotrus domain type certificate, `26` means Wotrus domain type multi-domain certificate, `27` means Wotrus domain type wildcard certificate, `28` means Wotrus enterprise type certificate, `29` means Wotrus enterprise multi-domain certificate, `30` means Wotrus enterprise wildcard certificate, `31` means Wotrus enhanced certificate, `32` means Wotrus enhanced multi-domain certificate, `33` means WoTrus National Secret Domain name Certificate, `34` means WoTrus National Secret Domain name Certificate (multiple domain names), `35` WoTrus National Secret Domain name Certificate (wildcard), `37` means WoTrus State Secret Enterprise Certificate, `38` means WoTrus State Secret Enterprise Certificate (multiple domain names), `39` means WoTrus State Secret Enterprise Certificate (wildcard), `40` means WoTrus National secret enhanced certificate, `41` means WoTrus National Secret enhanced Certificate (multiple domain names), `42` means TrustAsia- Domain name Certificate (wildcard multiple domain names), `43` means DNSPod Enterprise (OV) SSL Certificate, `44` means DNSPod- Enterprise (OV) wildcard SSL certificate, `45` means DNSPod Enterprise (OV) Multi-domain name SSL Certificate, `46` means DNSPod enhanced (EV) SSL certificate, `47` means DNSPod enhanced (EV) multi-domain name SSL certificate, `48` means DNSPod Domain name Type (DV) SSL Certificate, `49` means DNSPod Domain name Type (DV) wildcard SSL certificate, `50` means DNSPod domain name type (DV) multi-domain name SSL certificate, `51` means DNSPod (State Secret) Enterprise (OV) SSL certificate, `52` DNSPod (National Secret) Enterprise (OV) wildcard SSL certificate, `53` means DNSPod (National Secret) Enterprise (OV) multi-domain SSL certificate, `54` means DNSPod (National Secret) Domain Name (DV) SSL certificate, `55` means DNSPod (National Secret) Domain Name Type (DV) wildcard SSL certificate, `56` means DNSPod (National Secret) Domain Name Type (DV) multi-domain SSL certificate.
60+
* `confirm_letter` - (Optional, String, ForceNew) The base64-encoded certificate confirmation file should be in jpg, jpeg, png, pdf, and the size should be between 1kb and 1.4M. Note: it only works when product_id is set to 8, 9 or 10.
61+
* `verify_type` - (Optional, String, ForceNew) Domain name verification method.
62+
63+
## Attributes Reference
64+
65+
In addition to all arguments above, the following attributes are exported:
66+
67+
* `id` - ID of the resource.
68+
69+
70+

website/docs/r/ssl_pay_certificate.html.markdown

Lines changed: 30 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -57,51 +57,52 @@ resource "tencentcloud_ssl_pay_certificate" "example" {
5757
The following arguments are supported:
5858

5959
* `domain_num` - (Required, Int, ForceNew) Number of domain names included in the certificate.
60-
* `information` - (Required, List, ForceNew) Certificate information.
60+
* `information` - (Required, List) Certificate information.
6161
* `product_id` - (Required, Int, ForceNew) Certificate commodity ID. Valid value ranges: (3~42). `3` means SecureSite enhanced Enterprise Edition (EV Pro), `4` means SecureSite enhanced (EV), `5` means SecureSite Enterprise Professional Edition (OV Pro), `6` means SecureSite Enterprise (OV), `7` means SecureSite Enterprise Type (OV) wildcard, `8` means Geotrust enhanced (EV), `9` means Geotrust enterprise (OV), `10` means Geotrust enterprise (OV) wildcard, `11` means TrustAsia domain type multi-domain SSL certificate, `12` means TrustAsia domain type ( DV) wildcard, `13` means TrustAsia enterprise wildcard (OV) SSL certificate (D3), `14` means TrustAsia enterprise (OV) SSL certificate (D3), `15` means TrustAsia enterprise multi-domain (OV) SSL certificate (D3), `16` means TrustAsia Enhanced (EV) SSL Certificate (D3), `17` means TrustAsia Enhanced Multiple Domain (EV) SSL Certificate (D3), `18` means GlobalSign Enterprise (OV) SSL Certificate, `19` means GlobalSign Enterprise Wildcard (OV) SSL Certificate, `20` means GlobalSign Enhanced (EV) SSL Certificate, `21` means TrustAsia Enterprise Wildcard Multiple Domain (OV) SSL Certificate (D3), `22` means GlobalSign Enterprise Multiple Domain (OV) SSL Certificate, `23` means GlobalSign Enterprise Multiple Wildcard Domain name (OV) SSL certificate, `24` means GlobalSign enhanced multi-domain (EV) SSL certificate, `25` means Wotrus domain type certificate, `26` means Wotrus domain type multi-domain certificate, `27` means Wotrus domain type wildcard certificate, `28` means Wotrus enterprise type certificate, `29` means Wotrus enterprise multi-domain certificate, `30` means Wotrus enterprise wildcard certificate, `31` means Wotrus enhanced certificate, `32` means Wotrus enhanced multi-domain certificate, `33` means WoTrus National Secret Domain name Certificate, `34` means WoTrus National Secret Domain name Certificate (multiple domain names), `35` WoTrus National Secret Domain name Certificate (wildcard), `37` means WoTrus State Secret Enterprise Certificate, `38` means WoTrus State Secret Enterprise Certificate (multiple domain names), `39` means WoTrus State Secret Enterprise Certificate (wildcard), `40` means WoTrus National secret enhanced certificate, `41` means WoTrus National Secret enhanced Certificate (multiple domain names), `42` means TrustAsia- Domain name Certificate (wildcard multiple domain names), `43` means DNSPod Enterprise (OV) SSL Certificate, `44` means DNSPod- Enterprise (OV) wildcard SSL certificate, `45` means DNSPod Enterprise (OV) Multi-domain name SSL Certificate, `46` means DNSPod enhanced (EV) SSL certificate, `47` means DNSPod enhanced (EV) multi-domain name SSL certificate, `48` means DNSPod Domain name Type (DV) SSL Certificate, `49` means DNSPod Domain name Type (DV) wildcard SSL certificate, `50` means DNSPod domain name type (DV) multi-domain name SSL certificate, `51` means DNSPod (State Secret) Enterprise (OV) SSL certificate, `52` DNSPod (National Secret) Enterprise (OV) wildcard SSL certificate, `53` means DNSPod (National Secret) Enterprise (OV) multi-domain SSL certificate, `54` means DNSPod (National Secret) Domain Name (DV) SSL certificate, `55` means DNSPod (National Secret) Domain Name Type (DV) wildcard SSL certificate, `56` means DNSPod (National Secret) Domain Name Type (DV) multi-domain SSL certificate.
6262
* `alias` - (Optional, String) Remark name.
6363
* `confirm_letter` - (Optional, String) The base64-encoded certificate confirmation file should be in jpg, jpeg, png, pdf, and the size should be between 1kb and 1.4M. Note: it only works when product_id is set to 8, 9 or 10.
64+
* `dv_auths` - (Optional, List) DV certification information.
6465
* `project_id` - (Optional, Int) The ID of project.
6566
* `time_span` - (Optional, Int) Certificate period, currently only supports 1 year certificate purchase.
67+
* `wait_commit_flag` - (Optional, Bool) If `wait_commit_flag` is set to true, info will not be submitted temporarily, false opposite.
68+
69+
The `dv_auths` object supports the following:
70+
6671

6772
The `information` object supports the following:
6873

69-
* `admin_email` - (Required, String, ForceNew) The administrator's email address.
70-
* `admin_first_name` - (Required, String, ForceNew) The first name of the administrator.
71-
* `admin_last_name` - (Required, String, ForceNew) The last name of the administrator.
72-
* `admin_phone_num` - (Required, String, ForceNew) Manager mobile phone number.
73-
* `admin_position` - (Required, String, ForceNew) Manager position.
74-
* `certificate_domain` - (Required, String, ForceNew) Domain name for binding certificate.
75-
* `contact_email` - (Required, String, ForceNew) Contact email address.
76-
* `contact_first_name` - (Required, String, ForceNew) Contact first name.
77-
* `contact_last_name` - (Required, String, ForceNew) Contact last name.
78-
* `contact_number` - (Required, String, ForceNew) Contact phone number.
79-
* `contact_position` - (Required, String, ForceNew) Contact position.
80-
* `organization_address` - (Required, String, ForceNew) Company address.
81-
* `organization_city` - (Required, String, ForceNew) Company city.
82-
* `organization_country` - (Required, String, ForceNew) Country name, such as China: CN.
83-
* `organization_division` - (Required, String, ForceNew) Department name.
84-
* `organization_name` - (Required, String, ForceNew) Company name.
85-
* `organization_region` - (Required, String, ForceNew) The province where the company is located.
86-
* `phone_area_code` - (Required, String, ForceNew) Company landline area code.
87-
* `phone_number` - (Required, String, ForceNew) Company landline number.
88-
* `postal_code` - (Required, String, ForceNew) Company postal code.
89-
* `verify_type` - (Required, String, ForceNew) Certificate verification method. Valid values: `DNS_AUTO`, `DNS`, `FILE`. `DNS_AUTO` means automatic DNS verification, this verification type is only supported for domain names resolved by Tencent Cloud and the resolution status is normal, `DNS` means manual DNS verification, `FILE` means file verification.
90-
* `csr_content` - (Optional, String, ForceNew) CSR content uploaded.
74+
* `admin_email` - (Required, String) The administrator's email address.
75+
* `admin_first_name` - (Required, String) The first name of the administrator.
76+
* `admin_last_name` - (Required, String) The last name of the administrator.
77+
* `admin_phone_num` - (Required, String) Manager mobile phone number.
78+
* `admin_position` - (Required, String) Manager position.
79+
* `certificate_domain` - (Required, String) Domain name for binding certificate.
80+
* `contact_email` - (Required, String) Contact email address.
81+
* `contact_first_name` - (Required, String) Contact first name.
82+
* `contact_last_name` - (Required, String) Contact last name.
83+
* `contact_number` - (Required, String) Contact phone number.
84+
* `contact_position` - (Required, String) Contact position.
85+
* `organization_address` - (Required, String) Company address.
86+
* `organization_city` - (Required, String) Company city.
87+
* `organization_country` - (Required, String) Country name, such as China: CN.
88+
* `organization_division` - (Required, String) Department name.
89+
* `organization_name` - (Required, String) Company name.
90+
* `organization_region` - (Required, String) The province where the company is located.
91+
* `phone_area_code` - (Required, String) Company landline area code.
92+
* `phone_number` - (Required, String) Company landline number.
93+
* `postal_code` - (Required, String) Company postal code.
94+
* `verify_type` - (Required, String) Certificate verification method. Valid values: `DNS_AUTO`, `DNS`, `FILE`. `DNS_AUTO` means automatic DNS verification, this verification type is only supported for domain names resolved by Tencent Cloud and the resolution status is normal, `DNS` means manual DNS verification, `FILE` means file verification.
95+
* `csr_content` - (Optional, String) CSR content uploaded.
9196
* `csr_type` - (Optional, String, ForceNew) CSR generation method. Valid values: `online`, `parse`. `online` means online generation, `parse` means manual upload.
92-
* `domain_list` - (Optional, Set, ForceNew) Array of uploaded domain names, multi-domain certificates can be uploaded.
93-
* `key_password` - (Optional, String, ForceNew) Private key password.
97+
* `domain_list` - (Optional, Set) Array of uploaded domain names, multi-domain certificates can be uploaded.
98+
* `key_password` - (Optional, String) Private key password.
9499

95100
## Attributes Reference
96101

97102
In addition to all arguments above, the following attributes are exported:
98103

99104
* `id` - ID of the resource.
100105
* `certificate_id` - Returned certificate ID.
101-
* `dv_auths` - DV certification information.
102-
* `dv_auth_key` - DV authentication key.
103-
* `dv_auth_value` - DV authentication value.
104-
* `dv_auth_verify_type` - DV authentication type.
105106
* `order_id` - Order ID returned.
106107
* `status` - SSL certificate status.
107108

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2360,6 +2360,9 @@
23602360
<li>
23612361
<a href="/docs/providers/tencentcloud/r/ssl_certificate.html">tencentcloud_ssl_certificate</a>
23622362
</li>
2363+
<li>
2364+
<a href="/docs/providers/tencentcloud/r/ssl_commit_certificate_information.html">tencentcloud_ssl_commit_certificate_information</a>
2365+
</li>
23632366
<li>
23642367
<a href="/docs/providers/tencentcloud/r/ssl_free_certificate.html">tencentcloud_ssl_free_certificate</a>
23652368
</li>

0 commit comments

Comments
 (0)