1. Packages
  2. Dbtcloud Provider
  3. API Docs
  4. getUsers
dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi

dbtcloud.getUsers

Explore with Pulumi AI

dbtcloud logo
dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi

    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.DbtCloud.Outputs.GetUsersUser>
    Set of users with their internal ID end email
    Id string
    The provider-assigned unique ID for this managed resource.
    Users []GetUsersUser
    Set of users with their internal ID end email
    id String
    The provider-assigned unique ID for this managed resource.
    users List<GetUsersUser>
    Set of users with their internal ID end email
    id string
    The provider-assigned unique ID for this managed resource.
    users GetUsersUser[]
    Set of users with their internal ID end email
    id str
    The provider-assigned unique ID for this managed resource.
    users Sequence[GetUsersUser]
    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

    Email string
    Email for the user
    Id int
    ID of the user
    Email string
    Email for the user
    Id int
    ID of the user
    email String
    Email for the user
    id Integer
    ID of the user
    email string
    Email for the user
    id number
    ID of the user
    email str
    Email for the user
    id int
    ID of the user
    email String
    Email for the user
    id Number
    ID of the user

    Package Details

    Repository
    dbtcloud pulumi/pulumi-dbtcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the dbtcloud Terraform Provider.
    dbtcloud logo
    dbt Cloud v0.1.20 published on Friday, Sep 27, 2024 by Pulumi