sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata
sonarqube.getGroupMembers
Explore with Pulumi AI
Use this data source to get Sonarqube group member resources
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const groupMembers = sonarqube.getGroupMembers({
group: "sonar-users",
ignoreMissing: true,
});
import pulumi
import pulumi_sonarqube as sonarqube
group_members = sonarqube.get_group_members(group="sonar-users",
ignore_missing=True)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sonarqube/sonarqube"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sonarqube.GetGroupMembers(ctx, &sonarqube.GetGroupMembersArgs{
Group: "sonar-users",
IgnoreMissing: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sonarqube = Pulumi.Sonarqube;
return await Deployment.RunAsync(() =>
{
var groupMembers = Sonarqube.GetGroupMembers.Invoke(new()
{
Group = "sonar-users",
IgnoreMissing = true,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sonarqube.SonarqubeFunctions;
import com.pulumi.sonarqube.inputs.GetGroupMembersArgs;
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 groupMembers = SonarqubeFunctions.getGroupMembers(GetGroupMembersArgs.builder()
.group("sonar-users")
.ignoreMissing(true)
.build());
}
}
variables:
groupMembers:
fn::invoke:
function: sonarqube:getGroupMembers
arguments:
group: sonar-users
ignoreMissing: true
Using getGroupMembers
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 getGroupMembers(args: GetGroupMembersArgs, opts?: InvokeOptions): Promise<GetGroupMembersResult>
function getGroupMembersOutput(args: GetGroupMembersOutputArgs, opts?: InvokeOptions): Output<GetGroupMembersResult>
def get_group_members(group: Optional[str] = None,
id: Optional[str] = None,
ignore_missing: Optional[bool] = None,
login_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupMembersResult
def get_group_members_output(group: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
ignore_missing: Optional[pulumi.Input[bool]] = None,
login_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupMembersResult]
func GetGroupMembers(ctx *Context, args *GetGroupMembersArgs, opts ...InvokeOption) (*GetGroupMembersResult, error)
func GetGroupMembersOutput(ctx *Context, args *GetGroupMembersOutputArgs, opts ...InvokeOption) GetGroupMembersResultOutput
> Note: This function is named GetGroupMembers
in the Go SDK.
public static class GetGroupMembers
{
public static Task<GetGroupMembersResult> InvokeAsync(GetGroupMembersArgs args, InvokeOptions? opts = null)
public static Output<GetGroupMembersResult> Invoke(GetGroupMembersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupMembersResult> getGroupMembers(GetGroupMembersArgs args, InvokeOptions options)
public static Output<GetGroupMembersResult> getGroupMembers(GetGroupMembersArgs args, InvokeOptions options)
fn::invoke:
function: sonarqube:index/getGroupMembers:getGroupMembers
arguments:
# arguments dictionary
The following arguments are supported:
- Group string
- The name of the group.
- Id string
- The ID of this resource.
- Ignore
Missing bool - If set to true, the data source will not fail if the group does not exist.
- Login
Name string - To limit the search to a specific user.
- Group string
- The name of the group.
- Id string
- The ID of this resource.
- Ignore
Missing bool - If set to true, the data source will not fail if the group does not exist.
- Login
Name string - To limit the search to a specific user.
- group String
- The name of the group.
- id String
- The ID of this resource.
- ignore
Missing Boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name String - To limit the search to a specific user.
- group string
- The name of the group.
- id string
- The ID of this resource.
- ignore
Missing boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name string - To limit the search to a specific user.
- group str
- The name of the group.
- id str
- The ID of this resource.
- ignore_
missing bool - If set to true, the data source will not fail if the group does not exist.
- login_
name str - To limit the search to a specific user.
- group String
- The name of the group.
- id String
- The ID of this resource.
- ignore
Missing Boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name String - To limit the search to a specific user.
getGroupMembers Result
The following output properties are available:
- Group string
- The name of the group.
- Id string
- The ID of this resource.
- Members
List<Get
Group Members Member> - The list of members in the group.
- Ignore
Missing bool - If set to true, the data source will not fail if the group does not exist.
- Login
Name string - To limit the search to a specific user.
- Group string
- The name of the group.
- Id string
- The ID of this resource.
- Members
[]Get
Group Members Member - The list of members in the group.
- Ignore
Missing bool - If set to true, the data source will not fail if the group does not exist.
- Login
Name string - To limit the search to a specific user.
- group String
- The name of the group.
- id String
- The ID of this resource.
- members
List<Get
Group Members Member> - The list of members in the group.
- ignore
Missing Boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name String - To limit the search to a specific user.
- group string
- The name of the group.
- id string
- The ID of this resource.
- members
Get
Group Members Member[] - The list of members in the group.
- ignore
Missing boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name string - To limit the search to a specific user.
- group str
- The name of the group.
- id str
- The ID of this resource.
- members
Sequence[Get
Group Members Member] - The list of members in the group.
- ignore_
missing bool - If set to true, the data source will not fail if the group does not exist.
- login_
name str - To limit the search to a specific user.
- group String
- The name of the group.
- id String
- The ID of this resource.
- members List<Property Map>
- The list of members in the group.
- ignore
Missing Boolean - If set to true, the data source will not fail if the group does not exist.
- login
Name String - To limit the search to a specific user.
Supporting Types
GetGroupMembersMember
- login_
name str - name str
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqube
Terraform Provider.