UNPKG

@osmit-gmbh/pulumi-authentik

Version:

A Pulumi package for creating and managing authentik cloud resources.

58 lines 1.74 kB
"use strict"; // *** WARNING: this file was generated by the Pulumi Terraform Bridge (tfgen) Tool. *** // *** Do not edit by hand unless you're certain you know what you are doing! *** Object.defineProperty(exports, "__esModule", { value: true }); exports.getGroupOutput = exports.getGroup = void 0; const pulumi = require("@pulumi/pulumi"); const utilities = require("./utilities"); /** * Get groups by pk or name * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as authentik from "@pulumi/authentik"; * * // To get the ID of a group by name * const admins = authentik.getGroup({ * name: "authentik Admins", * }); * ``` */ function getGroup(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invoke("authentik:index/getGroup:getGroup", { "includeUsers": args.includeUsers, "name": args.name, "pk": args.pk, }, opts); } exports.getGroup = getGroup; /** * Get groups by pk or name * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as authentik from "@pulumi/authentik"; * * // To get the ID of a group by name * const admins = authentik.getGroup({ * name: "authentik Admins", * }); * ``` */ function getGroupOutput(args, opts) { args = args || {}; opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {}); return pulumi.runtime.invokeOutput("authentik:index/getGroup:getGroup", { "includeUsers": args.includeUsers, "name": args.name, "pk": args.pk, }, opts); } exports.getGroupOutput = getGroupOutput; //# sourceMappingURL=getGroup.js.map