@lbrlabs/pulumi-grafana
Version:
A Pulumi package for creating and managing grafana.
95 lines (94 loc) • 2.81 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@lbrlabs/pulumi-grafana";
* import * as grafana from "@pulumi/grafana";
*
* const test = new grafana.Organization("test", {
* adminUser: "admin",
* createUsers: true,
* viewers: [
* "viewer-01@example.com",
* "viewer-02@example.com",
* ],
* });
* const fromName = grafana.getOrganizationOutput({
* name: test.name,
* });
* ```
*/
export declare function getOrganization(args: GetOrganizationArgs, opts?: pulumi.InvokeOptions): Promise<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationArgs {
/**
* The name of the Organization.
*/
name: string;
}
/**
* A collection of values returned by getOrganization.
*/
export interface GetOrganizationResult {
/**
* A list of email addresses corresponding to users given admin access to the organization.
*/
readonly admins: string[];
/**
* A list of email addresses corresponding to users given editor access to the organization.
*/
readonly editors: string[];
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
/**
* The name of the Organization.
*/
readonly name: string;
/**
* A list of email addresses corresponding to users given viewer access to the organization.
*/
readonly viewers: string[];
}
/**
* * [Official documentation](https://grafana.com/docs/grafana/latest/administration/organization-management/)
* * [HTTP API](https://grafana.com/docs/grafana/latest/developers/http_api/org/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@lbrlabs/pulumi-grafana";
* import * as grafana from "@pulumi/grafana";
*
* const test = new grafana.Organization("test", {
* adminUser: "admin",
* createUsers: true,
* viewers: [
* "viewer-01@example.com",
* "viewer-02@example.com",
* ],
* });
* const fromName = grafana.getOrganizationOutput({
* name: test.name,
* });
* ```
*/
export declare function getOrganizationOutput(args: GetOrganizationOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetOrganizationResult>;
/**
* A collection of arguments for invoking getOrganization.
*/
export interface GetOrganizationOutputArgs {
/**
* The name of the Organization.
*/
name: pulumi.Input<string>;
}