published on Friday, Aug 14, 2026 by tencentcloudstack
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).
- 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 stringSecurity Template Id - ID of the resource.
- Timeouts
Teo
Bind Security Template Timeouts
- 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 stringSecurity Template Id - ID of the resource.
- Timeouts
Teo
Bind Security Template Timeouts Args
- 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_ stringsecurity_ template_ id - ID of the resource.
- timeouts object
- 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 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: - teo
Bind StringSecurity Template Id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts
- 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 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: - teo
Bind stringSecurity Template Id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts
- 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_ strsecurity_ template_ id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts Args
- 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 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: - teo
Bind StringSecurity Template Id - 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:
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) -> TeoBindSecurityTemplatefunc 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.
- 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 stringSecurity Template Id - ID of the resource.
- Timeouts
Teo
Bind Security Template Timeouts - 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:
- 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 stringSecurity Template Id - ID of the resource.
- Timeouts
Teo
Bind Security Template Timeouts Args - 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:
- 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_ stringsecurity_ template_ id - 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:
- over
Write 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. - template
Id String - Specifies the ID of the policy template or the site global policy to be bound or unbound.
- teo
Bind StringSecurity Template Id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts - 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:
- over
Write 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. - template
Id string - Specifies the ID of the policy template or the site global policy to be bound or unbound.
- teo
Bind stringSecurity Template Id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts - zone
Id 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_ strsecurity_ template_ id - ID of the resource.
- timeouts
Teo
Bind Security Template Timeouts Args - 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:
- over
Write 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. - template
Id String - Specifies the ID of the policy template or the site global policy to be bound or unbound.
- teo
Bind StringSecurity Template Id - ID of the resource.
- timeouts Property Map
- zone
Id String - The site ID to which the policy template to be bound or unbound belongs.
Supporting Types
TeoBindSecurityTemplateTimeouts, TeoBindSecurityTemplateTimeoutsArgs
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
tencentcloudTerraform Provider.
published on Friday, Aug 14, 2026 by tencentcloudstack