@osmit-gmbh/pulumi-authentik
Version:
A Pulumi package for creating and managing authentik cloud resources.
82 lines • 2.61 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.getUsersOutput = exports.getUsers = void 0;
const pulumi = require("@pulumi/pulumi");
const utilities = require("./utilities");
/**
* Get users list
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the complete users list
* const all = authentik.getUsers({});
* // Or, to filter according to a specific field
* const admins = authentik.getUsers({
* isSuperuser: true,
* });
* ```
*/
function getUsers(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invoke("authentik:index/getUsers:getUsers", {
"attributes": args.attributes,
"email": args.email,
"groupsByNames": args.groupsByNames,
"groupsByPks": args.groupsByPks,
"isActive": args.isActive,
"isSuperuser": args.isSuperuser,
"name": args.name,
"ordering": args.ordering,
"path": args.path,
"pathStartswith": args.pathStartswith,
"search": args.search,
"username": args.username,
"uuid": args.uuid,
}, opts);
}
exports.getUsers = getUsers;
/**
* Get users list
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as authentik from "@pulumi/authentik";
*
* // To get the complete users list
* const all = authentik.getUsers({});
* // Or, to filter according to a specific field
* const admins = authentik.getUsers({
* isSuperuser: true,
* });
* ```
*/
function getUsersOutput(args, opts) {
args = args || {};
opts = pulumi.mergeOptions(utilities.resourceOptsDefaults(), opts || {});
return pulumi.runtime.invokeOutput("authentik:index/getUsers:getUsers", {
"attributes": args.attributes,
"email": args.email,
"groupsByNames": args.groupsByNames,
"groupsByPks": args.groupsByPks,
"isActive": args.isActive,
"isSuperuser": args.isSuperuser,
"name": args.name,
"ordering": args.ordering,
"path": args.path,
"pathStartswith": args.pathStartswith,
"search": args.search,
"username": args.username,
"uuid": args.uuid,
}, opts);
}
exports.getUsersOutput = getUsersOutput;
//# sourceMappingURL=getUsers.js.map