Skip to content

Commit bd3fe4e

Browse files
committed
Merge branch 'master' into feat/teo-function
2 parents efd7385 + d7a9992 commit bd3fe4e

6 files changed

+447
-0
lines changed

tencentcloud/provider.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1702,6 +1702,7 @@ func Provider() *schema.Provider {
17021702
"tencentcloud_teo_application_proxy": teo.ResourceTencentCloudTeoApplicationProxy(),
17031703
"tencentcloud_teo_application_proxy_rule": teo.ResourceTencentCloudTeoApplicationProxyRule(),
17041704
"tencentcloud_teo_realtime_log_delivery": teo.ResourceTencentCloudTeoRealtimeLogDelivery(),
1705+
"tencentcloud_teo_security_ip_group": teo.ResourceTencentCloudTeoSecurityIpGroup(),
17051706
"tencentcloud_teo_function": teo.ResourceTencentCloudTeoFunction(),
17061707
"tencentcloud_teo_function_rule": teo.ResourceTencentCloudTeoFunctionRule(),
17071708
"tencentcloud_teo_function_rule_priority": teo.ResourceTencentCloudTeoFunctionRulePriority(),

tencentcloud/services/teo/resource_tc_teo_security_ip_group.go

Lines changed: 301 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
Provides a resource to create a teo teo_security_ip_group
2+
3+
Example Usage
4+
5+
```hcl
6+
resource "tencentcloud_teo_security_ip_group" "teo_security_ip_group" {
7+
zone_id = "zone-2qtuhspy7cr6"
8+
ip_group {
9+
content = [
10+
"10.1.1.1",
11+
"10.1.1.2",
12+
"10.1.1.3",
13+
]
14+
name = "bbbbb"
15+
}
16+
}
17+
```
18+
19+
Import
20+
21+
teo teo_security_ip_group can be imported using the id, e.g.
22+
23+
```
24+
terraform import tencentcloud_teo_security_ip_group.teo_security_ip_group zone_id#group_id
25+
```
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
package teo
2+
3+
import (
4+
"context"
5+
6+
v20220901 "github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo/v20220901"
7+
"github.com/tencentcloudstack/terraform-provider-tencentcloud/tencentcloud/internal/helper"
8+
)
9+
10+
func resourceTencentCloudTeoSecurityIpGroupCreatePostFillRequest0(ctx context.Context, req *v20220901.CreateSecurityIPGroupRequest) error {
11+
req.IPGroup.GroupId = helper.IntInt64(0)
12+
return nil
13+
}
14+
15+
func resourceTencentCloudTeoSecurityIpGroupUpdatePostFillRequest0(ctx context.Context, req *v20220901.ModifySecurityIPGroupRequest) error {
16+
req.Mode = helper.String("update")
17+
return nil
18+
}

0 commit comments

Comments
 (0)