Skip to content

Commit c2e84a5

Browse files
committed
add
1 parent d4352d9 commit c2e84a5

File tree

2 files changed

+61
-25
lines changed

2 files changed

+61
-25
lines changed

tencentcloud/services/teo/data_source_tc_teo_origin_acl.go

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,45 +29,45 @@ 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,
48+
Computed: true,
4949
MaxItems: 1,
5050
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.",
5151
Elem: &schema.Resource{
5252
Schema: map[string]*schema.Schema{
5353
"entire_addresses": {
5454
Type: schema.TypeList,
55-
Optional: true,
55+
Computed: true,
5656
MaxItems: 1,
5757
Description: "IP range details.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
5858
Elem: &schema.Resource{
5959
Schema: map[string]*schema.Schema{
6060
"i_pv4": {
6161
Type: schema.TypeSet,
62-
Optional: true,
62+
Computed: true,
6363
Description: "IPv4 subnet.",
6464
Elem: &schema.Schema{
6565
Type: schema.TypeString,
6666
},
6767
},
6868
"i_pv6": {
6969
Type: schema.TypeSet,
70-
Optional: true,
70+
Computed: true,
7171
Description: "IPv6 subnet.",
7272
Elem: &schema.Schema{
7373
Type: schema.TypeString,
@@ -78,57 +78,57 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
7878
},
7979
"version": {
8080
Type: schema.TypeString,
81-
Optional: true,
81+
Computed: true,
8282
Description: "Version number.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
8383
},
8484
"active_time": {
8585
Type: schema.TypeString,
86-
Optional: true,
86+
Computed: true,
8787
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.",
8888
},
8989
"is_planed": {
9090
Type: schema.TypeString,
91-
Optional: true,
91+
Computed: true,
9292
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.",
9393
},
9494
},
9595
},
9696
},
9797
"next_origin_acl": {
9898
Type: schema.TypeList,
99-
Optional: true,
99+
Computed: true,
100100
MaxItems: 1,
101101
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.",
102102
Elem: &schema.Resource{
103103
Schema: map[string]*schema.Schema{
104104
"version": {
105105
Type: schema.TypeString,
106-
Optional: true,
106+
Computed: true,
107107
Description: "Version number.",
108108
},
109109
"planned_active_time": {
110110
Type: schema.TypeString,
111-
Optional: true,
111+
Computed: true,
112112
Description: "Version effective time, which adopts UTC+8 and follows the date and time format of the ISO 8601 standard.",
113113
},
114114
"entire_addresses": {
115115
Type: schema.TypeList,
116-
Optional: true,
116+
Computed: true,
117117
MaxItems: 1,
118118
Description: "IP range details.",
119119
Elem: &schema.Resource{
120120
Schema: map[string]*schema.Schema{
121121
"i_pv4": {
122122
Type: schema.TypeSet,
123-
Optional: true,
123+
Computed: true,
124124
Description: "IPv4 subnet.",
125125
Elem: &schema.Schema{
126126
Type: schema.TypeString,
127127
},
128128
},
129129
"i_pv6": {
130130
Type: schema.TypeSet,
131-
Optional: true,
131+
Computed: true,
132132
Description: "IPv6 subnet.",
133133
Elem: &schema.Schema{
134134
Type: schema.TypeString,
@@ -139,22 +139,22 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
139139
},
140140
"added_addresses": {
141141
Type: schema.TypeList,
142-
Optional: true,
142+
Computed: true,
143143
MaxItems: 1,
144144
Description: "The latest origin IP range newly-added compared with the origin IP range in CurrentOrginACL.",
145145
Elem: &schema.Resource{
146146
Schema: map[string]*schema.Schema{
147147
"i_pv4": {
148148
Type: schema.TypeSet,
149-
Optional: true,
149+
Computed: true,
150150
Description: "IPv4 subnet.",
151151
Elem: &schema.Schema{
152152
Type: schema.TypeString,
153153
},
154154
},
155155
"i_pv6": {
156156
Type: schema.TypeSet,
157-
Optional: true,
157+
Computed: true,
158158
Description: "IPv6 subnet.",
159159
Elem: &schema.Schema{
160160
Type: schema.TypeString,
@@ -165,22 +165,22 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
165165
},
166166
"removed_addresses": {
167167
Type: schema.TypeList,
168-
Optional: true,
168+
Computed: true,
169169
MaxItems: 1,
170170
Description: "The latest origin IP range deleted compared with the origin IP range in CurrentOrginACL.",
171171
Elem: &schema.Resource{
172172
Schema: map[string]*schema.Schema{
173173
"i_pv4": {
174174
Type: schema.TypeSet,
175-
Optional: true,
175+
Computed: true,
176176
Description: "IPv4 subnet.",
177177
Elem: &schema.Schema{
178178
Type: schema.TypeString,
179179
},
180180
},
181181
"i_pv6": {
182182
Type: schema.TypeSet,
183-
Optional: true,
183+
Computed: true,
184184
Description: "IPv6 subnet.",
185185
Elem: &schema.Schema{
186186
Type: schema.TypeString,
@@ -191,22 +191,22 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
191191
},
192192
"no_change_addresses": {
193193
Type: schema.TypeList,
194-
Optional: true,
194+
Computed: true,
195195
MaxItems: 1,
196196
Description: "The latest origin IP range is unchanged compared with the origin IP range in CurrentOrginACL.",
197197
Elem: &schema.Resource{
198198
Schema: map[string]*schema.Schema{
199199
"i_pv4": {
200200
Type: schema.TypeSet,
201-
Optional: true,
201+
Computed: true,
202202
Description: "IPv4 subnet.",
203203
Elem: &schema.Schema{
204204
Type: schema.TypeString,
205205
},
206206
},
207207
"i_pv6": {
208208
Type: schema.TypeSet,
209-
Optional: true,
209+
Computed: true,
210210
Description: "IPv6 subnet.",
211211
Elem: &schema.Schema{
212212
Type: schema.TypeString,
@@ -220,7 +220,7 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
220220
},
221221
"status": {
222222
Type: schema.TypeString,
223-
Optional: true,
223+
Computed: true,
224224
Description: "Origin protection status. Vaild values:\n- online: in effect;\n- offline: disabled;\n- updating: configuration deployment in progress.",
225225
},
226226
},

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)