Skip to content

Commit

Permalink
Added connect_auth field support in user_group datasource
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfmnk authored and sahaqaa committed Jul 31, 2024
1 parent c8b4373 commit eaea461
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions cloudconnexa/data_source_user_group.go
Original file line number Diff line number Diff line change
Expand Up @@ -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`.",
},
},
}
}
Expand All @@ -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
}
1 change: 1 addition & 0 deletions docs/data-sources/user_group.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit eaea461

Please sign in to comment.