dbt Cloud v0.1.8 published on Tuesday, Jun 11, 2024 by Pulumi
dbtcloud.getGroupUsers
Explore with Pulumi AI
Returns a list of users assigned to a specific dbt Cloud group
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as dbtcloud from "@pulumi/dbtcloud";
const myGroupUsers = dbtcloud.getGroupUsers({
groupId: 1234,
});
import pulumi
import pulumi_dbtcloud as dbtcloud
my_group_users = dbtcloud.get_group_users(group_id=1234)
package main
import (
"github.com/pulumi/pulumi-dbtcloud/sdk/go/dbtcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := dbtcloud.GetGroupUsers(ctx, &dbtcloud.GetGroupUsersArgs{
GroupId: 1234,
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using DbtCloud = Pulumi.DbtCloud;
return await Deployment.RunAsync(() =>
{
var myGroupUsers = DbtCloud.GetGroupUsers.Invoke(new()
{
GroupId = 1234,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.dbtcloud.DbtcloudFunctions;
import com.pulumi.dbtcloud.inputs.GetGroupUsersArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var myGroupUsers = DbtcloudFunctions.getGroupUsers(GetGroupUsersArgs.builder()
.groupId(1234)
.build());
}
}
variables:
myGroupUsers:
fn::invoke:
Function: dbtcloud:getGroupUsers
Arguments:
groupId: 1234
Using getGroupUsers
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 getGroupUsers(args: GetGroupUsersArgs, opts?: InvokeOptions): Promise<GetGroupUsersResult>
function getGroupUsersOutput(args: GetGroupUsersOutputArgs, opts?: InvokeOptions): Output<GetGroupUsersResult>
def get_group_users(group_id: Optional[int] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupUsersResult
def get_group_users_output(group_id: Optional[pulumi.Input[int]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupUsersResult]
func GetGroupUsers(ctx *Context, args *GetGroupUsersArgs, opts ...InvokeOption) (*GetGroupUsersResult, error)
func GetGroupUsersOutput(ctx *Context, args *GetGroupUsersOutputArgs, opts ...InvokeOption) GetGroupUsersResultOutput
> Note: This function is named GetGroupUsers
in the Go SDK.
public static class GetGroupUsers
{
public static Task<GetGroupUsersResult> InvokeAsync(GetGroupUsersArgs args, InvokeOptions? opts = null)
public static Output<GetGroupUsersResult> Invoke(GetGroupUsersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupUsersResult> getGroupUsers(GetGroupUsersArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: dbtcloud:index/getGroupUsers:getGroupUsers
arguments:
# arguments dictionary
The following arguments are supported:
- Group
Id int - ID of the group
- Group
Id int - ID of the group
- group
Id Integer - ID of the group
- group
Id number - ID of the group
- group_
id int - ID of the group
- group
Id Number - ID of the group
getGroupUsers Result
The following output properties are available:
- Group
Id int - ID of the group
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
List<Pulumi.
Dbt Cloud. Outputs. Get Group Users User> - List of users (map of ID and email) in the group
- Group
Id int - ID of the group
- Id string
- The provider-assigned unique ID for this managed resource.
- Users
[]Get
Group Users User - List of users (map of ID and email) in the group
- group
Id Integer - ID of the group
- id String
- The provider-assigned unique ID for this managed resource.
- users
List<Get
Group Users User> - List of users (map of ID and email) in the group
- group
Id number - ID of the group
- id string
- The provider-assigned unique ID for this managed resource.
- users
Get
Group Users User[] - List of users (map of ID and email) in the group
- group_
id int - ID of the group
- id str
- The provider-assigned unique ID for this managed resource.
- users
Sequence[Get
Group Users User] - List of users (map of ID and email) in the group
- group
Id Number - ID of the group
- id String
- The provider-assigned unique ID for this managed resource.
- users List<Property Map>
- List of users (map of ID and email) in the group
Supporting Types
GetGroupUsersUser
Package Details
- Repository
- dbtcloud pulumi/pulumi-dbtcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
dbtcloud
Terraform Provider.