From 5db3b4eb02fa709aa71cd8ecee6160bddb9c89e4 Mon Sep 17 00:00:00 2001 From: Wmxs <54929266+WeiMengXS@users.noreply.github.com> Date: Fri, 23 Feb 2024 19:46:24 +0800 Subject: [PATCH] doc(clb): offline resource (#2537) --- tencentcloud/provider.md | 1 - .../vpc/resource_tc_security_group_rule.md | 51 ---------- .../docs/r/security_group_rule.html.markdown | 97 ------------------- website/tencentcloud.erb | 3 - 4 files changed, 152 deletions(-) delete mode 100644 tencentcloud/services/vpc/resource_tc_security_group_rule.md delete mode 100644 website/docs/r/security_group_rule.html.markdown diff --git a/tencentcloud/provider.md b/tencentcloud/provider.md index 66512c528e..b9ee63c0a1 100644 --- a/tencentcloud/provider.md +++ b/tencentcloud/provider.md @@ -1215,7 +1215,6 @@ Virtual Private Cloud(VPC) tencentcloud_vpc_peer_connect_reject_operation tencentcloud_subnet tencentcloud_security_group - tencentcloud_security_group_rule tencentcloud_security_group_rule_set tencentcloud_security_group_lite_rule tencentcloud_address_template diff --git a/tencentcloud/services/vpc/resource_tc_security_group_rule.md b/tencentcloud/services/vpc/resource_tc_security_group_rule.md deleted file mode 100644 index 7cee15ae85..0000000000 --- a/tencentcloud/services/vpc/resource_tc_security_group_rule.md +++ /dev/null @@ -1,51 +0,0 @@ -Provides a resource to create security group rule. - -~> **NOTE:** This resource will be offline and no longer supported, beacause single security rule is hardly ordered. Please use 'tencentcloud_security_group_lite_rule' instead. - -Example Usage - -Source is CIDR ip - -```hcl -resource "tencentcloud_security_group" "sglab_1" { - name = "mysg_1" - description = "favourite sg_1" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_1" { - security_group_id = tencentcloud_security_group.sglab_1.id - type = "ingress" - cidr_ip = "10.0.0.0/16" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - description = "favourite sg rule_1" -} -``` - -Source is a security group id - -```hcl -resource "tencentcloud_security_group" "sglab_2" { - name = "mysg_2" - description = "favourite sg_2" - project_id = 0 -} - -resource "tencentcloud_security_group" "sglab_3" { - name = "mysg_3" - description = "favourite sg_3" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_2" { - security_group_id = tencentcloud_security_group.sglab_2.id - type = "ingress" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - source_sgid = tencentcloud_security_group.sglab_3.id - description = "favourite sg rule_2" -} -``` \ No newline at end of file diff --git a/website/docs/r/security_group_rule.html.markdown b/website/docs/r/security_group_rule.html.markdown deleted file mode 100644 index 1bf461be5d..0000000000 --- a/website/docs/r/security_group_rule.html.markdown +++ /dev/null @@ -1,97 +0,0 @@ ---- -subcategory: "Virtual Private Cloud(VPC)" -layout: "tencentcloud" -page_title: "TencentCloud: tencentcloud_security_group_rule" -sidebar_current: "docs-tencentcloud-resource-security_group_rule" -description: |- - Provides a resource to create security group rule. ---- - -# tencentcloud_security_group_rule - -Provides a resource to create security group rule. - -~> **NOTE:** This resource will be offline and no longer supported, beacause single security rule is hardly ordered. Please use 'tencentcloud_security_group_lite_rule' instead. - -## Example Usage - -### Source is CIDR ip - -```hcl -resource "tencentcloud_security_group" "sglab_1" { - name = "mysg_1" - description = "favourite sg_1" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_1" { - security_group_id = tencentcloud_security_group.sglab_1.id - type = "ingress" - cidr_ip = "10.0.0.0/16" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - description = "favourite sg rule_1" -} -``` - -### Source is a security group id - -```hcl -resource "tencentcloud_security_group" "sglab_2" { - name = "mysg_2" - description = "favourite sg_2" - project_id = 0 -} - -resource "tencentcloud_security_group" "sglab_3" { - name = "mysg_3" - description = "favourite sg_3" - project_id = 0 -} - -resource "tencentcloud_security_group_rule" "sglab_2" { - security_group_id = tencentcloud_security_group.sglab_2.id - type = "ingress" - ip_protocol = "TCP" - port_range = "80" - policy = "ACCEPT" - source_sgid = tencentcloud_security_group.sglab_3.id - description = "favourite sg rule_2" -} -``` - -## Argument Reference - -The following arguments are supported: - -* `policy` - (Required, String, ForceNew) Rule policy of security group. Valid values: `ACCEPT` and `DROP`. -* `security_group_id` - (Required, String, ForceNew) ID of the security group to be queried. -* `type` - (Required, String, ForceNew) Type of the security group rule. Valid values: `ingress` and `egress`. -* `address_template` - (Optional, List, ForceNew) ID of the address template, and confilicts with `source_sgid` and `cidr_ip`. -* `cidr_ip` - (Optional, String, ForceNew) An IP address network or segment, and conflict with `source_sgid` and `address_template`. -* `description` - (Optional, String, ForceNew) Description of the security group rule. -* `ip_protocol` - (Optional, String, ForceNew) Type of IP protocol. Valid values: `TCP`, `UDP` and `ICMP`. Default to all types protocol, and conflicts with `protocol_template`. -* `policy_index` - (Optional, Int, ForceNew) The security group rule index number, the value of which dynamically changes as the security group rule changes. -* `port_range` - (Optional, String, ForceNew) Range of the port. The available value can be one, multiple or one segment. E.g. `80`, `80,90` and `80-90`. Default to all ports, and confilicts with `protocol_template`. -* `protocol_template` - (Optional, List, ForceNew) ID of the address template, and conflict with `ip_protocol`, `port_range`. -* `source_sgid` - (Optional, String, ForceNew) ID of the nested security group, and conflicts with `cidr_ip` and `address_template`. - -The `address_template` object supports the following: - -* `group_id` - (Optional, String, ForceNew) Address template group ID, conflicts with `template_id`. -* `template_id` - (Optional, String, ForceNew) Address template ID, conflicts with `group_id`. - -The `protocol_template` object supports the following: - -* `group_id` - (Optional, String, ForceNew) Address template group ID, conflicts with `template_id`. -* `template_id` - (Optional, String, ForceNew) Address template ID, conflicts with `group_id`. - -## Attributes Reference - -In addition to all arguments above, the following attributes are exported: - -* `id` - ID of the resource. - - - diff --git a/website/tencentcloud.erb b/website/tencentcloud.erb index e6c276e065..3d41d3377f 100644 --- a/website/tencentcloud.erb +++ b/website/tencentcloud.erb @@ -6056,9 +6056,6 @@