UNPKG

@pulumiverse/dynatrace

Version:

A Pulumi package for creating and managing Dynatrace cloud resources.

66 lines (65 loc) 2.3 kB
import * as pulumi from "@pulumi/pulumi"; /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`). * * This data source allows you to specify the email address of the user and produces an ordered list of group IDs this user is a member of * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const userA = dynatrace.getIamUser({ * email: "me@home.com", * }); * export const groups = userA.then(userA => userA.groups); * ``` */ export declare function getIamUser(args: GetIamUserArgs, opts?: pulumi.InvokeOptions): Promise<GetIamUserResult>; /** * A collection of arguments for invoking getIamUser. */ export interface GetIamUserArgs { email: string; } /** * A collection of values returned by getIamUser. */ export interface GetIamUserResult { readonly email: string; readonly groups: string[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly uid: string; } /** * > **Dynatrace SaaS only** * * > To utilize this resource, please define the environment variables `DT_CLIENT_ID`, `DT_CLIENT_SECRET`, `DT_ACCOUNT_ID` with an OAuth client including the following permission: **Allow read access for identity resources (users and groups)** (`account-idm-read`). * * This data source allows you to specify the email address of the user and produces an ordered list of group IDs this user is a member of * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as dynatrace from "@pulumi/dynatrace"; * * const userA = dynatrace.getIamUser({ * email: "me@home.com", * }); * export const groups = userA.then(userA => userA.groups); * ``` */ export declare function getIamUserOutput(args: GetIamUserOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetIamUserResult>; /** * A collection of arguments for invoking getIamUser. */ export interface GetIamUserOutputArgs { email: pulumi.Input<string>; }