UNPKG

@pulumi/azuread

Version:

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

129 lines (128 loc) 3.81 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about an access package catalog role. * * ## API Permissions * * The following API permissions are required in order to use this data source. * * When authenticated with a service principal, this data source requires one of the following application roles: `EntitlementManagement.Read.All` or `Directory.Read.All` * * When authenticated with a user principal, this data source does not require any additional roles. * * ## Example Usage * * ### By Group Display Name) * * *Look up by display name* * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getAccessPackageCatalogRole({ * displayName: "Catalog owner", * }); * ``` * * *Look up by object ID* * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getAccessPackageCatalogRole({ * objectId: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getAccessPackageCatalogRole(args?: GetAccessPackageCatalogRoleArgs, opts?: pulumi.InvokeOptions): Promise<GetAccessPackageCatalogRoleResult>; /** * A collection of arguments for invoking getAccessPackageCatalogRole. */ export interface GetAccessPackageCatalogRoleArgs { /** * Specifies the display name of the role. */ displayName?: string; /** * Specifies the object ID of the role. * * > One of `displayName` or `objectId` must be specified. */ objectId?: string; } /** * A collection of values returned by getAccessPackageCatalogRole. */ export interface GetAccessPackageCatalogRoleResult { /** * The description of the role. */ readonly description: string; /** * The display name of the role. */ readonly displayName: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The object ID of the role. */ readonly objectId: string; /** * The object ID of the role. */ readonly templateId: string; } /** * Gets information about an access package catalog role. * * ## API Permissions * * The following API permissions are required in order to use this data source. * * When authenticated with a service principal, this data source requires one of the following application roles: `EntitlementManagement.Read.All` or `Directory.Read.All` * * When authenticated with a user principal, this data source does not require any additional roles. * * ## Example Usage * * ### By Group Display Name) * * *Look up by display name* * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getAccessPackageCatalogRole({ * displayName: "Catalog owner", * }); * ``` * * *Look up by object ID* * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as azuread from "@pulumi/azuread"; * * const example = azuread.getAccessPackageCatalogRole({ * objectId: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getAccessPackageCatalogRoleOutput(args?: GetAccessPackageCatalogRoleOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetAccessPackageCatalogRoleResult>; /** * A collection of arguments for invoking getAccessPackageCatalogRole. */ export interface GetAccessPackageCatalogRoleOutputArgs { /** * Specifies the display name of the role. */ displayName?: pulumi.Input<string>; /** * Specifies the object ID of the role. * * > One of `displayName` or `objectId` must be specified. */ objectId?: pulumi.Input<string>; }