Skip to content

Commit 4d892ca

Browse files
authored
fix(vpn): [137186499] tencentcloud_vpn_ssl_server update doc (#3271)
* add * add * add * add * add
1 parent dbf238a commit 4d892ca

File tree

4 files changed

+24
-21
lines changed

4 files changed

+24
-21
lines changed

.changelog/3271.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
resource/tencentcloud_vpn_ssl_server: update doc
3+
```

tencentcloud/services/vpn/resource_tc_vpn_ssl_server.go

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -60,24 +60,24 @@ func ResourceTencentCloudVpnSslServer() *schema.Resource {
6060
"ssl_vpn_port": {
6161
Type: schema.TypeInt,
6262
Optional: true,
63-
Description: "The port of ssl vpn. Default value: 1194.",
63+
Description: "The port of ssl vpn. Currently only supports UDP. Default value: 1194.",
6464
},
6565
"integrity_algorithm": {
6666
Type: schema.TypeString,
6767
Optional: true,
68-
Description: "The integrity algorithm. Valid values: SHA1, MD5 and NONE. Default value: NONE.",
68+
Description: "The integrity algorithm. Valid values: SHA1. Default value: SHA1.",
6969
},
7070
"encrypt_algorithm": {
7171
Type: schema.TypeString,
7272
Optional: true,
73-
Description: "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC, NONE." +
74-
"Default value: NONE.",
73+
Description: "The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC." +
74+
"Default value: AES-128-CBC.",
7575
},
7676
"compress": {
7777
Type: schema.TypeBool,
7878
Optional: true,
7979
Default: svccvm.FALSE,
80-
Description: "need compressed. Default value: False.",
80+
Description: "Need compressed. Currently is not supports compress. Default value: False.",
8181
},
8282
},
8383
}
@@ -114,7 +114,7 @@ func resourceTencentCloudVpnSslServerCreate(d *schema.ResourceData, meta interfa
114114
if v, ok := d.GetOk("ssl_vpn_protocol"); ok {
115115
request.SslVpnProtocol = helper.String(v.(string))
116116
}
117-
if v, ok := d.GetOk("ssl_vpn_port"); ok {
117+
if v, ok := d.GetOkExists("ssl_vpn_port"); ok {
118118
request.SslVpnPort = helper.IntInt64(v.(int))
119119
}
120120
if v, ok := d.GetOk("integrity_algorithm"); ok {
@@ -123,7 +123,7 @@ func resourceTencentCloudVpnSslServerCreate(d *schema.ResourceData, meta interfa
123123
if v, ok := d.GetOk("encrypt_algorithm"); ok {
124124
request.EncryptAlgorithm = helper.String(v.(string))
125125
}
126-
if v, ok := d.GetOk("compress"); ok {
126+
if v, ok := d.GetOkExists("compress"); ok {
127127
request.Compress = helper.Bool(v.(bool))
128128
}
129129

@@ -244,7 +244,7 @@ func resourceTencentCloudVpnSslServerUpdate(d *schema.ResourceData, meta interfa
244244
if v, ok := d.GetOk("ssl_vpn_protocol"); ok {
245245
request.SslVpnProtocol = helper.String(v.(string))
246246
}
247-
if v, ok := d.GetOk("ssl_vpn_port"); ok {
247+
if v, ok := d.GetOkExists("ssl_vpn_port"); ok {
248248
request.SslVpnPort = helper.IntInt64(v.(int))
249249
}
250250
if v, ok := d.GetOk("integrity_algorithm"); ok {

tencentcloud/services/vpn/resource_tc_vpn_ssl_server.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ Provide a resource to create a VPN SSL Server.
33
Example Usage
44

55
```hcl
6-
resource "tencentcloud_vpn_ssl_server" "server" {
7-
local_address = [
6+
resource "tencentcloud_vpn_ssl_server" "example" {
7+
local_address = [
88
"10.0.0.0/17",
99
]
1010
remote_address = "11.0.0.0/16"
1111
ssl_vpn_server_name = "helloworld"
1212
vpn_gateway_id = "vpngw-335lwf7d"
13-
ssl_vpn_protocol = "UDP"
14-
ssl_vpn_port = 1194
13+
ssl_vpn_protocol = "UDP"
14+
ssl_vpn_port = 1194
1515
integrity_algorithm = "MD5"
16-
encrypt_algorithm = "AES-128-CBC"
17-
compress = true
16+
encrypt_algorithm = "AES-128-CBC"
17+
compress = true
1818
}
1919
```
2020

@@ -23,5 +23,5 @@ Import
2323
VPN SSL Server can be imported, e.g.
2424

2525
```
26-
$ terraform import tencentcloud_vpn_ssl_server.server vpn-server-id
26+
$ terraform import tencentcloud_vpn_ssl_server.example vpns-cik6bjct
2727
```

website/docs/r/vpn_ssl_server.html.markdown

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ Provide a resource to create a VPN SSL Server.
1414
## Example Usage
1515

1616
```hcl
17-
resource "tencentcloud_vpn_ssl_server" "server" {
17+
resource "tencentcloud_vpn_ssl_server" "example" {
1818
local_address = [
1919
"10.0.0.0/17",
2020
]
@@ -37,10 +37,10 @@ The following arguments are supported:
3737
* `remote_address` - (Required, String) Remote CIDR for client.
3838
* `ssl_vpn_server_name` - (Required, String) The name of ssl vpn server to be created.
3939
* `vpn_gateway_id` - (Required, String, ForceNew) VPN gateway ID.
40-
* `compress` - (Optional, Bool) need compressed. Default value: False.
41-
* `encrypt_algorithm` - (Optional, String) The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC, NONE.Default value: NONE.
42-
* `integrity_algorithm` - (Optional, String) The integrity algorithm. Valid values: SHA1, MD5 and NONE. Default value: NONE.
43-
* `ssl_vpn_port` - (Optional, Int) The port of ssl vpn. Default value: 1194.
40+
* `compress` - (Optional, Bool) Need compressed. Currently is not supports compress. Default value: False.
41+
* `encrypt_algorithm` - (Optional, String) The encrypt algorithm. Valid values: AES-128-CBC, AES-192-CBC, AES-256-CBC.Default value: AES-128-CBC.
42+
* `integrity_algorithm` - (Optional, String) The integrity algorithm. Valid values: SHA1. Default value: SHA1.
43+
* `ssl_vpn_port` - (Optional, Int) The port of ssl vpn. Currently only supports UDP. Default value: 1194.
4444
* `ssl_vpn_protocol` - (Optional, String) The protocol of ssl vpn. Default value: UDP.
4545

4646
## Attributes Reference
@@ -56,6 +56,6 @@ In addition to all arguments above, the following attributes are exported:
5656
VPN SSL Server can be imported, e.g.
5757

5858
```
59-
$ terraform import tencentcloud_vpn_ssl_server.server vpn-server-id
59+
$ terraform import tencentcloud_vpn_ssl_server.example vpns-cik6bjct
6060
```
6161

0 commit comments

Comments
 (0)