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.User("test", {
email: "test.datasource@example.com",
name: "Testing Datasource",
login: "test-datasource",
password: "my-password",
});
const fromEmail = grafana.oss.getOrganizationUserOutput({
email: test.email,
});
const fromLogin = test.login.apply(login => grafana.oss.getOrganizationUserOutput({
login: login,
}));
import pulumi
import pulumi_grafana as grafana
import pulumiverse_grafana as grafana
test = grafana.oss.User("test",
email="test.datasource@example.com",
name="Testing Datasource",
login="test-datasource",
password="my-password")
from_email = grafana.oss.get_organization_user_output(email=test.email)
from_login = test.login.apply(lambda login: grafana.oss.get_organization_user_output(login=login))
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.NewUser(ctx, "test", &oss.UserArgs{
Email: pulumi.String("test.datasource@example.com"),
Name: pulumi.String("Testing Datasource"),
Login: pulumi.String("test-datasource"),
Password: pulumi.String("my-password"),
})
if err != nil {
return err
}
_ = oss.GetOrganizationUserOutput(ctx, oss.GetOrganizationUserOutputArgs{
Email: test.Email,
}, nil)
_ = test.Login.ApplyT(func(login *string) (oss.GetOrganizationUserResult, error) {
return oss.GetOrganizationUserResult(interface{}(oss.GetOrganizationUser(ctx, &oss.GetOrganizationUserArgs{
Login: pulumi.StringRef(pulumi.StringRef(login)),
}, nil))), nil
}).(oss.GetOrganizationUserResultOutput)
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.User("test", new()
{
Email = "test.datasource@example.com",
Name = "Testing Datasource",
Login = "test-datasource",
Password = "my-password",
});
var fromEmail = Grafana.Oss.GetOrganizationUser.Invoke(new()
{
Email = test.Email,
});
var fromLogin = Grafana.Oss.GetOrganizationUser.Invoke(new()
{
Login = test.Login,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.oss.User;
import com.pulumi.grafana.oss.UserArgs;
import com.pulumi.grafana.oss.OssFunctions;
import com.pulumi.grafana.oss.inputs.GetOrganizationUserArgs;
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 User("test", UserArgs.builder()
.email("test.datasource@example.com")
.name("Testing Datasource")
.login("test-datasource")
.password("my-password")
.build());
final var fromEmail = OssFunctions.getOrganizationUser(GetOrganizationUserArgs.builder()
.email(test.email())
.build());
final var fromLogin = test.login().applyValue(_login -> OssFunctions.getOrganizationUser(GetOrganizationUserArgs.builder()
.login(_login)
.build()));
}
}
resources:
test:
type: grafana:oss:User
properties:
email: test.datasource@example.com
name: Testing Datasource
login: test-datasource
password: my-password
variables:
fromEmail:
fn::invoke:
function: grafana:oss:getOrganizationUser
arguments:
email: ${test.email}
fromLogin:
fn::invoke:
function: grafana:oss:getOrganizationUser
arguments:
login: ${test.login}
Using getOrganizationUser
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 getOrganizationUser(args: GetOrganizationUserArgs, opts?: InvokeOptions): Promise<GetOrganizationUserResult>
function getOrganizationUserOutput(args: GetOrganizationUserOutputArgs, opts?: InvokeOptions): Output<GetOrganizationUserResult>def get_organization_user(email: Optional[str] = None,
login: Optional[str] = None,
org_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetOrganizationUserResult
def get_organization_user_output(email: Optional[pulumi.Input[str]] = None,
login: Optional[pulumi.Input[str]] = None,
org_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetOrganizationUserResult]func GetOrganizationUser(ctx *Context, args *GetOrganizationUserArgs, opts ...InvokeOption) (*GetOrganizationUserResult, error)
func GetOrganizationUserOutput(ctx *Context, args *GetOrganizationUserOutputArgs, opts ...InvokeOption) GetOrganizationUserResultOutput> Note: This function is named GetOrganizationUser in the Go SDK.
public static class GetOrganizationUser
{
public static Task<GetOrganizationUserResult> InvokeAsync(GetOrganizationUserArgs args, InvokeOptions? opts = null)
public static Output<GetOrganizationUserResult> Invoke(GetOrganizationUserInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetOrganizationUserResult> getOrganizationUser(GetOrganizationUserArgs args, InvokeOptions options)
public static Output<GetOrganizationUserResult> getOrganizationUser(GetOrganizationUserArgs args, InvokeOptions options)
fn::invoke:
function: grafana:oss/getOrganizationUser:getOrganizationUser
arguments:
# arguments dictionaryThe following arguments are supported:
getOrganizationUser Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Id int - The numerical ID of the Grafana user.
- Email string
- The email address of the Grafana user. Defaults to ``.
- Login string
- The username of the Grafana user. Defaults to ``.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- Id string
- The provider-assigned unique ID for this managed resource.
- User
Id int - The numerical ID of the Grafana user.
- Email string
- The email address of the Grafana user. Defaults to ``.
- Login string
- The username of the Grafana user. Defaults to ``.
- Org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Id Integer - The numerical ID of the Grafana user.
- email String
- The email address of the Grafana user. Defaults to ``.
- login String
- The username of the Grafana user. Defaults to ``.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- id string
- The provider-assigned unique ID for this managed resource.
- user
Id number - The numerical ID of the Grafana user.
- email string
- The email address of the Grafana user. Defaults to ``.
- login string
- The username of the Grafana user. Defaults to ``.
- org
Id string - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- id str
- The provider-assigned unique ID for this managed resource.
- user_
id int - The numerical ID of the Grafana user.
- email str
- The email address of the Grafana user. Defaults to ``.
- login str
- The username of the Grafana user. Defaults to ``.
- org_
id str - The Organization ID. If not set, the Org ID defined in the provider block will be used.
- id String
- The provider-assigned unique ID for this managed resource.
- user
Id Number - The numerical ID of the Grafana user.
- email String
- The email address of the Grafana user. Defaults to ``.
- login String
- The username of the Grafana user. Defaults to ``.
- org
Id String - The Organization ID. If not set, the Org ID defined in the provider block will be used.
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
