tencentcloud.TeoBindSecurityTemplate
Explore with Pulumi AI
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 teoBindSecurityTemplate = new tencentcloud.TeoBindSecurityTemplate("teoBindSecurityTemplate", {
entity: "aaa.makn.cn",
operate: "unbind-use-default",
templateId: "temp-7dr7dm78",
zoneId: "zone-39quuimqg8r6",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
teo_bind_security_template = tencentcloud.TeoBindSecurityTemplate("teoBindSecurityTemplate",
entity="aaa.makn.cn",
operate="unbind-use-default",
template_id="temp-7dr7dm78",
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.NewTeoBindSecurityTemplate(ctx, "teoBindSecurityTemplate", &tencentcloud.TeoBindSecurityTemplateArgs{
Entity: pulumi.String("aaa.makn.cn"),
Operate: pulumi.String("unbind-use-default"),
TemplateId: pulumi.String("temp-7dr7dm78"),
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 teoBindSecurityTemplate = new Tencentcloud.TeoBindSecurityTemplate("teoBindSecurityTemplate", new()
{
Entity = "aaa.makn.cn",
Operate = "unbind-use-default",
TemplateId = "temp-7dr7dm78",
ZoneId = "zone-39quuimqg8r6",
});
});
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 teoBindSecurityTemplate = new TeoBindSecurityTemplate("teoBindSecurityTemplate", TeoBindSecurityTemplateArgs.builder()
.entity("aaa.makn.cn")
.operate("unbind-use-default")
.templateId("temp-7dr7dm78")
.zoneId("zone-39quuimqg8r6")
.build());
}
}
resources:
teoBindSecurityTemplate:
type: tencentcloud:TeoBindSecurityTemplate
properties:
entity: aaa.makn.cn
operate: unbind-use-default
templateId: temp-7dr7dm78
zoneId: zone-39quuimqg8r6
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,
teo_bind_security_template_id: Optional[str] = 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.
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
- List of domain names to bind to/unbind from a policy template.
- Template
Id string Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- Zone
Id string - Site ID of the policy template to be bound to or unbound from.
- Operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - Teo
Bind stringSecurity Template Id - ID of the resource.
- Entity string
- List of domain names to bind to/unbind from a policy template.
- Template
Id string Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- Zone
Id string - Site ID of the policy template to be bound to or unbound from.
- Operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - Teo
Bind stringSecurity Template Id - ID of the resource.
- entity String
- List of domain names to bind to/unbind from a policy template.
- template
Id String Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- zone
Id String - Site ID of the policy template to be bound to or unbound from.
- operate String
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - teo
Bind StringSecurity Template Id - ID of the resource.
- entity string
- List of domain names to bind to/unbind from a policy template.
- template
Id string Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- zone
Id string - Site ID of the policy template to be bound to or unbound from.
- operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - teo
Bind stringSecurity Template Id - ID of the resource.
- entity str
- List of domain names to bind to/unbind from a policy template.
- template_
id str Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- zone_
id str - Site ID of the policy template to be bound to or unbound from.
- operate str
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - teo_
bind_ strsecurity_ template_ id - ID of the resource.
- entity String
- List of domain names to bind to/unbind from a policy template.
- template
Id String Specifies the ID of the policy template or the site global policy to be bound or unbound.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- zone
Id String - Site ID of the policy template to be bound to or unbound from.
- operate String
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - teo
Bind StringSecurity Template Id - ID of the resource.
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,
status: Optional[str] = None,
template_id: Optional[str] = None,
teo_bind_security_template_id: Optional[str] = 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}
- 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
- List of domain names to bind to/unbind from a policy template.
- Operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- Teo
Bind stringSecurity Template Id - ID of the resource.
- Zone
Id string - Site ID of the policy template to be bound to or unbound from.
- Entity string
- List of domain names to bind to/unbind from a policy template.
- Operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- Teo
Bind stringSecurity Template Id - ID of the resource.
- Zone
Id string - Site ID of the policy template to be bound to or unbound from.
- entity String
- List of domain names to bind to/unbind from a policy template.
- operate String
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- teo
Bind StringSecurity Template Id - ID of the resource.
- zone
Id String - Site ID of the policy template to be bound to or unbound from.
- entity string
- List of domain names to bind to/unbind from a policy template.
- operate string
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- teo
Bind stringSecurity Template Id - ID of the resource.
- zone
Id string - Site ID of the policy template to be bound to or unbound from.
- entity str
- List of domain names to bind to/unbind from a policy template.
- operate str
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- teo_
bind_ strsecurity_ template_ id - ID of the resource.
- zone_
id str - Site ID of the policy template to be bound to or unbound from.
- entity String
- List of domain names to bind to/unbind from a policy template.
- operate String
- Unbind operation option. valid values:
unbind-keep-policy
: unbind a domain name from the policy template while retaining the current policy.unbind-use-default
: unbind a domain name from the policy template and use the default blank policy. default value:unbind-keep-policy
. - 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.
Note: After unbinding, the domain name will use an independent policy and rule quota will be calculated separately. Please make sure there is sufficient rule quota before unbinding.
- teo
Bind StringSecurity Template Id - ID of the resource.
- zone
Id String - Site ID of the policy template to be bound to or unbound from.
Import
teo application_proxy_rule can be imported using the zoneId#templateId#entity, e.g.
$ pulumi import tencentcloud:index/teoBindSecurityTemplate:TeoBindSecurityTemplate teo_bind_security_template zone-39quuimqg8r6#temp-7dr7dm78#aaa.makn.cn
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.