1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoSharedCname
Viewing docs for tencentcloud 1.83.4
published on Monday, Jun 22, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.4
published on Monday, Jun 22, 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:

    SharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    ZoneId string
    The zone ID of the shared CNAME.
    Description string
    Description. You can enter 1-50 characters.
    IpsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    TeoSharedCnameId string
    ID of the resource.
    SharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    ZoneId string
    The zone ID of the shared CNAME.
    Description string
    Description. You can enter 1-50 characters.
    IpsslSetting TeoSharedCnameIpsslSettingArgs
    IP SSL setting for the shared CNAME.
    TeoSharedCnameId string
    ID of the resource.
    shared_cname_prefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-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.
    teo_shared_cname_id string
    ID of the resource.
    sharedCnamePrefix String
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    zoneId String
    The zone ID of the shared CNAME.
    description String
    Description. You can enter 1-50 characters.
    ipsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    teoSharedCnameId String
    ID of the resource.
    sharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    zoneId string
    The zone ID of the shared CNAME.
    description string
    Description. You can enter 1-50 characters.
    ipsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    teoSharedCnameId string
    ID of the resource.
    shared_cname_prefix str
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-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 TeoSharedCnameIpsslSettingArgs
    IP SSL setting for the shared CNAME.
    teo_shared_cname_id str
    ID of the resource.
    sharedCnamePrefix String
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    zoneId String
    The zone ID of the shared CNAME.
    description String
    Description. You can enter 1-50 characters.
    ipsslSetting Property Map
    IP SSL setting for the shared CNAME.
    teoSharedCnameId 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.
    SharedCname string
    The full shared CNAME returned by the API.
    Id string
    The provider-assigned unique ID for this managed resource.
    SharedCname string
    The full shared CNAME returned by the API.
    id string
    The provider-assigned unique ID for this managed resource.
    shared_cname string
    The full shared CNAME returned by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    sharedCname String
    The full shared CNAME returned by the API.
    id string
    The provider-assigned unique ID for this managed resource.
    sharedCname string
    The full shared CNAME returned by the API.
    id str
    The provider-assigned unique ID for this managed resource.
    shared_cname str
    The full shared CNAME returned by the API.
    id String
    The provider-assigned unique ID for this managed resource.
    sharedCname 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) -> TeoSharedCname
    func 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.
    The following state arguments are supported:
    Description string
    Description. You can enter 1-50 characters.
    IpsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    SharedCname string
    The full shared CNAME returned by the API.
    SharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    TeoSharedCnameId string
    ID of the resource.
    ZoneId string
    The zone ID of the shared CNAME.
    Description string
    Description. You can enter 1-50 characters.
    IpsslSetting TeoSharedCnameIpsslSettingArgs
    IP SSL setting for the shared CNAME.
    SharedCname string
    The full shared CNAME returned by the API.
    SharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    TeoSharedCnameId string
    ID of the resource.
    ZoneId 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.
    shared_cname string
    The full shared CNAME returned by the API.
    shared_cname_prefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    teo_shared_cname_id string
    ID of the resource.
    zone_id string
    The zone ID of the shared CNAME.
    description String
    Description. You can enter 1-50 characters.
    ipsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    sharedCname String
    The full shared CNAME returned by the API.
    sharedCnamePrefix String
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    teoSharedCnameId String
    ID of the resource.
    zoneId String
    The zone ID of the shared CNAME.
    description string
    Description. You can enter 1-50 characters.
    ipsslSetting TeoSharedCnameIpsslSetting
    IP SSL setting for the shared CNAME.
    sharedCname string
    The full shared CNAME returned by the API.
    sharedCnamePrefix string
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    teoSharedCnameId string
    ID of the resource.
    zoneId string
    The zone ID of the shared CNAME.
    description str
    Description. You can enter 1-50 characters.
    ipssl_setting TeoSharedCnameIpsslSettingArgs
    IP SSL setting for the shared CNAME.
    shared_cname str
    The full shared CNAME returned by the API.
    shared_cname_prefix str
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    teo_shared_cname_id str
    ID of the resource.
    zone_id str
    The zone ID of the shared CNAME.
    description String
    Description. You can enter 1-50 characters.
    ipsslSetting Property Map
    IP SSL setting for the shared CNAME.
    sharedCname String
    The full shared CNAME returned by the API.
    sharedCnamePrefix String
    The shared CNAME prefix. Please enter a valid domain prefix, for example test-api or test-api.com, limited to 50 characters.
    teoSharedCnameId String
    ID of the resource.
    zoneId String
    The zone ID of the shared CNAME.

    Supporting Types

    TeoSharedCnameIpsslSetting, TeoSharedCnameIpsslSettingArgs

    AssociatedDomain 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).
    AssociatedDomain 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).
    associatedDomain 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).
    associatedDomain 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).
    associatedDomain 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 tencentcloud Terraform Provider.
    Viewing docs for tencentcloud 1.83.4
    published on Monday, Jun 22, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial