UNPKG

@pulumi/azuread

Version:

A Pulumi package for creating and managing Azure Active Directory (Azure AD) cloud resources.

64 lines (63 loc) 2.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Use this data source to access information about directory role templates within Azure Active Directory. * * ## API Permissions * * The following API permissions are required in order to use this resource. * * When authenticated with a service principal, this resource requires one of the following application roles: `RoleManagement.Read.Directory` or `Directory.Read.All` * * When authenticated with a user principal, this data source does not require any additional roles. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const current = azuread.getDirectoryRoleTemplates({}); * export const roles = current.then(current => current.objectIds); * ``` */ export declare function getDirectoryRoleTemplates(opts?: pulumi.InvokeOptions): Promise<GetDirectoryRoleTemplatesResult>; /** * A collection of values returned by getDirectoryRoleTemplates. */ export interface GetDirectoryRoleTemplatesResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The object IDs of the role templates. */ readonly objectIds: string[]; /** * A list of role templates. Each `roleTemplate` object provides the attributes documented below. */ readonly roleTemplates: outputs.GetDirectoryRoleTemplatesRoleTemplate[]; } /** * Use this data source to access information about directory role templates within Azure Active Directory. * * ## API Permissions * * The following API permissions are required in order to use this resource. * * When authenticated with a service principal, this resource requires one of the following application roles: `RoleManagement.Read.Directory` or `Directory.Read.All` * * When authenticated with a user principal, this data source does not require any additional roles. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const current = azuread.getDirectoryRoleTemplates({}); * export const roles = current.then(current => current.objectIds); * ``` */ export declare function getDirectoryRoleTemplatesOutput(opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetDirectoryRoleTemplatesResult>;