1. Packages
  2. Packages
  3. Tencentcloud Provider
  4. API Docs
  5. TeoBindSecurityTemplate
Viewing docs for tencentcloud 1.83.23
published on Friday, Aug 14, 2026 by tencentcloudstack
Viewing docs for tencentcloud 1.83.23
published on Friday, Aug 14, 2026 by tencentcloudstack

    Provides a resource to create a TEO bind security template

    NOTE: If the domain name you input has been bound to a policy template (including site-level protection policies), the default value is to replace the template currently bound to the domain name.

    NOTE: The current resource can only bind/unbind the template and domain name belonging to the same site.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const example = new tencentcloud.TeoBindSecurityTemplate("example", {
        zoneId: "zone-3skoch6ingbw",
        templateId: "temp-3s1pzyam2nxp",
        entity: "tf.example.com",
        operate: "unbind-use-default",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example = tencentcloud.TeoBindSecurityTemplate("example",
        zone_id="zone-3skoch6ingbw",
        template_id="temp-3s1pzyam2nxp",
        entity="tf.example.com",
        operate="unbind-use-default")
    
    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.NewTeoBindSecurityTemplate(ctx, "example", &tencentcloud.TeoBindSecurityTemplateArgs{
    			ZoneId:     pulumi.String("zone-3skoch6ingbw"),
    			TemplateId: pulumi.String("temp-3s1pzyam2nxp"),
    			Entity:     pulumi.String("tf.example.com"),
    			Operate:    pulumi.String("unbind-use-default"),
    		})
    		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.TeoBindSecurityTemplate("example", new()
        {
            ZoneId = "zone-3skoch6ingbw",
            TemplateId = "temp-3s1pzyam2nxp",
            Entity = "tf.example.com",
            Operate = "unbind-use-default",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TeoBindSecurityTemplate;
    import com.pulumi.tencentcloud.TeoBindSecurityTemplateArgs;
    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 TeoBindSecurityTemplate("example", TeoBindSecurityTemplateArgs.builder()
                .zoneId("zone-3skoch6ingbw")
                .templateId("temp-3s1pzyam2nxp")
                .entity("tf.example.com")
                .operate("unbind-use-default")
                .build());
    
        }
    }
    
    resources:
      example:
        type: tencentcloud:TeoBindSecurityTemplate
        properties:
          zoneId: zone-3skoch6ingbw
          templateId: temp-3s1pzyam2nxp
          entity: tf.example.com
          operate: unbind-use-default
    
    Example coming soon!
    

    Create TeoBindSecurityTemplate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new TeoBindSecurityTemplate(name: string, args: TeoBindSecurityTemplateArgs, opts?: CustomResourceOptions);
    @overload
    def TeoBindSecurityTemplate(resource_name: str,
                                args: TeoBindSecurityTemplateArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def TeoBindSecurityTemplate(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                entity: Optional[str] = None,
                                template_id: Optional[str] = None,
                                zone_id: Optional[str] = None,
                                operate: Optional[str] = None,
                                over_write: Optional[bool] = None,
                                teo_bind_security_template_id: Optional[str] = None,
                                timeouts: Optional[TeoBindSecurityTemplateTimeoutsArgs] = None)
    func NewTeoBindSecurityTemplate(ctx *Context, name string, args TeoBindSecurityTemplateArgs, opts ...ResourceOption) (*TeoBindSecurityTemplate, error)
    public TeoBindSecurityTemplate(string name, TeoBindSecurityTemplateArgs args, CustomResourceOptions? opts = null)
    public TeoBindSecurityTemplate(String name, TeoBindSecurityTemplateArgs args)
    public TeoBindSecurityTemplate(String name, TeoBindSecurityTemplateArgs args, CustomResourceOptions options)
    
    type: tencentcloud:TeoBindSecurityTemplate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "tencentcloud_teo_bind_security_template" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args TeoBindSecurityTemplateArgs
    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 TeoBindSecurityTemplateArgs
    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 TeoBindSecurityTemplateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args TeoBindSecurityTemplateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args TeoBindSecurityTemplateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    TeoBindSecurityTemplate 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 TeoBindSecurityTemplate resource accepts the following input properties:

    Entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    TemplateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    ZoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    Operate string
    Bind or unbind operation option. Valid values:

    OverWrite bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    TeoBindSecurityTemplateId string
    ID of the resource.
    Timeouts TeoBindSecurityTemplateTimeouts
    Entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    TemplateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    ZoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    Operate string
    Bind or unbind operation option. Valid values:

    OverWrite bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    TeoBindSecurityTemplateId string
    ID of the resource.
    Timeouts TeoBindSecurityTemplateTimeoutsArgs
    entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    template_id string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    zone_id string
    The site ID to which the policy template to be bound or unbound belongs.
    operate string
    Bind or unbind operation option. Valid values:

    over_write bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    teo_bind_security_template_id string
    ID of the resource.
    timeouts object
    entity String
    The domain name to be bound to the policy template (or unbound from the policy template).
    templateId String
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    zoneId String
    The site ID to which the policy template to be bound or unbound belongs.
    operate String
    Bind or unbind operation option. Valid values:

    overWrite Boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    teoBindSecurityTemplateId String
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeouts
    entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    templateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    zoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    operate string
    Bind or unbind operation option. Valid values:

    overWrite boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    teoBindSecurityTemplateId string
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeouts
    entity str
    The domain name to be bound to the policy template (or unbound from the policy template).
    template_id str
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    zone_id str
    The site ID to which the policy template to be bound or unbound belongs.
    operate str
    Bind or unbind operation option. Valid values:

    over_write bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    teo_bind_security_template_id str
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeoutsArgs
    entity String
    The domain name to be bound to the policy template (or unbound from the policy template).
    templateId String
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    zoneId String
    The site ID to which the policy template to be bound or unbound belongs.
    operate String
    Bind or unbind operation option. Valid values:

    overWrite Boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    teoBindSecurityTemplateId String
    ID of the resource.
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the TeoBindSecurityTemplate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    Id string
    The provider-assigned unique ID for this managed resource.
    Status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    id string
    The provider-assigned unique ID for this managed resource.
    status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    id str
    The provider-assigned unique ID for this managed resource.
    status str
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    id String
    The provider-assigned unique ID for this managed resource.
    status String
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.

    Look up Existing TeoBindSecurityTemplate Resource

    Get an existing TeoBindSecurityTemplate 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?: TeoBindSecurityTemplateState, opts?: CustomResourceOptions): TeoBindSecurityTemplate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            entity: Optional[str] = None,
            operate: Optional[str] = None,
            over_write: Optional[bool] = None,
            status: Optional[str] = None,
            template_id: Optional[str] = None,
            teo_bind_security_template_id: Optional[str] = None,
            timeouts: Optional[TeoBindSecurityTemplateTimeoutsArgs] = None,
            zone_id: Optional[str] = None) -> TeoBindSecurityTemplate
    func GetTeoBindSecurityTemplate(ctx *Context, name string, id IDInput, state *TeoBindSecurityTemplateState, opts ...ResourceOption) (*TeoBindSecurityTemplate, error)
    public static TeoBindSecurityTemplate Get(string name, Input<string> id, TeoBindSecurityTemplateState? state, CustomResourceOptions? opts = null)
    public static TeoBindSecurityTemplate get(String name, Output<String> id, TeoBindSecurityTemplateState state, CustomResourceOptions options)
    resources:  _:    type: tencentcloud:TeoBindSecurityTemplate    get:      id: ${id}
    import {
      to = tencentcloud_teo_bind_security_template.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:
    Entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    Operate string
    Bind or unbind operation option. Valid values:

    OverWrite bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    Status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    TemplateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    TeoBindSecurityTemplateId string
    ID of the resource.
    Timeouts TeoBindSecurityTemplateTimeouts
    ZoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    Entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    Operate string
    Bind or unbind operation option. Valid values:

    OverWrite bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    Status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    TemplateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    TeoBindSecurityTemplateId string
    ID of the resource.
    Timeouts TeoBindSecurityTemplateTimeoutsArgs
    ZoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    operate string
    Bind or unbind operation option. Valid values:

    over_write bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    template_id string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    teo_bind_security_template_id string
    ID of the resource.
    timeouts object
    zone_id string
    The site ID to which the policy template to be bound or unbound belongs.
    entity String
    The domain name to be bound to the policy template (or unbound from the policy template).
    operate String
    Bind or unbind operation option. Valid values:

    overWrite Boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    status String
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    templateId String
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    teoBindSecurityTemplateId String
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeouts
    zoneId String
    The site ID to which the policy template to be bound or unbound belongs.
    entity string
    The domain name to be bound to the policy template (or unbound from the policy template).
    operate string
    Bind or unbind operation option. Valid values:

    overWrite boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    status string
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    templateId string
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    teoBindSecurityTemplateId string
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeouts
    zoneId string
    The site ID to which the policy template to be bound or unbound belongs.
    entity str
    The domain name to be bound to the policy template (or unbound from the policy template).
    operate str
    Bind or unbind operation option. Valid values:

    over_write bool
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    status str
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    template_id str
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    teo_bind_security_template_id str
    ID of the resource.
    timeouts TeoBindSecurityTemplateTimeoutsArgs
    zone_id str
    The site ID to which the policy template to be bound or unbound belongs.
    entity String
    The domain name to be bound to the policy template (or unbound from the policy template).
    operate String
    Bind or unbind operation option. Valid values:

    overWrite Boolean
    If the passed-in domain name is already bound to a policy template (including site-level protection policies), this parameter indicates whether to replace the template. Default value is true. Supported values:

    status String
    Instance configuration delivery status, the possible values are: online: the configuration has taken effect; fail: the configuration failed; process: the configuration is being delivered.
    templateId String
    Specifies the ID of the policy template or the site global policy to be bound or unbound.

    teoBindSecurityTemplateId String
    ID of the resource.
    timeouts Property Map
    zoneId String
    The site ID to which the policy template to be bound or unbound belongs.

    Supporting Types

    TeoBindSecurityTemplateTimeouts, TeoBindSecurityTemplateTimeoutsArgs

    Create string
    Delete string
    Create string
    Delete string
    create string
    delete string
    create String
    delete String
    create string
    delete string
    create str
    delete str
    create String
    delete String

    Import

    TEO bind security template can be imported using the zoneId#templateId#entity, e.g.

    $ pulumi import tencentcloud:index/teoBindSecurityTemplate:TeoBindSecurityTemplate teo_bind_security_template zone-3skoch6ingbw#temp-3s1pzyam2nxp#tf.example.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.23
    published on Friday, Aug 14, 2026 by tencentcloudstack

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial