Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Viewing docs for Grafana v2.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumiverse/grafana";
const test = new grafana.oss.Team("test", {
name: "test-team",
email: "test-team-email@test.com",
preferences: {
theme: "dark",
timezone: "utc",
},
});
const fromName = grafana.oss.getTeamOutput({
name: test.name,
});
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test = grafana.oss.Team("test",
name="test-team",
email="test-team-email@test.com",
preferences={
"theme": "dark",
"timezone": "utc",
})
from_name = grafana.oss.get_team_output(name=test.name)
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 {
test, err := oss.NewTeam(ctx, "test", &oss.TeamArgs{
Name: pulumi.String("test-team"),
Email: pulumi.String("test-team-email@test.com"),
Preferences: &oss.TeamPreferencesArgs{
Theme: pulumi.String("dark"),
Timezone: pulumi.String("utc"),
},
})
if err != nil {
return err
}
_ = oss.LookupTeamOutput(ctx, oss.GetTeamOutputArgs{
Name: test.Name,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;
using Grafana = Pulumiverse.Grafana;
return await Deployment.RunAsync(() =>
{
var test = new Grafana.Oss.Team("test", new()
{
Name = "test-team",
Email = "test-team-email@test.com",
Preferences = new Grafana.Oss.Inputs.TeamPreferencesArgs
{
Theme = "dark",
Timezone = "utc",
},
});
var fromName = Grafana.Oss.GetTeam.Invoke(new()
{
Name = test.Name,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.Team;
import com.pulumi.grafana.oss.TeamArgs;
import com.pulumi.grafana.oss.inputs.TeamPreferencesArgs;
import com.pulumi.grafana.oss.OssFunctions;
import com.pulumi.grafana.oss.inputs.GetTeamArgs;
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) {
var test = new Team("test", TeamArgs.builder()
.name("test-team")
.email("test-team-email@test.com")
.preferences(TeamPreferencesArgs.builder()
.theme("dark")
.timezone("utc")
.build())
.build());
final var fromName = OssFunctions.getTeam(GetTeamArgs.builder()
.name(test.name())
.build());
}
}
resources:
test:
type: grafana:oss:Team
properties:
name: test-team
email: test-team-email@test.com
preferences:
theme: dark
timezone: utc
variables:
fromName:
fn::invoke:
function: grafana:oss:getTeam
arguments:
name: ${test.name}
Using getTeam
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 getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>def get_team(name: Optional[str] = None,
org_id: Optional[str] = None,
read_team_sync: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(name: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
read_team_sync: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput> Note: This function is named LookupTeam in the Go SDK.
public static class GetTeam
{
public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
fn::invoke:
function: grafana:oss/getTeam:getTeam
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Org
Id string - Read
Team boolSync
- Name string
- Org
Id string - Read
Team boolSync
- name String
- org
Id String - read
Team BooleanSync
- name string
- org
Id string - read
Team booleanSync
- name str
- org_
id str - read_
team_ boolsync
- name String
- org
Id String - read
Team BooleanSync
getTeam Result
The following output properties are available:
- Email string
- Id string
- The provider-assigned unique ID for this managed resource.
- Members List<string>
- Name string
- Preferences
List<Pulumiverse.
Grafana. Oss. Outputs. Get Team Preference> - Team
Id int - Team
Syncs List<Pulumiverse.Grafana. Oss. Outputs. Get Team Team Sync> - Team
Uid string - Org
Id string - Read
Team boolSync
- Email string
- Id string
- The provider-assigned unique ID for this managed resource.
- Members []string
- Name string
- Preferences
[]Get
Team Preference - Team
Id int - Team
Syncs []GetTeam Team Sync - Team
Uid string - Org
Id string - Read
Team boolSync
- email String
- id String
- The provider-assigned unique ID for this managed resource.
- members List<String>
- name String
- preferences
List<Get
Team Preference> - team
Id Integer - team
Syncs List<GetTeam Team Sync> - team
Uid String - org
Id String - read
Team BooleanSync
- email string
- id string
- The provider-assigned unique ID for this managed resource.
- members string[]
- name string
- preferences
Get
Team Preference[] - team
Id number - team
Syncs GetTeam Team Sync[] - team
Uid string - org
Id string - read
Team booleanSync
- email str
- id str
- The provider-assigned unique ID for this managed resource.
- members Sequence[str]
- name str
- preferences
Sequence[Get
Team Preference] - team_
id int - team_
syncs Sequence[GetTeam Team Sync] - team_
uid str - org_
id str - read_
team_ boolsync
- email String
- id String
- The provider-assigned unique ID for this managed resource.
- members List<String>
- name String
- preferences List<Property Map>
- team
Id Number - team
Syncs List<Property Map> - team
Uid String - org
Id String - read
Team BooleanSync
Supporting Types
GetTeamPreference
- Home
Dashboard stringUid - The UID of the dashboard to display when a team member logs in.
- Theme string
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - Timezone string
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - Week
Start string - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
- Home
Dashboard stringUid - The UID of the dashboard to display when a team member logs in.
- Theme string
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - Timezone string
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - Week
Start string - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
- home
Dashboard StringUid - The UID of the dashboard to display when a team member logs in.
- theme String
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - timezone String
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - week
Start String - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
- home
Dashboard stringUid - The UID of the dashboard to display when a team member logs in.
- theme string
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - timezone string
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - week
Start string - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
- home_
dashboard_ struid - The UID of the dashboard to display when a team member logs in.
- theme str
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - timezone str
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - week_
start str - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
- home
Dashboard StringUid - The UID of the dashboard to display when a team member logs in.
- theme String
- The default theme for this team. Available themes are
light,dark,system, or an empty string for the default theme. - timezone String
- The default timezone for this team. Available values are
utc,browser, or an empty string for the default. - week
Start String - The default week start day for this team. Available values are
sunday,monday,saturday, or an empty string for the default.
GetTeamTeamSync
- Groups List<string>
- Groups []string
- groups List<String>
- groups string[]
- groups Sequence[str]
- groups List<String>
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.21.0
published on Tuesday, Mar 3, 2026 by pulumiverse
published on Tuesday, Mar 3, 2026 by pulumiverse
