@pulumiverse/grafana
Version:
A Pulumi package for creating and managing grafana.
71 lines (70 loc) • 1.64 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const alex = grafana.onCall.getUser({
* username: "alex",
* });
* ```
*/
export declare function getUser(args: GetUserArgs, opts?: pulumi.InvokeOptions): Promise<GetUserResult>;
/**
* A collection of arguments for invoking getUser.
*/
export interface GetUserArgs {
/**
* The username of the user.
*/
username: string;
}
/**
* A collection of values returned by getUser.
*/
export interface GetUserResult {
/**
* The email of the user.
*/
readonly email: string;
/**
* The ID of the user.
*/
readonly id: string;
/**
* The role of the user.
*/
readonly role: string;
/**
* The username of the user.
*/
readonly username: string;
}
/**
* * [HTTP API](https://grafana.com/docs/oncall/latest/oncall-api-reference/users/)
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as grafana from "@pulumiverse/grafana";
*
* const alex = grafana.onCall.getUser({
* username: "alex",
* });
* ```
*/
export declare function getUserOutput(args: GetUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetUserResult>;
/**
* A collection of arguments for invoking getUser.
*/
export interface GetUserOutputArgs {
/**
* The username of the user.
*/
username: pulumi.Input<string>;
}