published on Friday, Mar 27, 2026 by tencentcloudstack
published on Friday, Mar 27, 2026 by tencentcloudstack
Provides a resource to create a teo config group version
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const teoConfigGroupVersion = new tencentcloud.TeoConfigGroupVersion("teo_config_group_version", {
content: `{
\\"FormatVersion\\": \\"1.0\\",
\\"ZoneConfig\\": {
\\"SmartRouting\\": {
\\"Switch\\": \\"off\\"
},
\\"Cache\\": {
\\"NoCache\\": {
\\"Switch\\": \\"off\\"
},
\\"FollowOrigin\\": {
\\"Switch\\": \\"on\\",
\\"DefaultCache\\": \\"on\\",
\\"DefaultCacheStrategy\\": \\"on\\",
\\"DefaultCacheTime\\": 0
},
\\"CustomTime\\": {
\\"Switch\\": \\"off\\",
\\"CacheTime\\": 2592000
}
},
\\"MaxAge\\": {
\\"FollowOrigin\\": \\"on\\",
\\"CacheTime\\": 600
},
\\"CacheKey\\": {
\\"FullURLCache\\": \\"on\\",
\\"QueryString\\": {
\\"Switch\\": \\"off\\",
\\"Action\\": \\"includeCustom\\"
},
\\"IgnoreCase\\": \\"off\\"
},
\\"CachePrefresh\\": {
\\"Switch\\": \\"off\\",
\\"CacheTimePercent\\": 90
},
\\"OfflineCache\\": {
\\"Switch\\": \\"on\\"
},
\\"Compression\\": {
\\"Switch\\": \\"off\\",
\\"Algorithms\\": [
\\"brotli\\",
\\"gzip\\"
]
},
\\"ForceRedirectHTTPS\\": {
\\"Switch\\": \\"off\\",
\\"RedirectStatusCode\\": 302
},
\\"HSTS\\": {
\\"Switch\\": \\"off\\",
\\"Timeout\\": 0,
\\"IncludeSubDomains\\": \\"off\\",
\\"Preload\\": \\"off\\"
},
\\"TLSConfig\\": {
\\"Version\\": [
\\"TLSv1\\",
\\"TLSv1.1\\",
\\"TLSv1.2\\",
\\"TLSv1.3\\"
],
\\"CipherSuite\\": \\"loose-v2023\\"
},
\\"OCSPStapling\\": {
\\"Switch\\": \\"off\\"
},
\\"HTTP2\\": {
\\"Switch\\": \\"off\\"
},
\\"QUIC\\": {
\\"Switch\\": \\"off\\"
},
\\"UpstreamHTTP2\\": {
\\"Switch\\": \\"off\\"
},
\\"IPv6\\": {
\\"Switch\\": \\"off\\"
},
\\"WebSocket\\": {
\\"Switch\\": \\"off\\",
\\"Timeout\\": 30
},
\\"PostMaxSize\\": {
\\"Switch\\": \\"on\\",
\\"MaxSize\\": 838860800
},
\\"ClientIPHeader\\": {
\\"Switch\\": \\"off\\"
},
\\"ClientIPCountry\\": {
\\"Switch\\": \\"off\\"
},
\\"gRPC\\": {
\\"Switch\\": \\"off\\"
},
\\"NetworkErrorLogging\\": {
\\"Switch\\": \\"off\\"
},
\\"AccelerateMainland\\": {
\\"Switch\\": \\"off\\"
},
\\"StandardDebug\\": {
\\"Switch\\": \\"off\\",
\\"AllowClientIPList\\": [
\\"1.14.231.0/24\\",
\\"1.194.255.0/24\\"
],
\\"Expires\\": \\"2025-09-01T12:45:37Z\\"
}
},
\\"Rules\\": [
{
\\"RuleName\\": \\"Web Acceleration - cdn.defaultsetting.cn\\",
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.host} in ['cdn.defaultsetting.cn']\\",
\\"Actions\\": [
{
\\"Name\\": \\"Cache\\",
\\"CacheParameters\\": {
\\"CustomTime\\": {
\\"Switch\\": \\"on\\",
\\"IgnoreCacheControl\\": \\"off\\",
\\"CacheTime\\": 2592000
}
}
},
{
\\"Name\\": \\"CacheKey\\",
\\"CacheKeyParameters\\": {
\\"FullURLCache\\": \\"on\\",
\\"QueryString\\": {
\\"Switch\\": \\"off\\"
},
\\"IgnoreCase\\": \\"off\\"
}
}
],
\\"SubRules\\": [
{
\\"Branches\\": [
{
\\"Condition\\": \\"lower(\${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\\",
\\"Actions\\": [
{
\\"Name\\": \\"Cache\\",
\\"CacheParameters\\": {
\\"NoCache\\": {
\\"Switch\\": \\"on\\"
}
}
}
]
}
]
},
{
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\\",
\\"Actions\\": [
{
\\"Name\\": \\"MaxAge\\",
\\"MaxAgeParameters\\": {
\\"FollowOrigin\\": \\"off\\",
\\"CacheTime\\": 3600
}
}
]
}
]
}
]
}
]
},
{
\\"RuleName\\": \\"Web Acceleration - pages.migraine.com.cn\\",
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.host} in ['pages.migraine.com.cn']\\",
\\"Actions\\": [
{
\\"Name\\": \\"Cache\\",
\\"CacheParameters\\": {
\\"CustomTime\\": {
\\"Switch\\": \\"on\\",
\\"IgnoreCacheControl\\": \\"off\\",
\\"CacheTime\\": 0
}
}
},
{
\\"Name\\": \\"CacheKey\\",
\\"CacheKeyParameters\\": {
\\"FullURLCache\\": \\"on\\",
\\"QueryString\\": {
\\"Switch\\": \\"off\\"
},
\\"IgnoreCase\\": \\"off\\"
}
}
],
\\"SubRules\\": [
{
\\"Branches\\": [
{
\\"Condition\\": \\"lower(\${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\\",
\\"Actions\\": [
{
\\"Name\\": \\"Cache\\",
\\"CacheParameters\\": {
\\"NoCache\\": {
\\"Switch\\": \\"on\\"
}
}
}
]
}
]
},
{
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\\",
\\"Actions\\": [
{
\\"Name\\": \\"MaxAge\\",
\\"MaxAgeParameters\\": {
\\"FollowOrigin\\": \\"off\\",
\\"CacheTime\\": 3600
}
}
]
}
]
}
]
}
]
},
{
\\"RuleName\\": \\"Skip Pages Authentication Verification\\",
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.host} in ['pages.migraine.com.cn']\\",
\\"Actions\\": [
{
\\"Name\\": \\"ModifyRequestHeader\\",
\\"ModifyRequestHeaderParameters\\": {
\\"HeaderActions\\": [
{
\\"Action\\": \\"add\\",
\\"Name\\": \\"X-SKIP-TOKEN\\",
\\"Value\\": \\"eop-1022\\"
}
]
}
}
]
}
]
},
{
\\"RuleName\\": \\"Regional Origin Pull\\",
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.host} in ['abc.migraine.com.cn']\\",
\\"SubRules\\": [
{
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.ip.country} in ['Asia']\\",
\\"Actions\\": [
{
\\"Name\\": \\"ModifyOrigin\\",
\\"ModifyOriginParameters\\": {
\\"OriginType\\": \\"IPDomain\\",
\\"Origin\\": \\"1.2.3.4\\",
\\"OriginProtocol\\": \\"follow\\",
\\"HTTPOriginPort\\": 80,
\\"HTTPSOriginPort\\": 443
}
}
]
}
]
},
{
\\"Branches\\": [
{
\\"Condition\\": \\"\${http.request.ip.country} in ['Africa']\\",
\\"Actions\\": [
{
\\"Name\\": \\"ModifyOrigin\\",
\\"ModifyOriginParameters\\": {
\\"OriginType\\": \\"IPDomain\\",
\\"Origin\\": \\"3.4.5.6\\",
\\"OriginProtocol\\": \\"follow\\",
\\"HTTPOriginPort\\": 80,
\\"HTTPSOriginPort\\": 443
}
}
]
}
]
}
]
}
]
}
]
}
`,
description: "test version",
groupId: "cg-3lchxitnb5pb",
zoneId: "zone-2xkazzl8yf6k",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_config_group_version = tencentcloud.TeoConfigGroupVersion("teo_config_group_version",
content="""{
\"FormatVersion\": \"1.0\",
\"ZoneConfig\": {
\"SmartRouting\": {
\"Switch\": \"off\"
},
\"Cache\": {
\"NoCache\": {
\"Switch\": \"off\"
},
\"FollowOrigin\": {
\"Switch\": \"on\",
\"DefaultCache\": \"on\",
\"DefaultCacheStrategy\": \"on\",
\"DefaultCacheTime\": 0
},
\"CustomTime\": {
\"Switch\": \"off\",
\"CacheTime\": 2592000
}
},
\"MaxAge\": {
\"FollowOrigin\": \"on\",
\"CacheTime\": 600
},
\"CacheKey\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\",
\"Action\": \"includeCustom\"
},
\"IgnoreCase\": \"off\"
},
\"CachePrefresh\": {
\"Switch\": \"off\",
\"CacheTimePercent\": 90
},
\"OfflineCache\": {
\"Switch\": \"on\"
},
\"Compression\": {
\"Switch\": \"off\",
\"Algorithms\": [
\"brotli\",
\"gzip\"
]
},
\"ForceRedirectHTTPS\": {
\"Switch\": \"off\",
\"RedirectStatusCode\": 302
},
\"HSTS\": {
\"Switch\": \"off\",
\"Timeout\": 0,
\"IncludeSubDomains\": \"off\",
\"Preload\": \"off\"
},
\"TLSConfig\": {
\"Version\": [
\"TLSv1\",
\"TLSv1.1\",
\"TLSv1.2\",
\"TLSv1.3\"
],
\"CipherSuite\": \"loose-v2023\"
},
\"OCSPStapling\": {
\"Switch\": \"off\"
},
\"HTTP2\": {
\"Switch\": \"off\"
},
\"QUIC\": {
\"Switch\": \"off\"
},
\"UpstreamHTTP2\": {
\"Switch\": \"off\"
},
\"IPv6\": {
\"Switch\": \"off\"
},
\"WebSocket\": {
\"Switch\": \"off\",
\"Timeout\": 30
},
\"PostMaxSize\": {
\"Switch\": \"on\",
\"MaxSize\": 838860800
},
\"ClientIPHeader\": {
\"Switch\": \"off\"
},
\"ClientIPCountry\": {
\"Switch\": \"off\"
},
\"gRPC\": {
\"Switch\": \"off\"
},
\"NetworkErrorLogging\": {
\"Switch\": \"off\"
},
\"AccelerateMainland\": {
\"Switch\": \"off\"
},
\"StandardDebug\": {
\"Switch\": \"off\",
\"AllowClientIPList\": [
\"1.14.231.0/24\",
\"1.194.255.0/24\"
],
\"Expires\": \"2025-09-01T12:45:37Z\"
}
},
\"Rules\": [
{
\"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 2592000
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 0
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Skip Pages Authentication Verification\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"ModifyRequestHeader\",
\"ModifyRequestHeaderParameters\": {
\"HeaderActions\": [
{
\"Action\": \"add\",
\"Name\": \"X-SKIP-TOKEN\",
\"Value\": \"eop-1022\"
}
]
}
}
]
}
]
},
{
\"RuleName\": \"Regional Origin Pull\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Asia']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"1.2.3.4\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Africa']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"3.4.5.6\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
}
]
}
]
}
]
}
""",
description="test version",
group_id="cg-3lchxitnb5pb",
zone_id="zone-2xkazzl8yf6k")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := tencentcloud.NewTeoConfigGroupVersion(ctx, "teo_config_group_version", &tencentcloud.TeoConfigGroupVersionArgs{
Content: pulumi.String(`{
\"FormatVersion\": \"1.0\",
\"ZoneConfig\": {
\"SmartRouting\": {
\"Switch\": \"off\"
},
\"Cache\": {
\"NoCache\": {
\"Switch\": \"off\"
},
\"FollowOrigin\": {
\"Switch\": \"on\",
\"DefaultCache\": \"on\",
\"DefaultCacheStrategy\": \"on\",
\"DefaultCacheTime\": 0
},
\"CustomTime\": {
\"Switch\": \"off\",
\"CacheTime\": 2592000
}
},
\"MaxAge\": {
\"FollowOrigin\": \"on\",
\"CacheTime\": 600
},
\"CacheKey\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\",
\"Action\": \"includeCustom\"
},
\"IgnoreCase\": \"off\"
},
\"CachePrefresh\": {
\"Switch\": \"off\",
\"CacheTimePercent\": 90
},
\"OfflineCache\": {
\"Switch\": \"on\"
},
\"Compression\": {
\"Switch\": \"off\",
\"Algorithms\": [
\"brotli\",
\"gzip\"
]
},
\"ForceRedirectHTTPS\": {
\"Switch\": \"off\",
\"RedirectStatusCode\": 302
},
\"HSTS\": {
\"Switch\": \"off\",
\"Timeout\": 0,
\"IncludeSubDomains\": \"off\",
\"Preload\": \"off\"
},
\"TLSConfig\": {
\"Version\": [
\"TLSv1\",
\"TLSv1.1\",
\"TLSv1.2\",
\"TLSv1.3\"
],
\"CipherSuite\": \"loose-v2023\"
},
\"OCSPStapling\": {
\"Switch\": \"off\"
},
\"HTTP2\": {
\"Switch\": \"off\"
},
\"QUIC\": {
\"Switch\": \"off\"
},
\"UpstreamHTTP2\": {
\"Switch\": \"off\"
},
\"IPv6\": {
\"Switch\": \"off\"
},
\"WebSocket\": {
\"Switch\": \"off\",
\"Timeout\": 30
},
\"PostMaxSize\": {
\"Switch\": \"on\",
\"MaxSize\": 838860800
},
\"ClientIPHeader\": {
\"Switch\": \"off\"
},
\"ClientIPCountry\": {
\"Switch\": \"off\"
},
\"gRPC\": {
\"Switch\": \"off\"
},
\"NetworkErrorLogging\": {
\"Switch\": \"off\"
},
\"AccelerateMainland\": {
\"Switch\": \"off\"
},
\"StandardDebug\": {
\"Switch\": \"off\",
\"AllowClientIPList\": [
\"1.14.231.0/24\",
\"1.194.255.0/24\"
],
\"Expires\": \"2025-09-01T12:45:37Z\"
}
},
\"Rules\": [
{
\"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 2592000
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 0
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Skip Pages Authentication Verification\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"ModifyRequestHeader\",
\"ModifyRequestHeaderParameters\": {
\"HeaderActions\": [
{
\"Action\": \"add\",
\"Name\": \"X-SKIP-TOKEN\",
\"Value\": \"eop-1022\"
}
]
}
}
]
}
]
},
{
\"RuleName\": \"Regional Origin Pull\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Asia']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"1.2.3.4\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Africa']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"3.4.5.6\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
}
]
}
]
}
]
}
`),
Description: pulumi.String("test version"),
GroupId: pulumi.String("cg-3lchxitnb5pb"),
ZoneId: pulumi.String("zone-2xkazzl8yf6k"),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var teoConfigGroupVersion = new Tencentcloud.TeoConfigGroupVersion("teo_config_group_version", new()
{
Content = @"{
\""FormatVersion\"": \""1.0\"",
\""ZoneConfig\"": {
\""SmartRouting\"": {
\""Switch\"": \""off\""
},
\""Cache\"": {
\""NoCache\"": {
\""Switch\"": \""off\""
},
\""FollowOrigin\"": {
\""Switch\"": \""on\"",
\""DefaultCache\"": \""on\"",
\""DefaultCacheStrategy\"": \""on\"",
\""DefaultCacheTime\"": 0
},
\""CustomTime\"": {
\""Switch\"": \""off\"",
\""CacheTime\"": 2592000
}
},
\""MaxAge\"": {
\""FollowOrigin\"": \""on\"",
\""CacheTime\"": 600
},
\""CacheKey\"": {
\""FullURLCache\"": \""on\"",
\""QueryString\"": {
\""Switch\"": \""off\"",
\""Action\"": \""includeCustom\""
},
\""IgnoreCase\"": \""off\""
},
\""CachePrefresh\"": {
\""Switch\"": \""off\"",
\""CacheTimePercent\"": 90
},
\""OfflineCache\"": {
\""Switch\"": \""on\""
},
\""Compression\"": {
\""Switch\"": \""off\"",
\""Algorithms\"": [
\""brotli\"",
\""gzip\""
]
},
\""ForceRedirectHTTPS\"": {
\""Switch\"": \""off\"",
\""RedirectStatusCode\"": 302
},
\""HSTS\"": {
\""Switch\"": \""off\"",
\""Timeout\"": 0,
\""IncludeSubDomains\"": \""off\"",
\""Preload\"": \""off\""
},
\""TLSConfig\"": {
\""Version\"": [
\""TLSv1\"",
\""TLSv1.1\"",
\""TLSv1.2\"",
\""TLSv1.3\""
],
\""CipherSuite\"": \""loose-v2023\""
},
\""OCSPStapling\"": {
\""Switch\"": \""off\""
},
\""HTTP2\"": {
\""Switch\"": \""off\""
},
\""QUIC\"": {
\""Switch\"": \""off\""
},
\""UpstreamHTTP2\"": {
\""Switch\"": \""off\""
},
\""IPv6\"": {
\""Switch\"": \""off\""
},
\""WebSocket\"": {
\""Switch\"": \""off\"",
\""Timeout\"": 30
},
\""PostMaxSize\"": {
\""Switch\"": \""on\"",
\""MaxSize\"": 838860800
},
\""ClientIPHeader\"": {
\""Switch\"": \""off\""
},
\""ClientIPCountry\"": {
\""Switch\"": \""off\""
},
\""gRPC\"": {
\""Switch\"": \""off\""
},
\""NetworkErrorLogging\"": {
\""Switch\"": \""off\""
},
\""AccelerateMainland\"": {
\""Switch\"": \""off\""
},
\""StandardDebug\"": {
\""Switch\"": \""off\"",
\""AllowClientIPList\"": [
\""1.14.231.0/24\"",
\""1.194.255.0/24\""
],
\""Expires\"": \""2025-09-01T12:45:37Z\""
}
},
\""Rules\"": [
{
\""RuleName\"": \""Web Acceleration - cdn.defaultsetting.cn\"",
\""Branches\"": [
{
\""Condition\"": \""${http.request.host} in ['cdn.defaultsetting.cn']\"",
\""Actions\"": [
{
\""Name\"": \""Cache\"",
\""CacheParameters\"": {
\""CustomTime\"": {
\""Switch\"": \""on\"",
\""IgnoreCacheControl\"": \""off\"",
\""CacheTime\"": 2592000
}
}
},
{
\""Name\"": \""CacheKey\"",
\""CacheKeyParameters\"": {
\""FullURLCache\"": \""on\"",
\""QueryString\"": {
\""Switch\"": \""off\""
},
\""IgnoreCase\"": \""off\""
}
}
],
\""SubRules\"": [
{
\""Branches\"": [
{
\""Condition\"": \""lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\"",
\""Actions\"": [
{
\""Name\"": \""Cache\"",
\""CacheParameters\"": {
\""NoCache\"": {
\""Switch\"": \""on\""
}
}
}
]
}
]
},
{
\""Branches\"": [
{
\""Condition\"": \""${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\"",
\""Actions\"": [
{
\""Name\"": \""MaxAge\"",
\""MaxAgeParameters\"": {
\""FollowOrigin\"": \""off\"",
\""CacheTime\"": 3600
}
}
]
}
]
}
]
}
]
},
{
\""RuleName\"": \""Web Acceleration - pages.migraine.com.cn\"",
\""Branches\"": [
{
\""Condition\"": \""${http.request.host} in ['pages.migraine.com.cn']\"",
\""Actions\"": [
{
\""Name\"": \""Cache\"",
\""CacheParameters\"": {
\""CustomTime\"": {
\""Switch\"": \""on\"",
\""IgnoreCacheControl\"": \""off\"",
\""CacheTime\"": 0
}
}
},
{
\""Name\"": \""CacheKey\"",
\""CacheKeyParameters\"": {
\""FullURLCache\"": \""on\"",
\""QueryString\"": {
\""Switch\"": \""off\""
},
\""IgnoreCase\"": \""off\""
}
}
],
\""SubRules\"": [
{
\""Branches\"": [
{
\""Condition\"": \""lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\"",
\""Actions\"": [
{
\""Name\"": \""Cache\"",
\""CacheParameters\"": {
\""NoCache\"": {
\""Switch\"": \""on\""
}
}
}
]
}
]
},
{
\""Branches\"": [
{
\""Condition\"": \""${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\"",
\""Actions\"": [
{
\""Name\"": \""MaxAge\"",
\""MaxAgeParameters\"": {
\""FollowOrigin\"": \""off\"",
\""CacheTime\"": 3600
}
}
]
}
]
}
]
}
]
},
{
\""RuleName\"": \""Skip Pages Authentication Verification\"",
\""Branches\"": [
{
\""Condition\"": \""${http.request.host} in ['pages.migraine.com.cn']\"",
\""Actions\"": [
{
\""Name\"": \""ModifyRequestHeader\"",
\""ModifyRequestHeaderParameters\"": {
\""HeaderActions\"": [
{
\""Action\"": \""add\"",
\""Name\"": \""X-SKIP-TOKEN\"",
\""Value\"": \""eop-1022\""
}
]
}
}
]
}
]
},
{
\""RuleName\"": \""Regional Origin Pull\"",
\""Branches\"": [
{
\""Condition\"": \""${http.request.host} in ['abc.migraine.com.cn']\"",
\""SubRules\"": [
{
\""Branches\"": [
{
\""Condition\"": \""${http.request.ip.country} in ['Asia']\"",
\""Actions\"": [
{
\""Name\"": \""ModifyOrigin\"",
\""ModifyOriginParameters\"": {
\""OriginType\"": \""IPDomain\"",
\""Origin\"": \""1.2.3.4\"",
\""OriginProtocol\"": \""follow\"",
\""HTTPOriginPort\"": 80,
\""HTTPSOriginPort\"": 443
}
}
]
}
]
},
{
\""Branches\"": [
{
\""Condition\"": \""${http.request.ip.country} in ['Africa']\"",
\""Actions\"": [
{
\""Name\"": \""ModifyOrigin\"",
\""ModifyOriginParameters\"": {
\""OriginType\"": \""IPDomain\"",
\""Origin\"": \""3.4.5.6\"",
\""OriginProtocol\"": \""follow\"",
\""HTTPOriginPort\"": 80,
\""HTTPSOriginPort\"": 443
}
}
]
}
]
}
]
}
]
}
]
}
",
Description = "test version",
GroupId = "cg-3lchxitnb5pb",
ZoneId = "zone-2xkazzl8yf6k",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoConfigGroupVersion;
import com.pulumi.tencentcloud.TeoConfigGroupVersionArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var teoConfigGroupVersion = new TeoConfigGroupVersion("teoConfigGroupVersion", TeoConfigGroupVersionArgs.builder()
.content("""
{
\"FormatVersion\": \"1.0\",
\"ZoneConfig\": {
\"SmartRouting\": {
\"Switch\": \"off\"
},
\"Cache\": {
\"NoCache\": {
\"Switch\": \"off\"
},
\"FollowOrigin\": {
\"Switch\": \"on\",
\"DefaultCache\": \"on\",
\"DefaultCacheStrategy\": \"on\",
\"DefaultCacheTime\": 0
},
\"CustomTime\": {
\"Switch\": \"off\",
\"CacheTime\": 2592000
}
},
\"MaxAge\": {
\"FollowOrigin\": \"on\",
\"CacheTime\": 600
},
\"CacheKey\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\",
\"Action\": \"includeCustom\"
},
\"IgnoreCase\": \"off\"
},
\"CachePrefresh\": {
\"Switch\": \"off\",
\"CacheTimePercent\": 90
},
\"OfflineCache\": {
\"Switch\": \"on\"
},
\"Compression\": {
\"Switch\": \"off\",
\"Algorithms\": [
\"brotli\",
\"gzip\"
]
},
\"ForceRedirectHTTPS\": {
\"Switch\": \"off\",
\"RedirectStatusCode\": 302
},
\"HSTS\": {
\"Switch\": \"off\",
\"Timeout\": 0,
\"IncludeSubDomains\": \"off\",
\"Preload\": \"off\"
},
\"TLSConfig\": {
\"Version\": [
\"TLSv1\",
\"TLSv1.1\",
\"TLSv1.2\",
\"TLSv1.3\"
],
\"CipherSuite\": \"loose-v2023\"
},
\"OCSPStapling\": {
\"Switch\": \"off\"
},
\"HTTP2\": {
\"Switch\": \"off\"
},
\"QUIC\": {
\"Switch\": \"off\"
},
\"UpstreamHTTP2\": {
\"Switch\": \"off\"
},
\"IPv6\": {
\"Switch\": \"off\"
},
\"WebSocket\": {
\"Switch\": \"off\",
\"Timeout\": 30
},
\"PostMaxSize\": {
\"Switch\": \"on\",
\"MaxSize\": 838860800
},
\"ClientIPHeader\": {
\"Switch\": \"off\"
},
\"ClientIPCountry\": {
\"Switch\": \"off\"
},
\"gRPC\": {
\"Switch\": \"off\"
},
\"NetworkErrorLogging\": {
\"Switch\": \"off\"
},
\"AccelerateMainland\": {
\"Switch\": \"off\"
},
\"StandardDebug\": {
\"Switch\": \"off\",
\"AllowClientIPList\": [
\"1.14.231.0/24\",
\"1.194.255.0/24\"
],
\"Expires\": \"2025-09-01T12:45:37Z\"
}
},
\"Rules\": [
{
\"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['cdn.defaultsetting.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 2592000
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 0
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower(${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Skip Pages Authentication Verification\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"ModifyRequestHeader\",
\"ModifyRequestHeaderParameters\": {
\"HeaderActions\": [
{
\"Action\": \"add\",
\"Name\": \"X-SKIP-TOKEN\",
\"Value\": \"eop-1022\"
}
]
}
}
]
}
]
},
{
\"RuleName\": \"Regional Origin Pull\",
\"Branches\": [
{
\"Condition\": \"${http.request.host} in ['abc.migraine.com.cn']\",
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Asia']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"1.2.3.4\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"${http.request.ip.country} in ['Africa']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"3.4.5.6\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
}
]
}
]
}
]
}
""")
.description("test version")
.groupId("cg-3lchxitnb5pb")
.zoneId("zone-2xkazzl8yf6k")
.build());
}
}
resources:
teoConfigGroupVersion:
type: tencentcloud:TeoConfigGroupVersion
name: teo_config_group_version
properties:
content: |
{
\"FormatVersion\": \"1.0\",
\"ZoneConfig\": {
\"SmartRouting\": {
\"Switch\": \"off\"
},
\"Cache\": {
\"NoCache\": {
\"Switch\": \"off\"
},
\"FollowOrigin\": {
\"Switch\": \"on\",
\"DefaultCache\": \"on\",
\"DefaultCacheStrategy\": \"on\",
\"DefaultCacheTime\": 0
},
\"CustomTime\": {
\"Switch\": \"off\",
\"CacheTime\": 2592000
}
},
\"MaxAge\": {
\"FollowOrigin\": \"on\",
\"CacheTime\": 600
},
\"CacheKey\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\",
\"Action\": \"includeCustom\"
},
\"IgnoreCase\": \"off\"
},
\"CachePrefresh\": {
\"Switch\": \"off\",
\"CacheTimePercent\": 90
},
\"OfflineCache\": {
\"Switch\": \"on\"
},
\"Compression\": {
\"Switch\": \"off\",
\"Algorithms\": [
\"brotli\",
\"gzip\"
]
},
\"ForceRedirectHTTPS\": {
\"Switch\": \"off\",
\"RedirectStatusCode\": 302
},
\"HSTS\": {
\"Switch\": \"off\",
\"Timeout\": 0,
\"IncludeSubDomains\": \"off\",
\"Preload\": \"off\"
},
\"TLSConfig\": {
\"Version\": [
\"TLSv1\",
\"TLSv1.1\",
\"TLSv1.2\",
\"TLSv1.3\"
],
\"CipherSuite\": \"loose-v2023\"
},
\"OCSPStapling\": {
\"Switch\": \"off\"
},
\"HTTP2\": {
\"Switch\": \"off\"
},
\"QUIC\": {
\"Switch\": \"off\"
},
\"UpstreamHTTP2\": {
\"Switch\": \"off\"
},
\"IPv6\": {
\"Switch\": \"off\"
},
\"WebSocket\": {
\"Switch\": \"off\",
\"Timeout\": 30
},
\"PostMaxSize\": {
\"Switch\": \"on\",
\"MaxSize\": 838860800
},
\"ClientIPHeader\": {
\"Switch\": \"off\"
},
\"ClientIPCountry\": {
\"Switch\": \"off\"
},
\"gRPC\": {
\"Switch\": \"off\"
},
\"NetworkErrorLogging\": {
\"Switch\": \"off\"
},
\"AccelerateMainland\": {
\"Switch\": \"off\"
},
\"StandardDebug\": {
\"Switch\": \"off\",
\"AllowClientIPList\": [
\"1.14.231.0/24\",
\"1.194.255.0/24\"
],
\"Expires\": \"2025-09-01T12:45:37Z\"
}
},
\"Rules\": [
{
\"RuleName\": \"Web Acceleration - cdn.defaultsetting.cn\",
\"Branches\": [
{
\"Condition\": \"$${http.request.host} in ['cdn.defaultsetting.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 2592000
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower($${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"$${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Web Acceleration - pages.migraine.com.cn\",
\"Branches\": [
{
\"Condition\": \"$${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"CustomTime\": {
\"Switch\": \"on\",
\"IgnoreCacheControl\": \"off\",
\"CacheTime\": 0
}
}
},
{
\"Name\": \"CacheKey\",
\"CacheKeyParameters\": {
\"FullURLCache\": \"on\",
\"QueryString\": {
\"Switch\": \"off\"
},
\"IgnoreCase\": \"off\"
}
}
],
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"lower($${http.request.file_extension}) in ['php', 'jsp', 'asp', 'aspx']\",
\"Actions\": [
{
\"Name\": \"Cache\",
\"CacheParameters\": {
\"NoCache\": {
\"Switch\": \"on\"
}
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"$${http.request.file_extension} in ['jpg', 'png', 'gif', 'bmp', 'svg', 'webp']\",
\"Actions\": [
{
\"Name\": \"MaxAge\",
\"MaxAgeParameters\": {
\"FollowOrigin\": \"off\",
\"CacheTime\": 3600
}
}
]
}
]
}
]
}
]
},
{
\"RuleName\": \"Skip Pages Authentication Verification\",
\"Branches\": [
{
\"Condition\": \"$${http.request.host} in ['pages.migraine.com.cn']\",
\"Actions\": [
{
\"Name\": \"ModifyRequestHeader\",
\"ModifyRequestHeaderParameters\": {
\"HeaderActions\": [
{
\"Action\": \"add\",
\"Name\": \"X-SKIP-TOKEN\",
\"Value\": \"eop-1022\"
}
]
}
}
]
}
]
},
{
\"RuleName\": \"Regional Origin Pull\",
\"Branches\": [
{
\"Condition\": \"$${http.request.host} in ['abc.migraine.com.cn']\",
\"SubRules\": [
{
\"Branches\": [
{
\"Condition\": \"$${http.request.ip.country} in ['Asia']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"1.2.3.4\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
},
{
\"Branches\": [
{
\"Condition\": \"$${http.request.ip.country} in ['Africa']\",
\"Actions\": [
{
\"Name\": \"ModifyOrigin\",
\"ModifyOriginParameters\": {
\"OriginType\": \"IPDomain\",
\"Origin\": \"3.4.5.6\",
\"OriginProtocol\": \"follow\",
\"HTTPOriginPort\": 80,
\"HTTPSOriginPort\": 443
}
}
]
}
]
}
]
}
]
}
]
}
description: test version
groupId: cg-3lchxitnb5pb
zoneId: zone-2xkazzl8yf6k
Create TeoConfigGroupVersion Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoConfigGroupVersion(name: string, args: TeoConfigGroupVersionArgs, opts?: CustomResourceOptions);@overload
def TeoConfigGroupVersion(resource_name: str,
args: TeoConfigGroupVersionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoConfigGroupVersion(resource_name: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
group_id: Optional[str] = None,
zone_id: Optional[str] = None,
description: Optional[str] = None,
teo_config_group_version_id: Optional[str] = None)func NewTeoConfigGroupVersion(ctx *Context, name string, args TeoConfigGroupVersionArgs, opts ...ResourceOption) (*TeoConfigGroupVersion, error)public TeoConfigGroupVersion(string name, TeoConfigGroupVersionArgs args, CustomResourceOptions? opts = null)
public TeoConfigGroupVersion(String name, TeoConfigGroupVersionArgs args)
public TeoConfigGroupVersion(String name, TeoConfigGroupVersionArgs args, CustomResourceOptions options)
type: tencentcloud:TeoConfigGroupVersion
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args TeoConfigGroupVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args TeoConfigGroupVersionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args TeoConfigGroupVersionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoConfigGroupVersionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoConfigGroupVersionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoConfigGroupVersion Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The TeoConfigGroupVersion resource accepts the following input properties:
- Content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- Group
Id string - GroupId of the version to be created.
- Zone
Id string - Zone ID.
- Description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- Teo
Config stringGroup Version Id - ID of the resource.
- Content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- Group
Id string - GroupId of the version to be created.
- Zone
Id string - Zone ID.
- Description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- Teo
Config stringGroup Version Id - ID of the resource.
- content String
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- group
Id String - GroupId of the version to be created.
- zone
Id String - Zone ID.
- description String
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- teo
Config StringGroup Version Id - ID of the resource.
- content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- group
Id string - GroupId of the version to be created.
- zone
Id string - Zone ID.
- description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- teo
Config stringGroup Version Id - ID of the resource.
- content str
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- group_
id str - GroupId of the version to be created.
- zone_
id str - Zone ID.
- description str
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- teo_
config_ strgroup_ version_ id - ID of the resource.
- content String
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- group
Id String - GroupId of the version to be created.
- zone
Id String - Zone ID.
- description String
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- teo
Config StringGroup Version Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoConfigGroupVersion resource produces the following output properties:
- Create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- Group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- Version
Id string - Version ID.
- Version
Number string - Version number.
- Create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- Group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- Id string
- The provider-assigned unique ID for this managed resource.
- Status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- Version
Id string - Version ID.
- Version
Number string - Version number.
- create
Time String - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- group
Type String - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- version
Id String - Version ID.
- version
Number String - Version number.
- create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- id string
- The provider-assigned unique ID for this managed resource.
- status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- version
Id string - Version ID.
- version
Number string - Version number.
- create_
time str - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- group_
type str - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- id str
- The provider-assigned unique ID for this managed resource.
- status str
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- version_
id str - Version ID.
- version_
number str - Version number.
- create
Time String - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- group
Type String - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- id String
- The provider-assigned unique ID for this managed resource.
- status String
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- version
Id String - Version ID.
- version
Number String - Version number.
Look up Existing TeoConfigGroupVersion Resource
Get an existing TeoConfigGroupVersion resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: TeoConfigGroupVersionState, opts?: CustomResourceOptions): TeoConfigGroupVersion@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
content: Optional[str] = None,
create_time: Optional[str] = None,
description: Optional[str] = None,
group_id: Optional[str] = None,
group_type: Optional[str] = None,
status: Optional[str] = None,
teo_config_group_version_id: Optional[str] = None,
version_id: Optional[str] = None,
version_number: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoConfigGroupVersionfunc GetTeoConfigGroupVersion(ctx *Context, name string, id IDInput, state *TeoConfigGroupVersionState, opts ...ResourceOption) (*TeoConfigGroupVersion, error)public static TeoConfigGroupVersion Get(string name, Input<string> id, TeoConfigGroupVersionState? state, CustomResourceOptions? opts = null)public static TeoConfigGroupVersion get(String name, Output<String> id, TeoConfigGroupVersionState state, CustomResourceOptions options)resources: _: type: tencentcloud:TeoConfigGroupVersion get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- Create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- Description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- Group
Id string - GroupId of the version to be created.
- Group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- Status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- Teo
Config stringGroup Version Id - ID of the resource.
- Version
Id string - Version ID.
- Version
Number string - Version number.
- Zone
Id string - Zone ID.
- Content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- Create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- Description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- Group
Id string - GroupId of the version to be created.
- Group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- Status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- Teo
Config stringGroup Version Id - ID of the resource.
- Version
Id string - Version ID.
- Version
Number string - Version number.
- Zone
Id string - Zone ID.
- content String
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- create
Time String - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- description String
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- group
Id String - GroupId of the version to be created.
- group
Type String - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- status String
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- teo
Config StringGroup Version Id - ID of the resource.
- version
Id String - Version ID.
- version
Number String - Version number.
- zone
Id String - Zone ID.
- content string
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- create
Time string - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- description string
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- group
Id string - GroupId of the version to be created.
- group
Type string - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- status string
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- teo
Config stringGroup Version Id - ID of the resource.
- version
Id string - Version ID.
- version
Number string - Version number.
- zone
Id string - Zone ID.
- content str
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- create_
time str - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- description str
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- group_
id str - GroupId of the version to be created.
- group_
type str - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- status str
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- teo_
config_ strgroup_ version_ id - ID of the resource.
- version_
id str - Version ID.
- version_
number str - Version number.
- zone_
id str - Zone ID.
- content String
- Configuration content to be imported. It is required to be in JSON format and encoded in UTF-8. Please refer to the example below for the configuration file content.
- create
Time String - Version creation time. The time follows the ISO 8601 standard in the date and time format.
- description String
- Version description. The maximum length allowed is 50 characters. This field can be used to provide details about the application scenarios of this version.
- group
Id String - GroupId of the version to be created.
- group
Type String - Configuration group type. Valid values: l7_acceleration (Layer 7 acceleration configuration group), edge_functions (Edge function configuration group).
- status String
- Version status. Valid values: creating (Creating), inactive (Inactive), active (Active).
- teo
Config StringGroup Version Id - ID of the resource.
- version
Id String - Version ID.
- version
Number String - Version number.
- zone
Id String - Zone ID.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
published on Friday, Mar 27, 2026 by tencentcloudstack
