|
| 1 | +--- |
| 2 | +subcategory: "TencentCloud EdgeOne(TEO)" |
| 3 | +layout: "tencentcloud" |
| 4 | +page_title: "TencentCloud: tencentcloud_teo_bind_security_template" |
| 5 | +sidebar_current: "docs-tencentcloud-resource-teo_bind_security_template" |
| 6 | +description: |- |
| 7 | + Provides a resource to create a teo bind_security_template |
| 8 | +--- |
| 9 | + |
| 10 | +# tencentcloud_teo_bind_security_template |
| 11 | + |
| 12 | +Provides a resource to create a teo bind_security_template |
| 13 | + |
| 14 | +~> **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. |
| 15 | +~> **NOTE:** The current resource can only bind/unbind the template and domain name belonging to the same site. |
| 16 | + |
| 17 | +## Example Usage |
| 18 | + |
| 19 | +```hcl |
| 20 | +resource "tencentcloud_teo_bind_security_template" "teo_bind_security_template" { |
| 21 | +} |
| 22 | +``` |
| 23 | + |
| 24 | +## Argument Reference |
| 25 | + |
| 26 | +The following arguments are supported: |
| 27 | + |
| 28 | +* `entity` - (Required, String, ForceNew) List of domain names to bind to/unbind from a policy template. |
| 29 | +* `operate` - (Required, String) Bind or unbind operation option. valid values:. |
| 30 | +<Li>`bind`: bind the domain name to the policy template.</li>. |
| 31 | +<li>unbind-keep-policy: unbind a domain name from the policy template while retaining the current policy.</li>. |
| 32 | +<li>unbind-use-default: unbind a domain name from the policy template and use the default blank policy.</li> note: the unbinding operation currently only supports unbinding a single domain name. that is, when the Operate parameter value is unbind-keep-policy or unbind-use-default, the Entities parameter list only supports filling in one domain name. |
| 33 | +* `template_id` - (Required, String, ForceNew) Specifies the ID of the policy template or the site global policy to be bound or unbound. |
| 34 | +<li>To bind to a policy template, or unbind from it, specify the policy template ID.</li>. |
| 35 | +<li>To bind to the site's global policy, or unbind from it, use the @ZoneLevel@domain parameter value.</li>. |
| 36 | + |
| 37 | +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. |
| 38 | +* `zone_id` - (Required, String, ForceNew) Site ID of the policy template to be bound to or unbound from. |
| 39 | + |
| 40 | +## Attributes Reference |
| 41 | + |
| 42 | +In addition to all arguments above, the following attributes are exported: |
| 43 | + |
| 44 | +* `id` - ID of the resource. |
| 45 | +* `status` - Instance configuration delivery status, the possible values are: `online`: the configuration has taken effect; `fail`: the configuration failed; `process`: the configuration is being delivered. |
| 46 | + |
| 47 | + |
| 48 | +## Import |
| 49 | + |
| 50 | +teo application_proxy_rule can be imported using the zoneId#templateId, e.g. |
| 51 | +``` |
| 52 | +terraform import tencentcloud_teo_bind_security_template.teo_bind_security_template zone-2983wizgxqvm#templateId |
| 53 | +``` |
| 54 | + |
0 commit comments