Viewing docs for Grafana v2.30.0
published on Thursday, May 14, 2026 by pulumiverse
published on Thursday, May 14, 2026 by pulumiverse
Viewing docs for Grafana v2.30.0
published on Thursday, May 14, 2026 by pulumiverse
published on Thursday, May 14, 2026 by pulumiverse
Fetches a list of teams from Grafana, optionally filtered by a search keyword.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const all = grafana.oss.getTeams({});
const dev = grafana.oss.getTeams({
query: "dev",
});
import pulumi
import pulumi_grafana as grafana
all = grafana.oss.get_teams()
dev = grafana.oss.get_teams(query="dev")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-grafana/sdk/v2/go/grafana/oss"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := oss.GetTeams(ctx, &oss.GetTeamsArgs{}, nil)
if err != nil {
return err
}
_, err = oss.GetTeams(ctx, &oss.GetTeamsArgs{
Query: pulumi.StringRef("dev"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var all = Grafana.Oss.GetTeams.Invoke();
var dev = Grafana.Oss.GetTeams.Invoke(new()
{
Query = "dev",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.OssFunctions;
import com.pulumi.grafana.oss.inputs.GetTeamsArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = OssFunctions.getTeams(GetTeamsArgs.builder()
.build());
final var dev = OssFunctions.getTeams(GetTeamsArgs.builder()
.query("dev")
.build());
}
}
variables:
all:
fn::invoke:
function: grafana:oss:getTeams
arguments: {}
dev:
fn::invoke:
function: grafana:oss:getTeams
arguments:
query: dev
Example coming soon!
Using getTeams
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getTeams(args: GetTeamsArgs, opts?: InvokeOptions): Promise<GetTeamsResult>
function getTeamsOutput(args: GetTeamsOutputArgs, opts?: InvokeOptions): Output<GetTeamsResult>def get_teams(org_id: Optional[str] = None,
query: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamsResult
def get_teams_output(org_id: pulumi.Input[Optional[str]] = None,
query: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamsResult]func GetTeams(ctx *Context, args *GetTeamsArgs, opts ...InvokeOption) (*GetTeamsResult, error)
func GetTeamsOutput(ctx *Context, args *GetTeamsOutputArgs, opts ...InvokeOption) GetTeamsResultOutput> Note: This function is named GetTeams in the Go SDK.
public static class GetTeams
{
public static Task<GetTeamsResult> InvokeAsync(GetTeamsArgs args, InvokeOptions? opts = null)
public static Output<GetTeamsResult> Invoke(GetTeamsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
public static Output<GetTeamsResult> getTeams(GetTeamsArgs args, InvokeOptions options)
fn::invoke:
function: grafana:oss/getTeams:getTeams
arguments:
# arguments dictionarydata "grafana_oss_getteams" "name" {
# arguments
}The following arguments are supported:
getTeams Result
The following output properties are available:
- Id string
- The ID of this resource.
- Org
Id string - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- Teams
List<Pulumiverse.
Grafana. Oss. Outputs. Get Teams Team> - The list of matching Grafana teams.
- Query string
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- Id string
- The ID of this resource.
- Org
Id string - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- Teams
[]Get
Teams Team - The list of matching Grafana teams.
- Query string
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- id string
- The ID of this resource.
- org_
id string - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- teams list(object)
- The list of matching Grafana teams.
- query string
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- id String
- The ID of this resource.
- org
Id String - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- teams
List<Get
Teams Team> - The list of matching Grafana teams.
- query String
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- id string
- The ID of this resource.
- org
Id string - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- teams
Get
Teams Team[] - The list of matching Grafana teams.
- query string
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- id str
- The ID of this resource.
- org_
id str - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- teams
Sequence[Get
Teams Team] - The list of matching Grafana teams.
- query str
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
- id String
- The ID of this resource.
- org
Id String - The Organization ID. If not set, the default organization is used for basic authentication, or the one that owns your service account for token authentication.
- teams List<Property Map>
- The list of matching Grafana teams.
- query String
- A keyword to filter teams by name (substring match). If omitted, all teams are returned.
Supporting Types
GetTeamsTeam
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafanaTerraform Provider.
Viewing docs for Grafana v2.30.0
published on Thursday, May 14, 2026 by pulumiverse
published on Thursday, May 14, 2026 by pulumiverse
