Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .changelog/3527.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
```release-note:enhancement
datasource/tencentcloud_teo_origin_acl: update doc
```
57 changes: 25 additions & 32 deletions tencentcloud/services/teo/data_source_tc_teo_origin_acl.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,45 +29,43 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
Schema: map[string]*schema.Schema{
"l7_hosts": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "The list of L7 accelerated domains that enable the origin ACLs. This field is empty when origin protection is not enabled.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"l4_proxy_ids": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "The list of L4 proxy instances that enable the origin ACLs. This field is empty when origin protection is not enabled.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"current_origin_acl": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
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.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"entire_addresses": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
Description: "IP range details.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"i_pv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv4 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"i_pv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv6 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -78,57 +76,55 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
},
"version": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Version number.\nNote: This field may return null, which indicates a failure to obtain a valid value.",
},
"active_time": {
Type: schema.TypeString,
Optional: true,
Computed: true,
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.",
},
"is_planed": {
Type: schema.TypeString,
Optional: true,
Computed: true,
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.",
},
},
},
},
"next_origin_acl": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
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.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"version": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Version number.",
},
"planned_active_time": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Version effective time, which adopts UTC+8 and follows the date and time format of the ISO 8601 standard.",
},
"entire_addresses": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
Description: "IP range details.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"i_pv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv4 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"i_pv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv6 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -139,22 +135,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
},
"added_addresses": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
Description: "The latest origin IP range newly-added compared with the origin IP range in CurrentOrginACL.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"i_pv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv4 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"i_pv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv6 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -165,22 +160,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
},
"removed_addresses": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
Description: "The latest origin IP range deleted compared with the origin IP range in CurrentOrginACL.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"i_pv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv4 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"i_pv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv6 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -191,22 +185,21 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
},
"no_change_addresses": {
Type: schema.TypeList,
Optional: true,
MaxItems: 1,
Computed: true,
Description: "The latest origin IP range is unchanged compared with the origin IP range in CurrentOrginACL.",
Elem: &schema.Resource{
Schema: map[string]*schema.Schema{
"i_pv4": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv4 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
},
},
"i_pv6": {
Type: schema.TypeSet,
Optional: true,
Computed: true,
Description: "IPv6 subnet.",
Elem: &schema.Schema{
Type: schema.TypeString,
Expand All @@ -220,7 +213,7 @@ func DataSourceTencentCloudTeoOriginAcl() *schema.Resource {
},
"status": {
Type: schema.TypeString,
Optional: true,
Computed: true,
Description: "Origin protection status. Vaild values:\n- online: in effect;\n- offline: disabled;\n- updating: configuration deployment in progress.",
},
},
Expand Down
36 changes: 36 additions & 0 deletions website/docs/d/teo_origin_acl.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,41 @@ The following arguments are supported:
In addition to all arguments above, the following attributes are exported:

* `origin_acl_info` - Describes the binding relationship between the l7 acceleration domain/l4 proxy instance and the origin server IP range.
* `current_origin_acl` - Currently effective origin ACLs. This field is empty when origin protection is not enabled.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `active_time` - Version effective time in UTC+8, following the date and time format of the ISO 8601 standard.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `entire_addresses` - IP range details.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `i_pv4` - IPv4 subnet.
* `i_pv6` - IPv6 subnet.
* `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:.
- true: specifies that the version is effective and the update to the latest version is confirmed.
- 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.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `version` - Version number.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `l4_proxy_ids` - The list of L4 proxy instances that enable the origin ACLs. This field is empty when origin protection is not enabled.
* `l7_hosts` - The list of L7 accelerated domains that enable the origin ACLs. This field is empty when origin protection is not enabled.
* `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.
Note: This field may return null, which indicates a failure to obtain a valid value.
* `added_addresses` - The latest origin IP range newly-added compared with the origin IP range in CurrentOrginACL.
* `i_pv4` - IPv4 subnet.
* `i_pv6` - IPv6 subnet.
* `entire_addresses` - IP range details.
* `i_pv4` - IPv4 subnet.
* `i_pv6` - IPv6 subnet.
* `no_change_addresses` - The latest origin IP range is unchanged compared with the origin IP range in CurrentOrginACL.
* `i_pv4` - IPv4 subnet.
* `i_pv6` - IPv6 subnet.
* `planned_active_time` - Version effective time, which adopts UTC+8 and follows the date and time format of the ISO 8601 standard.
* `removed_addresses` - The latest origin IP range deleted compared with the origin IP range in CurrentOrginACL.
* `i_pv4` - IPv4 subnet.
* `i_pv6` - IPv6 subnet.
* `version` - Version number.
* `status` - Origin protection status. Vaild values:
- online: in effect;
- offline: disabled;
- updating: configuration deployment in progress.


Loading