Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 17102d3

Browse files
committedMar 11, 2025·
add
1 parent 8cbd1c4 commit 17102d3

File tree

4 files changed

+84
-0
lines changed

4 files changed

+84
-0
lines changed
 

‎.changelog/3198.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
```release-note:new-resource
2+
tencentcloud_sqlserver_wan_ip_config
3+
```
4+
5+
```release-note:enhancement
6+
resource/tencentcloud_sqlserver_general_cloud_instance: add new params
7+
```
8+
9+
```release-note:enhancement
10+
resource/tencentcloud_sqlserver_basic_instance: add new params
11+
```
12+
13+
```release-note:enhancement
14+
resource/tencentcloud_sqlserver_instance: add new params
15+
```

‎tencentcloud/provider.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1047,6 +1047,7 @@ tencentcloud_sqlserver_start_xevent
10471047
tencentcloud_sqlserver_instance_tde
10481048
tencentcloud_sqlserver_database_tde
10491049
tencentcloud_sqlserver_general_cloud_ro_instance
1050+
tencentcloud_sqlserver_wan_ip_config
10501051

10511052
SSL Certificates(ssl)
10521053
Data Source
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
---
2+
subcategory: "SQLServer"
3+
layout: "tencentcloud"
4+
page_title: "TencentCloud: tencentcloud_sqlserver_wan_ip_config"
5+
sidebar_current: "docs-tencentcloud-resource-sqlserver_wan_ip_config"
6+
description: |-
7+
Provides a resource to create a sqlserver wan ip config
8+
---
9+
10+
# tencentcloud_sqlserver_wan_ip_config
11+
12+
Provides a resource to create a sqlserver wan ip config
13+
14+
## Example Usage
15+
16+
### Open/Close wan ip for SQL instance
17+
18+
```hcl
19+
# open
20+
resource "tencentcloud_sqlserver_wan_ip_config" "example" {
21+
instance_id = "mssql-gy1lc54f"
22+
enable_wan_ip = true
23+
}
24+
25+
# close
26+
resource "tencentcloud_sqlserver_wan_ip_config" "example" {
27+
instance_id = "mssql-gy1lc54f"
28+
enable_wan_ip = false
29+
}
30+
```
31+
32+
### Open/Close wan ip for SQL read only group
33+
34+
```hcl
35+
# open
36+
resource "tencentcloud_sqlserver_wan_ip_config" "example" {
37+
instance_id = "mssql-gy1lc54f"
38+
ro_group_id = "mssqlrg-hyxotm31"
39+
enable_wan_ip = true
40+
}
41+
42+
# close
43+
resource "tencentcloud_sqlserver_wan_ip_config" "example" {
44+
instance_id = "mssql-gy1lc54f"
45+
ro_group_id = "mssqlrg-hyxotm31"
46+
enable_wan_ip = false
47+
}
48+
```
49+
50+
## Argument Reference
51+
52+
The following arguments are supported:
53+
54+
* `enable_wan_ip` - (Required, Bool) Whether to open wan ip, true: enable; false: disable.
55+
* `instance_id` - (Required, String, ForceNew) Instance ID.
56+
* `ro_group_id` - (Optional, String, ForceNew) Read only group ID.
57+
58+
## Attributes Reference
59+
60+
In addition to all arguments above, the following attributes are exported:
61+
62+
* `id` - ID of the resource.
63+
64+
65+

‎website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3569,6 +3569,9 @@
35693569
<li>
35703570
<a href="/docs/providers/tencentcloud/r/sqlserver_start_xevent.html">tencentcloud_sqlserver_start_xevent</a>
35713571
</li>
3572+
<li>
3573+
<a href="/docs/providers/tencentcloud/r/sqlserver_wan_ip_config.html">tencentcloud_sqlserver_wan_ip_config</a>
3574+
</li>
35723575
</ul>
35733576
</li>
35743577
</ul>

0 commit comments

Comments
 (0)
Please sign in to comment.