@osmit-gmbh/pulumi-authentik
Version:
A Pulumi package for creating and managing authentik cloud resources.
72 lines • 2.34 kB
JavaScript
;
// *** 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.getGroupsOutput = exports.getGroups = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get groups list
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the complete groups list
* const all = authentik.getGroups({});
* // Or, to filter according to a specific field
* const admins = authentik.getGroups({
* isSuperuser: true,
* });
* ```
*/
function getGroups(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("authentik:index/getGroups:getGroups", {
"attributes": args.attributes,
"includeUsers": args.includeUsers,
"isSuperuser": args.isSuperuser,
"membersByPks": args.membersByPks,
"membersByUsernames": args.membersByUsernames,
"name": args.name,
"ordering": args.ordering,
"search": args.search,
}, opts);
}
exports.getGroups = getGroups;
/**
* Get groups list
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the complete groups list
* const all = authentik.getGroups({});
* // Or, to filter according to a specific field
* const admins = authentik.getGroups({
* isSuperuser: true,
* });
* ```
*/
function getGroupsOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("authentik:index/getGroups:getGroups", {
"attributes": args.attributes,
"includeUsers": args.includeUsers,
"isSuperuser": args.isSuperuser,
"membersByPks": args.membersByPks,
"membersByUsernames": args.membersByUsernames,
"name": args.name,
"ordering": args.ordering,
"search": args.search,
}, opts);
}
exports.getGroupsOutput = getGroupsOutput;
//# sourceMappingURL=getGroups.js.map