UNPKG

@pulumi/azuread

Version:

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

96 lines 3.38 kB
"use strict"; // *** WARNING: this file was generated by pulumi-language-nodejs. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getAccessPackageCatalogRoleOutput = exports.getAccessPackageCatalogRole = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * 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", * }); * ``` */ function getAccessPackageCatalogRole(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("azuread:index/getAccessPackageCatalogRole:getAccessPackageCatalogRole", { "displayName": args.displayName, "objectId": args.objectId, }, opts); } exports.getAccessPackageCatalogRole = getAccessPackageCatalogRole; /** * 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", * }); * ``` */ function getAccessPackageCatalogRoleOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("azuread:index/getAccessPackageCatalogRole:getAccessPackageCatalogRole", { "displayName": args.displayName, "objectId": args.objectId, }, opts); } exports.getAccessPackageCatalogRoleOutput = getAccessPackageCatalogRoleOutput; //# sourceMappingURL=getAccessPackageCatalogRole.js.map