Files
terraform-provider-bitbucke…/docusaurus/docs/data_groups.md
2019-10-14 15:50:22 -07:00

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.