published on Friday, Jun 19, 2026 by tencentcloudstack
published on Friday, Jun 19, 2026 by tencentcloudstack
Provides a resource to create a TencentCloud EdgeOne (TEO) shared CNAME
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const example = new tencentcloud.TeoSharedCname("example", {
zoneId: "zone-39quuimqg8r6",
sharedCnamePrefix: "test-api",
description: "example shared cname",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example = tencentcloud.TeoSharedCname("example",
zone_id="zone-39quuimqg8r6",
shared_cname_prefix="test-api",
description="example shared cname")
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.NewTeoSharedCname(ctx, "example", &tencentcloud.TeoSharedCnameArgs{
ZoneId: pulumi.String("zone-39quuimqg8r6"),
SharedCnamePrefix: pulumi.String("test-api"),
Description: pulumi.String("example shared cname"),
})
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.TeoSharedCname("example", new()
{
ZoneId = "zone-39quuimqg8r6",
SharedCnamePrefix = "test-api",
Description = "example shared cname",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TeoSharedCname;
import com.pulumi.tencentcloud.TeoSharedCnameArgs;
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 TeoSharedCname("example", TeoSharedCnameArgs.builder()
.zoneId("zone-39quuimqg8r6")
.sharedCnamePrefix("test-api")
.description("example shared cname")
.build());
}
}
resources:
example:
type: tencentcloud:TeoSharedCname
properties:
zoneId: zone-39quuimqg8r6
sharedCnamePrefix: test-api
description: example shared cname
Example coming soon!
Create TeoSharedCname Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new TeoSharedCname(name: string, args: TeoSharedCnameArgs, opts?: CustomResourceOptions);@overload
def TeoSharedCname(resource_name: str,
args: TeoSharedCnameArgs,
opts: Optional[ResourceOptions] = None)
@overload
def TeoSharedCname(resource_name: str,
opts: Optional[ResourceOptions] = None,
shared_cname_prefix: Optional[str] = None,
zone_id: Optional[str] = None,
description: Optional[str] = None,
ipssl_setting: Optional[TeoSharedCnameIpsslSettingArgs] = None,
teo_shared_cname_id: Optional[str] = None)func NewTeoSharedCname(ctx *Context, name string, args TeoSharedCnameArgs, opts ...ResourceOption) (*TeoSharedCname, error)public TeoSharedCname(string name, TeoSharedCnameArgs args, CustomResourceOptions? opts = null)
public TeoSharedCname(String name, TeoSharedCnameArgs args)
public TeoSharedCname(String name, TeoSharedCnameArgs args, CustomResourceOptions options)
type: tencentcloud:TeoSharedCname
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "tencentcloud_teosharedcname" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args TeoSharedCnameArgs
- 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 TeoSharedCnameArgs
- 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 TeoSharedCnameArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args TeoSharedCnameArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args TeoSharedCnameArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
TeoSharedCname 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 TeoSharedCname resource accepts the following input properties:
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - Zone
Id string - The zone ID of the shared CNAME.
- Description string
- Description. You can enter 1-50 characters.
- Ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- string
- ID of the resource.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - Zone
Id string - The zone ID of the shared CNAME.
- Description string
- Description. You can enter 1-50 characters.
- Ipssl
Setting TeoShared Cname Ipssl Setting Args - IP SSL setting for the shared CNAME.
- string
- ID of the resource.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - zone_
id string - The zone ID of the shared CNAME.
- description string
- Description. You can enter 1-50 characters.
- ipssl_
setting object - IP SSL setting for the shared CNAME.
- string
- ID of the resource.
- String
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - zone
Id String - The zone ID of the shared CNAME.
- description String
- Description. You can enter 1-50 characters.
- ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- String
- ID of the resource.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - zone
Id string - The zone ID of the shared CNAME.
- description string
- Description. You can enter 1-50 characters.
- ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- string
- ID of the resource.
- str
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - zone_
id str - The zone ID of the shared CNAME.
- description str
- Description. You can enter 1-50 characters.
- ipssl_
setting TeoShared Cname Ipssl Setting Args - IP SSL setting for the shared CNAME.
- str
- ID of the resource.
- String
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - zone
Id String - The zone ID of the shared CNAME.
- description String
- Description. You can enter 1-50 characters.
- ipssl
Setting Property Map - IP SSL setting for the shared CNAME.
- String
- ID of the resource.
Outputs
All input properties are implicitly available as output properties. Additionally, the TeoSharedCname resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The full shared CNAME returned by the API.
- Id string
- The provider-assigned unique ID for this managed resource.
- string
- The full shared CNAME returned by the API.
- id string
- The provider-assigned unique ID for this managed resource.
- string
- The full shared CNAME returned by the API.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The full shared CNAME returned by the API.
- id string
- The provider-assigned unique ID for this managed resource.
- string
- The full shared CNAME returned by the API.
- id str
- The provider-assigned unique ID for this managed resource.
- str
- The full shared CNAME returned by the API.
- id String
- The provider-assigned unique ID for this managed resource.
- String
- The full shared CNAME returned by the API.
Look up Existing TeoSharedCname Resource
Get an existing TeoSharedCname 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?: TeoSharedCnameState, opts?: CustomResourceOptions): TeoSharedCname@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
description: Optional[str] = None,
ipssl_setting: Optional[TeoSharedCnameIpsslSettingArgs] = None,
shared_cname: Optional[str] = None,
shared_cname_prefix: Optional[str] = None,
teo_shared_cname_id: Optional[str] = None,
zone_id: Optional[str] = None) -> TeoSharedCnamefunc GetTeoSharedCname(ctx *Context, name string, id IDInput, state *TeoSharedCnameState, opts ...ResourceOption) (*TeoSharedCname, error)public static TeoSharedCname Get(string name, Input<string> id, TeoSharedCnameState? state, CustomResourceOptions? opts = null)public static TeoSharedCname get(String name, Output<String> id, TeoSharedCnameState state, CustomResourceOptions options)resources: _: type: tencentcloud:TeoSharedCname get: id: ${id}import {
to = tencentcloud_teosharedcname.example
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.
- Description string
- Description. You can enter 1-50 characters.
- Ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- string
- The full shared CNAME returned by the API.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - string
- ID of the resource.
- Zone
Id string - The zone ID of the shared CNAME.
- Description string
- Description. You can enter 1-50 characters.
- Ipssl
Setting TeoShared Cname Ipssl Setting Args - IP SSL setting for the shared CNAME.
- string
- The full shared CNAME returned by the API.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - string
- ID of the resource.
- Zone
Id string - The zone ID of the shared CNAME.
- description string
- Description. You can enter 1-50 characters.
- ipssl_
setting object - IP SSL setting for the shared CNAME.
- string
- The full shared CNAME returned by the API.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - string
- ID of the resource.
- zone_
id string - The zone ID of the shared CNAME.
- description String
- Description. You can enter 1-50 characters.
- ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- String
- The full shared CNAME returned by the API.
- String
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - String
- ID of the resource.
- zone
Id String - The zone ID of the shared CNAME.
- description string
- Description. You can enter 1-50 characters.
- ipssl
Setting TeoShared Cname Ipssl Setting - IP SSL setting for the shared CNAME.
- string
- The full shared CNAME returned by the API.
- string
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - string
- ID of the resource.
- zone
Id string - The zone ID of the shared CNAME.
- description str
- Description. You can enter 1-50 characters.
- ipssl_
setting TeoShared Cname Ipssl Setting Args - IP SSL setting for the shared CNAME.
- str
- The full shared CNAME returned by the API.
- str
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - str
- ID of the resource.
- zone_
id str - The zone ID of the shared CNAME.
- description String
- Description. You can enter 1-50 characters.
- ipssl
Setting Property Map - IP SSL setting for the shared CNAME.
- String
- The full shared CNAME returned by the API.
- String
- The shared CNAME prefix. Please enter a valid domain prefix, for example
test-apiortest-api.com, limited to 50 characters. - String
- ID of the resource.
- zone
Id String - The zone ID of the shared CNAME.
Supporting Types
TeoSharedCnameIpsslSetting, TeoSharedCnameIpsslSettingArgs
- Associated
Domain string - The domain associated with IP SSL.
- Status string
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- Associated
Domain string - The domain associated with IP SSL.
- Status string
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- associated_
domain string - The domain associated with IP SSL.
- status string
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- associated
Domain String - The domain associated with IP SSL.
- status String
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- associated
Domain string - The domain associated with IP SSL.
- status string
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- associated_
domain str - The domain associated with IP SSL.
- status str
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
- associated
Domain String - The domain associated with IP SSL.
- status String
- Association status. Valid values:
bound(IP SSL configuration bound),binding(IP SSL configuration binding),unbinding(IP SSL configuration unbinding),unbound(IP SSL configuration unbound).
Import
TEO shared CNAME can be imported using the composite id (zone_id#shared_cname), e.g.
$ pulumi import tencentcloud:index/teoSharedCname:TeoSharedCname example zone-39quuimqg8r6#test-api.sai2ig51kaa5.share.dnse2.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
tencentcloudTerraform Provider.
published on Friday, Jun 19, 2026 by tencentcloudstack