mirror of
https://github.com/ysoftdevs/terraform-provider-bitbucketserver.git
synced 2026-01-16 16:47:21 +01:00
31 lines
587 B
Markdown
31 lines
587 B
Markdown
---
|
|
id: data_bitbucketserver_groups
|
|
title: bitbucketserver_groups
|
|
---
|
|
|
|
This data source allows you to retrieve a list of groups, optionally matching the supplied `filter`.
|
|
|
|
## Example Usage
|
|
|
|
```hcl
|
|
data "bitbucketserver_groups" "all" { }
|
|
```
|
|
|
|
### Applying a Custom Filter
|
|
|
|
Find any groups starting with `dev`.
|
|
|
|
```hcl
|
|
data "bitbucketserver_groups" "dev-groups" {
|
|
filter = "dev"
|
|
}
|
|
```
|
|
|
|
## Argument Reference
|
|
|
|
* `filter` - Optional. If specified only group names containing the supplied string will be returned.
|
|
|
|
## Attribute Reference
|
|
|
|
* `groups` - List of maps containing `name` key.
|