Skip to content

feat(teo): [122159253]support l7 acc setting #3169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Mar 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions .changelog/3169.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
```release-note:new-resource
tencentcloud_teo_l7_acc_setting
```

```release-note:deprecation
resource/tencentcloud_teo_zone_setting
```
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ require (
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdcpg v1.0.533
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tdmq v1.0.955
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tem v1.0.578
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.1103
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/teo v1.0.1108
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tke v1.0.1038
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/trocket v1.0.947
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/tse v1.0.857
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,8 @@ github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1099/go.mod
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1103/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1107 h1:q6GZzn6dvOeY2gFthWudL08hBq2+mwsBdideLRr6jtI=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1107/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1108 h1:yuRONtPue3RtEpCmMlM1HN2PPaoK9X89IE4qHA/Z0FA=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1108/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1111 h1:f0RqQwdrXvT2behkBRo845d/x+soUU70Pm80DliiJk8=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/common v1.0.1111/go.mod h1:r5r4xbfxSaeR04b166HGsBa/R4U3SueirEUpXGuw+Q0=
github.com/tencentcloud/tencentcloud-sdk-go/tencentcloud/controlcenter v1.0.993 h1:WlPgXldQCxt7qi5Xrc6j6zTrsXWzN5BcOGs7Irq7fwQ=
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -1769,6 +1769,7 @@ func Provider() *schema.Provider {
"tencentcloud_teo_origin_group": teo.ResourceTencentCloudTeoOriginGroup(),
"tencentcloud_teo_l4_proxy": teo.ResourceTencentCloudTeoL4Proxy(),
"tencentcloud_teo_l4_proxy_rule": teo.ResourceTencentCloudTeoL4ProxyRule(),
"tencentcloud_teo_l7_acc_setting": teo.ResourceTencentCloudTeoL7AccSetting(),
"tencentcloud_teo_rule_engine": teo.ResourceTencentCloudTeoRuleEngine(),
"tencentcloud_teo_ownership_verify": teo.ResourceTencentCloudTeoOwnershipVerify(),
"tencentcloud_teo_certificate_config": teo.ResourceTencentCloudTeoCertificateConfig(),
Expand Down
1 change: 1 addition & 0 deletions tencentcloud/provider.md
Original file line number Diff line number Diff line change
Expand Up @@ -1483,6 +1483,7 @@ tencentcloud_teo_function
tencentcloud_teo_function_rule
tencentcloud_teo_function_rule_priority
tencentcloud_teo_function_runtime_environment
tencentcloud_teo_l7_acc_setting

TencentCloud ServiceMesh(TCM)
Data Source
Expand Down
1,257 changes: 1,257 additions & 0 deletions tencentcloud/services/teo/resource_tc_teo_l7_acc_setting.go

Large diffs are not rendered by default.

112 changes: 112 additions & 0 deletions tencentcloud/services/teo/resource_tc_teo_l7_acc_setting.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
Provides a resource to create a teo l7_acc_setting

Example Usage

```hcl
resource "tencentcloud_teo_l7_acc_setting" "teo_l7_acc_setting" {
zone_id = "zone-36bjhygh1bxe"
zone_config {
accelerate_mainland {
switch = "on"
}
cache {
custom_time {
cache_time = 2592000
switch = "off"
}
follow_origin {
default_cache = "off"
default_cache_strategy = "on"
default_cache_time = 0
switch = "on"
}
no_cache {
switch = "off"
}
}
cache_key {
full_url_cache = "on"
ignore_case = "off"
query_string {
action = "includeCustom"
switch = "off"
}
}
cache_prefresh {
cache_time_percent = 90
switch = "off"
}
client_ip_country {
switch = "off"
}
client_ip_header {
switch = "off"
}
compression {
algorithms = ["brotli", "gzip"]
switch = "on"
}
force_redirect_https {
redirect_status_code = 302
switch = "off"
}
grpc {
switch = "off"
}
hsts {
include_sub_domains = "off"
preload = "off"
switch = "off"
timeout = 0
}
http2 {
switch = "off"
}
ipv6 {
switch = "off"
}
max_age {
cache_time = 600
follow_origin = "on"
}
ocsp_stapling {
switch = "off"
}
offline_cache {
switch = "on"
}
post_max_size {
max_size = 838860800
switch = "on"
}
quic {
switch = "off"
}
smart_routing {
switch = "off"
}
standard_debug {
allow_client_ip_list = []
expires = "1969-12-31T16:00:00Z"
switch = "off"
}
tls_config {
cipher_suite = "loose-v2023"
version = ["TLSv1", "TLSv1.1", "TLSv1.2", "TLSv1.3"]
}
upstream_http2 {
switch = "off"
}
web_socket {
switch = "off"
timeout = 30
}
}
}
```
Import

teo l7_acc_setting can be imported using the zone_id, e.g.
````
terraform import tencentcloud_teo_l7_acc_setting.teo_l7_acc_setting zone-297z8rf93cfw
````
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
package teo
Loading
Loading