Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
Provides a way to fetch data of groups in a workspace.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as bitbucket from "@pulumi/bitbucket";
const example = bitbucket.getGroups({
workspace: "example",
});
import pulumi
import pulumi_bitbucket as bitbucket
example = bitbucket.get_groups(workspace="example")
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/bitbucket/v2/bitbucket"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := bitbucket.GetGroups(ctx, &bitbucket.GetGroupsArgs{
Workspace: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Bitbucket = Pulumi.Bitbucket;
return await Deployment.RunAsync(() =>
{
var example = Bitbucket.GetGroups.Invoke(new()
{
Workspace = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.bitbucket.BitbucketFunctions;
import com.pulumi.bitbucket.inputs.GetGroupsArgs;
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 example = BitbucketFunctions.getGroups(GetGroupsArgs.builder()
.workspace("example")
.build());
}
}
variables:
example:
fn::invoke:
function: bitbucket:getGroups
arguments:
workspace: example
Using getGroups
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 getGroups(args: GetGroupsArgs, opts?: InvokeOptions): Promise<GetGroupsResult>
function getGroupsOutput(args: GetGroupsOutputArgs, opts?: InvokeOptions): Output<GetGroupsResult>def get_groups(id: Optional[str] = None,
workspace: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupsResult
def get_groups_output(id: Optional[pulumi.Input[str]] = None,
workspace: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupsResult]func GetGroups(ctx *Context, args *GetGroupsArgs, opts ...InvokeOption) (*GetGroupsResult, error)
func GetGroupsOutput(ctx *Context, args *GetGroupsOutputArgs, opts ...InvokeOption) GetGroupsResultOutput> Note: This function is named GetGroups in the Go SDK.
public static class GetGroups
{
public static Task<GetGroupsResult> InvokeAsync(GetGroupsArgs args, InvokeOptions? opts = null)
public static Output<GetGroupsResult> Invoke(GetGroupsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
public static Output<GetGroupsResult> getGroups(GetGroupsArgs args, InvokeOptions options)
fn::invoke:
function: bitbucket:index/getGroups:getGroups
arguments:
# arguments dictionaryThe following arguments are supported:
getGroups Result
The following output properties are available:
- Groups
List<Get
Groups Group> - The list of groups in the workspace. See Group below for structure of each element
- Id string
- Workspace string
- Groups
[]Get
Groups Group - The list of groups in the workspace. See Group below for structure of each element
- Id string
- Workspace string
- groups
List<Get
Groups Group> - The list of groups in the workspace. See Group below for structure of each element
- id String
- workspace String
- groups
Get
Groups Group[] - The list of groups in the workspace. See Group below for structure of each element
- id string
- workspace string
- groups
Sequence[Get
Groups Group] - The list of groups in the workspace. See Group below for structure of each element
- id str
- workspace str
- groups List<Property Map>
- The list of groups in the workspace. See Group below for structure of each element
- id String
- workspace String
Supporting Types
GetGroupsGroup
- Auto
Add bool - Whether to automatically add users the groups
- Email
Forwarding boolDisabled - Whether to disable email forwarding for group.
- Name string
- The name of the groups.
- Permission string
- One of
read,write, andadmin. - Slug string
- The groups's slug.
- Auto
Add bool - Whether to automatically add users the groups
- Email
Forwarding boolDisabled - Whether to disable email forwarding for group.
- Name string
- The name of the groups.
- Permission string
- One of
read,write, andadmin. - Slug string
- The groups's slug.
- auto
Add Boolean - Whether to automatically add users the groups
- email
Forwarding BooleanDisabled - Whether to disable email forwarding for group.
- name String
- The name of the groups.
- permission String
- One of
read,write, andadmin. - slug String
- The groups's slug.
- auto
Add boolean - Whether to automatically add users the groups
- email
Forwarding booleanDisabled - Whether to disable email forwarding for group.
- name string
- The name of the groups.
- permission string
- One of
read,write, andadmin. - slug string
- The groups's slug.
- auto_
add bool - Whether to automatically add users the groups
- email_
forwarding_ booldisabled - Whether to disable email forwarding for group.
- name str
- The name of the groups.
- permission str
- One of
read,write, andadmin. - slug str
- The groups's slug.
- auto
Add Boolean - Whether to automatically add users the groups
- email
Forwarding BooleanDisabled - Whether to disable email forwarding for group.
- name String
- The name of the groups.
- permission String
- One of
read,write, andadmin. - slug String
- The groups's slug.
Package Details
- Repository
- bitbucket drfaust92/terraform-provider-bitbucket
- License
- Notes
- This Pulumi package is based on the
bitbucketTerraform Provider.
Viewing docs for bitbucket 2.50.0
published on Wednesday, Oct 8, 2025 by drfaust92
published on Wednesday, Oct 8, 2025 by drfaust92
