Skip to content

Commit d12fd6c

Browse files
authored
fix(teo): [127578802] tencentcloud_teo_origin_acl update doc (#3527)
* add * add * add
1 parent 4769cd9 commit d12fd6c

File tree

3 files changed

+64
-32
lines changed

3 files changed

+64
-32
lines changed

.changelog/3527.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:enhancement
2+
datasource/tencentcloud_teo_origin_acl: update doc
3+
```

tencentcloud/services/teo/data_source_tc_teo_origin_acl.go

Lines changed: 25 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -29,45 +29,43 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
2929
Schema: map[string]*schema.Schema{
3030
"l7_hosts": {
3131
Type: schema.TypeSet,
32-
Optional: true,
32+
Computed: true,
3333
Description: "The list of L7 accelerated domains that enable the origin ACLs. This field is empty when origin protection is not enabled.",
3434
Elem: &schema.Schema{
3535
Type: schema.TypeString,
3636
},
3737
},
3838
"l4_proxy_ids": {
3939
Type: schema.TypeSet,
40-
Optional: true,
40+
Computed: true,
4141
Description: "The list of L4 proxy instances that enable the origin ACLs. This field is empty when origin protection is not enabled.",
4242
Elem: &schema.Schema{
4343
Type: schema.TypeString,
4444
},
4545
},
4646
"current_origin_acl": {
4747
Type: schema.TypeList,
48-
Optional: true,
49-
MaxItems: 1,
48+
Computed: true,
5049
Description: "Currently effective origin ACLs. This field is empty when origin protection is not enabled.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
5150
Elem: &schema.Resource{
5251
Schema: map[string]*schema.Schema{
5352
"entire_addresses": {
5453
Type: schema.TypeList,
55-
Optional: true,
56-
MaxItems: 1,
54+
Computed: true,
5755
Description: "IP range details.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
5856
Elem: &schema.Resource{
5957
Schema: map[string]*schema.Schema{
6058
"i_pv4": {
6159
Type: schema.TypeSet,
62-
Optional: true,
60+
Computed: true,
6361
Description: "IPv4 subnet.",
6462
Elem: &schema.Schema{
6563
Type: schema.TypeString,
6664
},
6765
},
6866
"i_pv6": {
6967
Type: schema.TypeSet,
70-
Optional: true,
68+
Computed: true,
7169
Description: "IPv6 subnet.",
7270
Elem: &schema.Schema{
7371
Type: schema.TypeString,
@@ -78,57 +76,55 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
7876
},
7977
"version": {
8078
Type: schema.TypeString,
81-
Optional: true,
79+
Computed: true,
8280
Description: "Version number.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
8381
},
8482
"active_time": {
8583
Type: schema.TypeString,
86-
Optional: true,
84+
Computed: true,
8785
Description: "Version effective time in UTC+8, following the date and time format of the ISO 8601 standard.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
8886
},
8987
"is_planed": {
9088
Type: schema.TypeString,
91-
Optional: true,
89+
Computed: true,
9290
Description: "This parameter is used to record whether \"I've upgraded to the lastest version\" is completed before the origin ACLs version is effective. valid values:.\n- true: specifies that the version is effective and the update to the latest version is confirmed.\n- false: when the version takes effect, the confirmation of updating to the latest origin ACLs are not completed. The IP range is forcibly updated to the latest version in the backend. When this parameter returns false, please confirm in time whether your origin server firewall configuration has been updated to the latest version to avoid origin-pull failure.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
9391
},
9492
},
9593
},
9694
},
9795
"next_origin_acl": {
9896
Type: schema.TypeList,
99-
Optional: true,
100-
MaxItems: 1,
97+
Computed: true,
10198
Description: "When the origin ACLs are updated, this field will be returned with the next version's origin IP range to take effect, including a comparison with the current origin IP range. This field is empty if not updated or origin protection is not enabled.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
10299
Elem: &schema.Resource{
103100
Schema: map[string]*schema.Schema{
104101
"version": {
105102
Type: schema.TypeString,
106-
Optional: true,
103+
Computed: true,
107104
Description: "Version number.",
108105
},
109106
"planned_active_time": {
110107
Type: schema.TypeString,
111-
Optional: true,
108+
Computed: true,
112109
Description: "Version effective time, which adopts UTC+8 and follows the date and time format of the ISO 8601 standard.",
113110
},
114111
"entire_addresses": {
115112
Type: schema.TypeList,
116-
Optional: true,
117-
MaxItems: 1,
113+
Computed: true,
118114
Description: "IP range details.",
119115
Elem: &schema.Resource{
120116
Schema: map[string]*schema.Schema{
121117
"i_pv4": {
122118
Type: schema.TypeSet,
123-
Optional: true,
119+
Computed: true,
124120
Description: "IPv4 subnet.",
125121
Elem: &schema.Schema{
126122
Type: schema.TypeString,
127123
},
128124
},
129125
"i_pv6": {
130126
Type: schema.TypeSet,
131-
Optional: true,
127+
Computed: true,
132128
Description: "IPv6 subnet.",
133129
Elem: &schema.Schema{
134130
Type: schema.TypeString,
@@ -139,22 +135,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
139135
},
140136
"added_addresses": {
141137
Type: schema.TypeList,
142-
Optional: true,
143-
MaxItems: 1,
138+
Computed: true,
144139
Description: "The latest origin IP range newly-added compared with the origin IP range in CurrentOrginACL.",
145140
Elem: &schema.Resource{
146141
Schema: map[string]*schema.Schema{
147142
"i_pv4": {
148143
Type: schema.TypeSet,
149-
Optional: true,
144+
Computed: true,
150145
Description: "IPv4 subnet.",
151146
Elem: &schema.Schema{
152147
Type: schema.TypeString,
153148
},
154149
},
155150
"i_pv6": {
156151
Type: schema.TypeSet,
157-
Optional: true,
152+
Computed: true,
158153
Description: "IPv6 subnet.",
159154
Elem: &schema.Schema{
160155
Type: schema.TypeString,
@@ -165,22 +160,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
165160
},
166161
"removed_addresses": {
167162
Type: schema.TypeList,
168-
Optional: true,
169-
MaxItems: 1,
163+
Computed: true,
170164
Description: "The latest origin IP range deleted compared with the origin IP range in CurrentOrginACL.",
171165
Elem: &schema.Resource{
172166
Schema: map[string]*schema.Schema{
173167
"i_pv4": {
174168
Type: schema.TypeSet,
175-
Optional: true,
169+
Computed: true,
176170
Description: "IPv4 subnet.",
177171
Elem: &schema.Schema{
178172
Type: schema.TypeString,
179173
},
180174
},
181175
"i_pv6": {
182176
Type: schema.TypeSet,
183-
Optional: true,
177+
Computed: true,
184178
Description: "IPv6 subnet.",
185179
Elem: &schema.Schema{
186180
Type: schema.TypeString,
@@ -191,22 +185,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
191185
},
192186
"no_change_addresses": {
193187
Type: schema.TypeList,
194-
Optional: true,
195-
MaxItems: 1,
188+
Computed: true,
196189
Description: "The latest origin IP range is unchanged compared with the origin IP range in CurrentOrginACL.",
197190
Elem: &schema.Resource{
198191
Schema: map[string]*schema.Schema{
199192
"i_pv4": {
200193
Type: schema.TypeSet,
201-
Optional: true,
194+
Computed: true,
202195
Description: "IPv4 subnet.",
203196
Elem: &schema.Schema{
204197
Type: schema.TypeString,
205198
},
206199
},
207200
"i_pv6": {
208201
Type: schema.TypeSet,
209-
Optional: true,
202+
Computed: true,
210203
Description: "IPv6 subnet.",
211204
Elem: &schema.Schema{
212205
Type: schema.TypeString,
@@ -220,7 +213,7 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
220213
},
221214
"status": {
222215
Type: schema.TypeString,
223-
Optional: true,
216+
Computed: true,
224217
Description: "Origin protection status. Vaild values:\n- online: in effect;\n- offline: disabled;\n- updating: configuration deployment in progress.",
225218
},
226219
},

website/docs/d/teo_origin_acl.html.markdown

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,5 +33,41 @@ The following arguments are supported:
3333
In addition to all arguments above, the following attributes are exported:
3434

3535
* `origin_acl_info` - Describes the binding relationship between the l7 acceleration domain/l4 proxy instance and the origin server IP range.
36+
* `current_origin_acl` - Currently effective origin ACLs. This field is empty when origin protection is not enabled.
37+
Note: This field may return null, which indicates a failure to obtain a valid value.
38+
* `active_time` - Version effective time in UTC+8, following the date and time format of the ISO 8601 standard.
39+
Note: This field may return null, which indicates a failure to obtain a valid value.
40+
* `entire_addresses` - IP range details.
41+
Note: This field may return null, which indicates a failure to obtain a valid value.
42+
* `i_pv4` - IPv4 subnet.
43+
* `i_pv6` - IPv6 subnet.
44+
* `is_planed` - This parameter is used to record whether "I've upgraded to the lastest version" is completed before the origin ACLs version is effective. valid values:.
45+
- true: specifies that the version is effective and the update to the latest version is confirmed.
46+
- false: when the version takes effect, the confirmation of updating to the latest origin ACLs are not completed. The IP range is forcibly updated to the latest version in the backend. When this parameter returns false, please confirm in time whether your origin server firewall configuration has been updated to the latest version to avoid origin-pull failure.
47+
Note: This field may return null, which indicates a failure to obtain a valid value.
48+
* `version` - Version number.
49+
Note: This field may return null, which indicates a failure to obtain a valid value.
50+
* `l4_proxy_ids` - The list of L4 proxy instances that enable the origin ACLs. This field is empty when origin protection is not enabled.
51+
* `l7_hosts` - The list of L7 accelerated domains that enable the origin ACLs. This field is empty when origin protection is not enabled.
52+
* `next_origin_acl` - When the origin ACLs are updated, this field will be returned with the next version's origin IP range to take effect, including a comparison with the current origin IP range. This field is empty if not updated or origin protection is not enabled.
53+
Note: This field may return null, which indicates a failure to obtain a valid value.
54+
* `added_addresses` - The latest origin IP range newly-added compared with the origin IP range in CurrentOrginACL.
55+
* `i_pv4` - IPv4 subnet.
56+
* `i_pv6` - IPv6 subnet.
57+
* `entire_addresses` - IP range details.
58+
* `i_pv4` - IPv4 subnet.
59+
* `i_pv6` - IPv6 subnet.
60+
* `no_change_addresses` - The latest origin IP range is unchanged compared with the origin IP range in CurrentOrginACL.
61+
* `i_pv4` - IPv4 subnet.
62+
* `i_pv6` - IPv6 subnet.
63+
* `planned_active_time` - Version effective time, which adopts UTC+8 and follows the date and time format of the ISO 8601 standard.
64+
* `removed_addresses` - The latest origin IP range deleted compared with the origin IP range in CurrentOrginACL.
65+
* `i_pv4` - IPv4 subnet.
66+
* `i_pv6` - IPv6 subnet.
67+
* `version` - Version number.
68+
* `status` - Origin protection status. Vaild values:
69+
- online: in effect;
70+
- offline: disabled;
71+
- updating: configuration deployment in progress.
3672

3773

0 commit comments

Comments
 (0)