Skip to content

Commit 85369f2

Browse files
committed
fix(teo): [118016440] support ipv6
1 parent edf9a5e commit 85369f2

File tree

3 files changed

+80
-27
lines changed

3 files changed

+80
-27
lines changed

tencentcloud/services/teo/resource_tc_teo_acceleration_domain.go

Lines changed: 73 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tencentcloud/services/teo/service_tencentcloud_teo.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -688,10 +688,10 @@ func (me *TeoService) DescribeTeoAccelerationDomainById(ctx context.Context, zon
688688
logId := tccommon.GetLogId(ctx)
689689

690690
request := teo.NewDescribeAccelerationDomainsRequest()
691-
request.ZoneId = &zoneId
691+
request.ZoneId = helper.String(zoneId)
692692
advancedFilter := &teo.AdvancedFilter{
693693
Name: helper.String("domain-name"),
694-
Values: []*string{&domainName},
694+
Values: []*string{helper.String(domainName)},
695695
}
696696
request.Filters = append(request.Filters, advancedFilter)
697697

@@ -732,6 +732,7 @@ func (me *TeoService) DescribeTeoAccelerationDomainById(ctx context.Context, zon
732732
if len(instances) < 1 {
733733
return
734734
}
735+
735736
ret = instances[0]
736737
return
737738
}

website/docs/r/teo_acceleration_domain.html.markdown

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,10 @@ The following arguments are supported:
3232
* `domain_name` - (Required, String, ForceNew) Accelerated domain name.
3333
* `origin_info` - (Required, List) Details of the origin.
3434
* `zone_id` - (Required, String, ForceNew) ID of the site related with the accelerated domain name.
35+
* `http_origin_port` - (Optional, Int) HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
36+
* `https_origin_port` - (Optional, Int) HTTPS back-to-origin port. The value range is 1-65535. It takes effect when OriginProtocol=FOLLOW/HTTPS. If it is not filled in, the default value is 443.
37+
* `ipv6_status` - (Optional, String) IPv6 status, the value is: `follow`: follow the site IPv6 configuration; `on`: on; `off`: off. If not filled in, the default is: `follow`.
38+
* `origin_protocol` - (Optional, String) Origin return protocol, possible values are: `FOLLOW`: protocol follow; `HTTP`: HTTP protocol back to source; `HTTPS`: HTTPS protocol back to source. If not filled in, the default is: `FOLLOW`.
3539
* `status` - (Optional, String) Accelerated domain name status, the values are: `online`: enabled; `offline`: disabled.
3640

3741
The `origin_info` object supports the following:

0 commit comments

Comments
 (0)