From eaea461d0c9512d812bbb6f830a4249fffec2d18 Mon Sep 17 00:00:00 2001 From: michaelfmnk Date: Wed, 31 Jul 2024 13:27:44 +0200 Subject: [PATCH] Added connect_auth field support in user_group datasource --- cloudconnexa/data_source_user_group.go | 6 ++++++ docs/data-sources/user_group.md | 1 + 2 files changed, 7 insertions(+) diff --git a/cloudconnexa/data_source_user_group.go b/cloudconnexa/data_source_user_group.go index 35b6fb1..8bc071c 100644 --- a/cloudconnexa/data_source_user_group.go +++ b/cloudconnexa/data_source_user_group.go @@ -49,6 +49,11 @@ func dataSourceUserGroup() *schema.Resource { }, Description: "The IPV4 and IPV6 addresses of the subnets associated with this user group.", }, + "connect_auth": { + Type: schema.TypeString, + Computed: true, + Description: "The type of connection authentication. Valid values are `AUTH`, `AUTO`, or `STRICT_AUTH`.", + }, }, } } @@ -70,5 +75,6 @@ func dataSourceUserGroupRead(ctx context.Context, d *schema.ResourceData, m inte d.Set("internet_access", userGroup.InternetAccess) d.Set("max_device", userGroup.MaxDevice) d.Set("system_subnets", userGroup.SystemSubnets) + d.Set("connect_auth", userGroup.ConnectAuth) return diags } diff --git a/docs/data-sources/user_group.md b/docs/data-sources/user_group.md index bc78035..f9a1def 100644 --- a/docs/data-sources/user_group.md +++ b/docs/data-sources/user_group.md @@ -27,3 +27,4 @@ Use an `cloudconnexa_user_group` data source to read an CloudConnexa user group. - `system_subnets` (List of String) The IPV4 and IPV6 addresses of the subnets associated with this user group. - `user_group_id` (String) The user group ID. - `vpn_region_ids` (List of String) The list of VPN region IDs this user group is associated with. +- `connect_auth` (String) The type of connection authentication. Valid values are `AUTH`, `AUTO`, or `STRICT_AUTH`.