tencentcloud.TeoAccelerationDomain
Explore with Pulumi AI
Provides a resource to create a TEO acceleration domain
NOTE: Before modifying resource content, you need to ensure that the
status
isonline
.
NOTE: Only
origin_type
isIP_DOMAIN
can sethost_header
; And whenorigin_type
is changed toIP_DOMAIN
,host_header
needs to be set to a legal value, such as a domain name string(likedomain_name
).
NOTE: If you use a third-party storage bucket configured for back-to-source, you need to ignore changes to
SecretAccessKey
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoAccelerationDomain("example", {
domainName: "www.demo.com",
httpOriginPort: 80,
httpsOriginPort: 443,
ipv6Status: "follow",
originInfo: {
origin: "150.109.8.1",
originType: "IP_DOMAIN",
},
originProtocol: "FOLLOW",
status: "online",
zoneId: "zone-39quuimqg8r6",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoAccelerationDomain("example",
domain_name="www.demo.com",
http_origin_port=80,
https_origin_port=443,
ipv6_status="follow",
origin_info={
"origin": "150.109.8.1",
"origin_type": "IP_DOMAIN",
},
origin_protocol="FOLLOW",
status="online",
zone_id="zone-39quuimqg8r6")
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.NewTeoAccelerationDomain(ctx, "example", &tencentcloud.TeoAccelerationDomainArgs{
DomainName: pulumi.String("www.demo.com"),
HttpOriginPort: pulumi.Float64(80),
HttpsOriginPort: pulumi.Float64(443),
Ipv6Status: pulumi.String("follow"),
OriginInfo: &tencentcloud.TeoAccelerationDomainOriginInfoArgs{
Origin: pulumi.String("150.109.8.1"),
OriginType: pulumi.String("IP_DOMAIN"),
},
OriginProtocol: pulumi.String("FOLLOW"),
Status: pulumi.String("online"),
ZoneId: pulumi.String("zone-39quuimqg8r6"),
})
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 example = new Tencentcloud.TeoAccelerationDomain("example", new()
{
DomainName = "www.demo.com",
HttpOriginPort = 80,
HttpsOriginPort = 443,
Ipv6Status = "follow",
OriginInfo = new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoArgs
{
Origin = "150.109.8.1",
OriginType = "IP_DOMAIN",
},
OriginProtocol = "FOLLOW",
Status = "online",
ZoneId = "zone-39quuimqg8r6",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoAccelerationDomain;
import com.pulumi.tencentcloud.TeoAccelerationDomainArgs;
import com.pulumi.tencentcloud.inputs.TeoAccelerationDomainOriginInfoArgs;
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 example = new TeoAccelerationDomain("example", TeoAccelerationDomainArgs.builder()
.domainName("www.demo.com")
.httpOriginPort(80)
.httpsOriginPort(443)
.ipv6Status("follow")
.originInfo(TeoAccelerationDomainOriginInfoArgs.builder()
.origin("150.109.8.1")
.originType("IP_DOMAIN")
.build())
.originProtocol("FOLLOW")
.status("online")
.zoneId("zone-39quuimqg8r6")
.build());
}
}
resources:
example:
type: tencentcloud:TeoAccelerationDomain
properties:
domainName: www.demo.com
httpOriginPort: 80
httpsOriginPort: 443
ipv6Status: follow
originInfo:
origin: 150.109.8.1
originType: IP_DOMAIN
originProtocol: FOLLOW
status: online
zoneId: zone-39quuimqg8r6
Back-to-source configuration using a third-party storage bucket.
SecretAccessKey is sensitive data and can no longer be queried in plain text, so changes to SecretAccessKey need to be ignored.
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const accelerationDomain = new tencentcloud.TeoAccelerationDomain("accelerationDomain", {
domainName: "cos.demo.cn",
httpOriginPort: 80,
httpsOriginPort: 443,
ipv6Status: "follow",
originProtocol: "FOLLOW",
status: "online",
zoneId: "zone-39quuimqg8r6",
originInfo: {
backupOrigin: undefined,
origin: "example.s3.ap-northeast.amazonaws.com",
originType: "AWS_S3",
privateAccess: "on",
vodBucketId: undefined,
vodOriginScope: undefined,
privateParameters: [
{
name: "AccessKeyId",
value: "aaaaaaa",
},
{
name: "SecretAccessKey",
value: "bbbbbbb",
},
{
name: "SignatureVersion",
value: "v4",
},
{
name: "Region",
value: "us-east1",
},
],
},
});
import pulumi
import pulumi_tencentcloud as tencentcloud
acceleration_domain = tencentcloud.TeoAccelerationDomain("accelerationDomain",
domain_name="cos.demo.cn",
http_origin_port=80,
https_origin_port=443,
ipv6_status="follow",
origin_protocol="FOLLOW",
status="online",
zone_id="zone-39quuimqg8r6",
origin_info={
"backup_origin": None,
"origin": "example.s3.ap-northeast.amazonaws.com",
"origin_type": "AWS_S3",
"private_access": "on",
"vod_bucket_id": None,
"vod_origin_scope": None,
"private_parameters": [
{
"name": "AccessKeyId",
"value": "aaaaaaa",
},
{
"name": "SecretAccessKey",
"value": "bbbbbbb",
},
{
"name": "SignatureVersion",
"value": "v4",
},
{
"name": "Region",
"value": "us-east1",
},
],
})
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.NewTeoAccelerationDomain(ctx, "accelerationDomain", &tencentcloud.TeoAccelerationDomainArgs{
DomainName: pulumi.String("cos.demo.cn"),
HttpOriginPort: pulumi.Float64(80),
HttpsOriginPort: pulumi.Float64(443),
Ipv6Status: pulumi.String("follow"),
OriginProtocol: pulumi.String("FOLLOW"),
Status: pulumi.String("online"),
ZoneId: pulumi.String("zone-39quuimqg8r6"),
OriginInfo: &tencentcloud.TeoAccelerationDomainOriginInfoArgs{
BackupOrigin: nil,
Origin: pulumi.String("example.s3.ap-northeast.amazonaws.com"),
OriginType: pulumi.String("AWS_S3"),
PrivateAccess: pulumi.String("on"),
VodBucketId: nil,
VodOriginScope: nil,
PrivateParameters: tencentcloud.TeoAccelerationDomainOriginInfoPrivateParameterArray{
&tencentcloud.TeoAccelerationDomainOriginInfoPrivateParameterArgs{
Name: pulumi.String("AccessKeyId"),
Value: pulumi.String("aaaaaaa"),
},
&tencentcloud.TeoAccelerationDomainOriginInfoPrivateParameterArgs{
Name: pulumi.String("SecretAccessKey"),
Value: pulumi.String("bbbbbbb"),
},
&tencentcloud.TeoAccelerationDomainOriginInfoPrivateParameterArgs{
Name: pulumi.String("SignatureVersion"),
Value: pulumi.String("v4"),
},
&tencentcloud.TeoAccelerationDomainOriginInfoPrivateParameterArgs{
Name: pulumi.String("Region"),
Value: pulumi.String("us-east1"),
},
},
},
})
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 accelerationDomain = new Tencentcloud.TeoAccelerationDomain("accelerationDomain", new()
{
DomainName = "cos.demo.cn",
HttpOriginPort = 80,
HttpsOriginPort = 443,
Ipv6Status = "follow",
OriginProtocol = "FOLLOW",
Status = "online",
ZoneId = "zone-39quuimqg8r6",
OriginInfo = new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoArgs
{
BackupOrigin = null,
Origin = "example.s3.ap-northeast.amazonaws.com",
OriginType = "AWS_S3",
PrivateAccess = "on",
VodBucketId = null,
VodOriginScope = null,
PrivateParameters = new[]
{
new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoPrivateParameterArgs
{
Name = "AccessKeyId",
Value = "aaaaaaa",
},
new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoPrivateParameterArgs
{
Name = "SecretAccessKey",
Value = "bbbbbbb",
},
new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoPrivateParameterArgs
{
Name = "SignatureVersion",
Value = "v4",
},
new Tencentcloud.Inputs.TeoAccelerationDomainOriginInfoPrivateParameterArgs
{
Name = "Region",
Value = "us-east1",
},
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoAccelerationDomain;
import com.pulumi.tencentcloud.TeoAccelerationDomainArgs;
import com.pulumi.tencentcloud.inputs.TeoAccelerationDomainOriginInfoArgs;
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 accelerationDomain = new TeoAccelerationDomain("accelerationDomain", TeoAccelerationDomainArgs.builder()
.domainName("cos.demo.cn")
.httpOriginPort(80)
.httpsOriginPort(443)
.ipv6Status("follow")
.originProtocol("FOLLOW")
.status("online")
.zoneId("zone-39quuimqg8r6")
.originInfo(TeoAccelerationDomainOriginInfoArgs.builder()
.backupOrigin(null)
.origin("example.s3.ap-northeast.amazonaws.com")
.originType("AWS_S3")
.privateAccess("on")
.vodBucketId(null)
.vodOriginScope(null)
.privateParameters(
TeoAccelerationDomainOriginInfoPrivateParameterArgs.builder()
.name("AccessKeyId")
.value("aaaaaaa")
.build(),
TeoAccelerationDomainOriginInfoPrivateParameterArgs.builder()
.name("SecretAccessKey")
.value("bbbbbbb")
.build(),
TeoAccelerationDomainOriginInfoPrivateParameterArgs.builder()
.name("SignatureVersion")
.value("v4")
.build(),
TeoAccelerationDomainOriginInfoPrivateParameterArgs.builder()
.name("Region")
.value("us-east1")
.build())
.build())
.build());
}
}
resources:
accelerationDomain:
type: tencentcloud:TeoAccelerationDomain
properties:
domainName: cos.demo.cn
httpOriginPort: 80
httpsOriginPort: 443
ipv6Status: follow
originProtocol: FOLLOW
status: online
zoneId: zone-39quuimqg8r6
originInfo:
backupOrigin: null
origin: example.s3.ap-northeast.amazonaws.com
originType: AWS_S3
privateAccess: on
vodBucketId: null
vodOriginScope: null
privateParameters:
- name: AccessKeyId
value: aaaaaaa
- name: SecretAccessKey
value: bbbbbbb
- name: SignatureVersion
value: v4
- name: Region
value: us-east1
Create TeoAccelerationDomain Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoAccelerationDomain(name: string, args: TeoAccelerationDomainArgs, opts?: CustomResourceOptions);
@overload
def TeoAccelerationDomain(resource_name: str,
args: TeoAccelerationDomainArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoAccelerationDomain(resource_name: str,
opts: Optional[ResourceOptions] = None,
domain_name: Optional[str] = None,
origin_info: Optional[TeoAccelerationDomainOriginInfoArgs] = None,
zone_id: Optional[str] = None,
http_origin_port: Optional[float] = None,
https_origin_port: Optional[float] = None,
ipv6_status: Optional[str] = None,
origin_protocol: Optional[str] = None,
status: Optional[str] = None,
teo_acceleration_domain_id: Optional[str] = None)
func NewTeoAccelerationDomain(ctx *Context, name string, args TeoAccelerationDomainArgs, opts ...ResourceOption) (*TeoAccelerationDomain, error)
public TeoAccelerationDomain(string name, TeoAccelerationDomainArgs args, CustomResourceOptions? opts = null)
public TeoAccelerationDomain(String name, TeoAccelerationDomainArgs args)
public TeoAccelerationDomain(String name, TeoAccelerationDomainArgs args, CustomResourceOptions options)
type: tencentcloud:TeoAccelerationDomain
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 TeoAccelerationDomainArgs
- 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 TeoAccelerationDomainArgs
- 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 TeoAccelerationDomainArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoAccelerationDomainArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoAccelerationDomainArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoAccelerationDomain 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 TeoAccelerationDomain resource accepts the following input properties:
- Domain
Name string - Accelerated domain name.
- Origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- Zone
Id string - ID of the site related with the accelerated domain name.
- Http
Origin doublePort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- Https
Origin doublePort - 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.
- Ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - Origin
Protocol 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
. - Status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - Teo
Acceleration stringDomain Id - ID of the resource.
- Domain
Name string - Accelerated domain name.
- Origin
Info TeoAcceleration Domain Origin Info Args - Details of the origin.
- Zone
Id string - ID of the site related with the accelerated domain name.
- Http
Origin float64Port - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- Https
Origin float64Port - 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.
- Ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - Origin
Protocol 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
. - Status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - Teo
Acceleration stringDomain Id - ID of the resource.
- domain
Name String - Accelerated domain name.
- origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- zone
Id String - ID of the site related with the accelerated domain name.
- http
Origin DoublePort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin DoublePort - 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.
- ipv6Status String
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Protocol 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
. - status String
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration StringDomain Id - ID of the resource.
- domain
Name string - Accelerated domain name.
- origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- zone
Id string - ID of the site related with the accelerated domain name.
- http
Origin numberPort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin numberPort - 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.
- ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Protocol 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
. - status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration stringDomain Id - ID of the resource.
- domain_
name str - Accelerated domain name.
- origin_
info TeoAcceleration Domain Origin Info Args - Details of the origin.
- zone_
id str - ID of the site related with the accelerated domain name.
- http_
origin_ floatport - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https_
origin_ floatport - 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.
- ipv6_
status str - IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin_
protocol str - 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
. - status str
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo_
acceleration_ strdomain_ id - ID of the resource.
- domain
Name String - Accelerated domain name.
- origin
Info Property Map - Details of the origin.
- zone
Id String - ID of the site related with the accelerated domain name.
- http
Origin NumberPort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin NumberPort - 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.
- ipv6Status String
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Protocol 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
. - status String
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration StringDomain Id - ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoAccelerationDomain resource produces the following output properties:
Look up Existing TeoAccelerationDomain Resource
Get an existing TeoAccelerationDomain 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?: TeoAccelerationDomainState, opts?: CustomResourceOptions): TeoAccelerationDomain
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
cname: Optional[str] = None,
domain_name: Optional[str] = None,
http_origin_port: Optional[float] = None,
https_origin_port: Optional[float] = None,
ipv6_status: Optional[str] = None,
origin_info: Optional[TeoAccelerationDomainOriginInfoArgs] = None,
origin_protocol: Optional[str] = None,
status: Optional[str] = None,
teo_acceleration_domain_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoAccelerationDomain
func GetTeoAccelerationDomain(ctx *Context, name string, id IDInput, state *TeoAccelerationDomainState, opts ...ResourceOption) (*TeoAccelerationDomain, error)
public static TeoAccelerationDomain Get(string name, Input<string> id, TeoAccelerationDomainState? state, CustomResourceOptions? opts = null)
public static TeoAccelerationDomain get(String name, Output<String> id, TeoAccelerationDomainState state, CustomResourceOptions options)
resources: _: type: tencentcloud:TeoAccelerationDomain 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.
- Cname string
- CNAME address.
- Domain
Name string - Accelerated domain name.
- Http
Origin doublePort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- Https
Origin doublePort - 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.
- Ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - Origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- Origin
Protocol 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
. - Status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - Teo
Acceleration stringDomain Id - ID of the resource.
- Zone
Id string - ID of the site related with the accelerated domain name.
- Cname string
- CNAME address.
- Domain
Name string - Accelerated domain name.
- Http
Origin float64Port - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- Https
Origin float64Port - 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.
- Ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - Origin
Info TeoAcceleration Domain Origin Info Args - Details of the origin.
- Origin
Protocol 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
. - Status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - Teo
Acceleration stringDomain Id - ID of the resource.
- Zone
Id string - ID of the site related with the accelerated domain name.
- cname String
- CNAME address.
- domain
Name String - Accelerated domain name.
- http
Origin DoublePort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin DoublePort - 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.
- ipv6Status String
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- origin
Protocol 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
. - status String
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration StringDomain Id - ID of the resource.
- zone
Id String - ID of the site related with the accelerated domain name.
- cname string
- CNAME address.
- domain
Name string - Accelerated domain name.
- http
Origin numberPort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin numberPort - 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.
- ipv6Status string
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Info TeoAcceleration Domain Origin Info - Details of the origin.
- origin
Protocol 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
. - status string
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration stringDomain Id - ID of the resource.
- zone
Id string - ID of the site related with the accelerated domain name.
- cname str
- CNAME address.
- domain_
name str - Accelerated domain name.
- http_
origin_ floatport - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https_
origin_ floatport - 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.
- ipv6_
status str - IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin_
info TeoAcceleration Domain Origin Info Args - Details of the origin.
- origin_
protocol str - 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
. - status str
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo_
acceleration_ strdomain_ id - ID of the resource.
- zone_
id str - ID of the site related with the accelerated domain name.
- cname String
- CNAME address.
- domain
Name String - Accelerated domain name.
- http
Origin NumberPort - HTTP back-to-origin port, the value is 1-65535, effective when OriginProtocol=FOLLOW/HTTP, if not filled in, the default value is 80.
- https
Origin NumberPort - 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.
- ipv6Status String
- IPv6 status, the value is:
follow
: follow the site IPv6 configuration;on
: on;off
: off. If not filled in, the default is:follow
. - origin
Info Property Map - Details of the origin.
- origin
Protocol 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
. - status String
- Accelerated domain name status, the values are:
online
: enabled;offline
: disabled. Default isonline
. - teo
Acceleration StringDomain Id - ID of the resource.
- zone
Id String - ID of the site related with the accelerated domain name.
Supporting Types
TeoAccelerationDomainOriginInfo, TeoAccelerationDomainOriginInfoArgs
- Origin string
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- Origin
Type string - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- Backup
Origin string - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- Host
Header string - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- Private
Access string - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- Private
Parameters List<TeoAcceleration Domain Origin Info Private Parameter> - Private authentication parameter. This parameter is valid only when
private_access
is on. - Vod
Bucket stringId - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- Vod
Origin stringScope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
- Origin string
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- Origin
Type string - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- Backup
Origin string - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- Host
Header string - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- Private
Access string - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- Private
Parameters []TeoAcceleration Domain Origin Info Private Parameter - Private authentication parameter. This parameter is valid only when
private_access
is on. - Vod
Bucket stringId - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- Vod
Origin stringScope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
- origin String
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- origin
Type String - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- backup
Origin String - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- host
Header String - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- private
Access String - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- private
Parameters List<TeoAcceleration Domain Origin Info Private Parameter> - Private authentication parameter. This parameter is valid only when
private_access
is on. - vod
Bucket StringId - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- vod
Origin StringScope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
- origin string
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- origin
Type string - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- backup
Origin string - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- host
Header string - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- private
Access string - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- private
Parameters TeoAcceleration Domain Origin Info Private Parameter[] - Private authentication parameter. This parameter is valid only when
private_access
is on. - vod
Bucket stringId - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- vod
Origin stringScope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
- origin str
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- origin_
type str - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- backup_
origin str - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- host_
header str - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- private_
access str - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- private_
parameters Sequence[TeoAcceleration Domain Origin Info Private Parameter] - Private authentication parameter. This parameter is valid only when
private_access
is on. - vod_
bucket_ strid - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- vod_
origin_ strscope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
- origin String
- Origin server address, which varies according to the value of OriginType: When OriginType = IP_DOMAIN, fill in an IPv4 address, an IPv6 address, or a domain name; When OriginType = COS, fill in the access domain name of the COS bucket; When OriginType = AWS_S3, fill in the access domain name of the S3 bucket; When OriginType = ORIGIN_GROUP, fill in the origin server group ID; When OriginType = VOD, fill in the VOD application ID; When OriginType = LB, fill in the Cloud Load Balancer instance ID. This feature is currently only available to the allowlist; When OriginType = SPACE, fill in the origin server uninstallation space ID. This feature is currently only available to the allowlist.
- origin
Type String - Origin server type, with values: IP_DOMAIN: IPv4, IPv6, or domain name type origin server; COS: Tencent Cloud COS origin server; AWS_S3: AWS S3 origin server; ORIGIN_GROUP: origin server group type origin server; VOD: Video on Demand; SPACE: origin server uninstallation. Currently only available to the allowlist; LB: load balancing. Currently only available to the allowlist.
- backup
Origin String - The ID of the secondary origin group. This parameter is valid only when OriginType is ORIGIN_GROUP. This field indicates the old version capability, which cannot be configured or modified on the control panel after being called. Please submit a ticket if required.
- host
Header String - Custom origin server HOST header. this parameter is valid only when OriginType=IP_DOMAIN.If the OriginType is another type of origin, this parameter does not need to be passed in, otherwise an error will be reported. If OriginType is COS or AWS_S3, the HOST header for origin-pull will remain consistent with the origin server domain name. If OriginType is ORIGIN_GROUP, the HOST header follows the ORIGIN site GROUP configuration. if not configured, it defaults to the acceleration domain name. If OriginType is VOD or SPACE, no configuration is required for this header, and the domain name takes effect based on the corresponding origin.
- private
Access String - Whether access to the private Cloud Object Storage origin server is allowed. This parameter is valid only when OriginType is COS or AWS_S3. Valid values: on: Enable private authentication; off: Disable private authentication. If it is not specified, the default value is off.
- private
Parameters List<Property Map> - Private authentication parameter. This parameter is valid only when
private_access
is on. - vod
Bucket StringId - VOD bucket ID. This parameter is required when OriginType = VOD and VodOriginScope = bucket. Data source: the storage ID of the bucket in the Cloud VOD Professional Edition application.
- vod
Origin StringScope - The scope of cloud on-demand back-to-source. This parameter is effective when OriginType = VOD. The possible values are: all: all files in the cloud on-demand application corresponding to the current origin station. The default value is all; bucket: files in a specified bucket under the cloud on-demand application corresponding to the current origin station. The bucket is specified by the parameter VodBucketId.
TeoAccelerationDomainOriginInfoPrivateParameter, TeoAccelerationDomainOriginInfoPrivateParameterArgs
Import
TEO acceleration domain can be imported using the id, e.g.
$ pulumi import tencentcloud:index/teoAccelerationDomain:TeoAccelerationDomain example zone-39quuimqg8r6#www.demo.com
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.