diff --git a/docs/data-sources/network_resource.md b/docs/data-sources/network_resource.md index b51efa7..4a55b80 100644 --- a/docs/data-sources/network_resource.md +++ b/docs/data-sources/network_resource.md @@ -40,4 +40,4 @@ data "netbird_network_resource" "example" { - `address` (String) Network resource address (either a direct host like 1.1.1.1 or 1.1.1.1/32, or a subnet like 192.168.178.0/24, or domains like example.com and *.example.com) - `description` (String) NetworkResource Description - `enabled` (Boolean) NetworkResource status -- `groups` (List of String) Group IDs containing the resource +- `groups` (Set of String) Group IDs containing the resource diff --git a/internal/provider/network_resource_data_source.go b/internal/provider/network_resource_data_source.go index 3e49de5..8d8e9f1 100644 --- a/internal/provider/network_resource_data_source.go +++ b/internal/provider/network_resource_data_source.go @@ -61,7 +61,7 @@ func (d *NetworkResourceDataSource) Schema(ctx context.Context, req datasource.S MarkdownDescription: "NetworkResource status", Computed: true, }, - "groups": schema.ListAttribute{ + "groups": schema.SetAttribute{ MarkdownDescription: "Group IDs containing the resource", Computed: true, ElementType: types.StringType,