Skip to content

Commit e363afc

Browse files
committed
feat(teo): [124357710]support teo_bind_security_template
1 parent 8b798f5 commit e363afc

File tree

2 files changed

+57
-0
lines changed

2 files changed

+57
-0
lines changed
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
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+

website/tencentcloud.erb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5327,6 +5327,9 @@
53275327
<li>
53285328
<a href="/docs/providers/tencentcloud/r/teo_application_proxy_rule.html">tencentcloud_teo_application_proxy_rule</a>
53295329
</li>
5330+
<li>
5331+
<a href="/docs/providers/tencentcloud/r/teo_bind_security_template.html">tencentcloud_teo_bind_security_template</a>
5332+
</li>
53305333
<li>
53315334
<a href="/docs/providers/tencentcloud/r/teo_certificate_config.html">tencentcloud_teo_certificate_config</a>
53325335
</li>

0 commit comments

Comments
 (0)