UNPKG

@pulumiverse/grafana

Version:

A Pulumi package for creating and managing grafana.

113 lines (112 loc) 3.68 kB
import * as pulumi from "@pulumi/pulumi"; /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/#get-all-users-within-the-current-organization-lookup) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * 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, * })); * ``` */ export declare function getOrganizationUser(args?: GetOrganizationUserArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationUserResult>; /** * A collection of arguments for invoking getOrganizationUser. */ export interface GetOrganizationUserArgs { /** * The email address of the Grafana user. Defaults to ``. */ email?: string; /** * The username of the Grafana user. Defaults to ``. */ login?: string; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: string; } /** * A collection of values returned by getOrganizationUser. */ export interface GetOrganizationUserResult { /** * The email address of the Grafana user. Defaults to ``. */ readonly email?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The username of the Grafana user. Defaults to ``. */ readonly login?: string; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ readonly orgId?: string; /** * The numerical ID of the Grafana user. */ readonly userId: number; } /** * * [Official documentation](https://grafana.com/docs/grafana/latest/administration/user-management/server-user-management/) * * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/#get-all-users-within-the-current-organization-lookup) * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as grafana from "@pulumi/grafana"; * 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, * })); * ``` */ export declare function getOrganizationUserOutput(args?: GetOrganizationUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetOrganizationUserResult>; /** * A collection of arguments for invoking getOrganizationUser. */ export interface GetOrganizationUserOutputArgs { /** * The email address of the Grafana user. Defaults to ``. */ email?: pulumi.Input<string>; /** * The username of the Grafana user. Defaults to ``. */ login?: pulumi.Input<string>; /** * The Organization ID. If not set, the Org ID defined in the provider block will be used. */ orgId?: pulumi.Input<string>; }