dbt Cloud v0.1.25 published on Friday, Nov 8, 2024 by Pulumi
dbtcloud.getUsers
Explore with Pulumi AI
Retrieve all users
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
// return all users in the dbt Cloud account
const all = dbtcloud.getUsers({});
const userDetails = all.then(all => .filter(user => user.email == "example@amail.com").map(user => (user)));
const userExist = userDetails.length.then(length => length == 1);
import pulumi
import pulumi_dbtcloud as dbtcloud
# return all users in the dbt Cloud account
all = dbtcloud.get_users()
user_details = [user for user in all.users if user.email == "example@amail.com"]
user_exist = len(user_details) == 1
Coming soon!
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
// return all users in the dbt Cloud account
var all = DbtCloud.GetUsers.Invoke();
var userDetails = .Where(user => user.Email == "example@amail.com").Select(user =>
{
return user;
}).ToList();
var userExist = userDetails.Length.Apply(length => length == 1);
});
Coming soon!
Coming soon!
Using getUsers
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getUsers(opts?: InvokeOptions): Promise<GetUsersResult>
function getUsersOutput(opts?: InvokeOptions): Output<GetUsersResult>
def get_users(opts: Optional[InvokeOptions] = None) -> GetUsersResult
def get_users_output(opts: Optional[InvokeOptions] = None) -> Output[GetUsersResult]
func GetUsers(ctx *Context, opts ...InvokeOption) (*GetUsersResult, error)
func GetUsersOutput(ctx *Context, opts ...InvokeOption) GetUsersResultOutput
> Note: This function is named GetUsers
in the Go SDK.
public static class GetUsers
{
public static Task<GetUsersResult> InvokeAsync(InvokeOptions? opts = null)
public static Output<GetUsersResult> Invoke(InvokeOptions? opts = null)
}
public static CompletableFuture<GetUsersResult> getUsers(InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dbtcloud:index/getUsers:getUsers
arguments:
# arguments dictionary
getUsers Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Pulumi.
Dbt Cloud. Outputs. Get Users User> - Set of users with their internal ID end email
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Get
Users User - Set of users with their internal ID end email
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Get
Users User> - Set of users with their internal ID end email
- id string
- The provider-assigned unique ID for this managed resource.
- users
Get
Users User[] - Set of users with their internal ID end email
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Get
Users User] - Set of users with their internal ID end email
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
- Set of users with their internal ID end email
Supporting Types
GetUsersUser
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.