diff --git a/docs/data-sources/lb_listener_v3.md b/docs/data-sources/lb_listener_v3.md index 2524c4ea8..f04f9ee0f 100644 --- a/docs/data-sources/lb_listener_v3.md +++ b/docs/data-sources/lb_listener_v3.md @@ -79,12 +79,14 @@ In addition, the following attributes are exported: * `sni_container_refs` - Lists the IDs of SNI certificates (server certificates with domain names) used by the listener. -* `advanced_forwarding` - (Optional) Specifies whether to enable advanced forwarding. +* `advanced_forwarding` - Specifies whether to enable advanced forwarding. -* `sni_match_algo` - (Optional) Specifies how wildcard domain name matches with the SNI certificates +* `sni_match_algo` - Specifies how wildcard domain name matches with the SNI certificates used by the listener. -* `security_policy_id` - (Optional) Specifies the ID of the custom security policy. +* `security_policy_id` - Specifies the ID of the custom security policy. + +* `ip_group` - Specifies the IP address group associated with the listener. * `tags` - Tags key/value pairs to associate with the loadbalancer listener. diff --git a/opentelekomcloud/services/elb/v3/data_source_opentelekomcloud_lb_listener_v3.go b/opentelekomcloud/services/elb/v3/data_source_opentelekomcloud_lb_listener_v3.go index 6035ac83e..3fe79a4d6 100644 --- a/opentelekomcloud/services/elb/v3/data_source_opentelekomcloud_lb_listener_v3.go +++ b/opentelekomcloud/services/elb/v3/data_source_opentelekomcloud_lb_listener_v3.go @@ -151,6 +151,26 @@ func DataSourceListenerV3() *schema.Resource { Type: schema.TypeString, Computed: true, }, + "ip_group": { + Type: schema.TypeList, + Computed: true, + Elem: &schema.Resource{ + Schema: map[string]*schema.Schema{ + "id": { + Type: schema.TypeString, + Computed: true, + }, + "enable": { + Type: schema.TypeBool, + Computed: true, + }, + "type": { + Type: schema.TypeString, + Computed: true, + }, + }, + }, + }, }, } } diff --git a/releasenotes/notes/elb-v3-listener-ds-ipgroup-fix-353ebef349caef6c.yaml b/releasenotes/notes/elb-v3-listener-ds-ipgroup-fix-353ebef349caef6c.yaml new file mode 100644 index 000000000..4e6823168 --- /dev/null +++ b/releasenotes/notes/elb-v3-listener-ds-ipgroup-fix-353ebef349caef6c.yaml @@ -0,0 +1,4 @@ +--- +fixes: + - | + **[ELB]** Fix setting `ip_group` field in ``data/opentelekomcloud_lb_listener_v3`` (`#2126 `_)