pulumiverse / pulumi-grafana

Pulumi provider for Grafana
Apache License 2.0
19 stars 10 forks source link

Ability to fetch all teams #116

Closed CmdrSharp closed 4 months ago

CmdrSharp commented 5 months ago

The provider (and this goes for Terraform as well) currently lacks a way to fetch all teams. It requires specifying a single team to fetch. I would like to see the ability to fetch all teams (with a getTeams function, much like getUsers). The endpoint api/teams/search can be used (with pagination) to accomplish this.

ringods commented 4 months ago

@CmdrSharp since this package bridges the Terraform provider, please submit your request in the TF repo:

https://github.com/grafana/terraform-provider-grafana/issues

Once it is implemented upstream, we can take in the new version of the Grafana TF provider.

CmdrSharp commented 4 months ago

Makes sense! Opened up an issue here: https://github.com/grafana/terraform-provider-grafana/issues/1449

Closing this one.