1. Packages
  2. Sonarqube Provider
  3. API Docs
  4. getGroupMembers
sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata

sonarqube.getGroupMembers

Explore with Pulumi AI

sonarqube logo
sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata

    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.
    IgnoreMissing bool
    If set to true, the data source will not fail if the group does not exist.
    LoginName string
    To limit the search to a specific user.
    Group string
    The name of the group.
    Id string
    The ID of this resource.
    IgnoreMissing bool
    If set to true, the data source will not fail if the group does not exist.
    LoginName string
    To limit the search to a specific user.
    group String
    The name of the group.
    id String
    The ID of this resource.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName String
    To limit the search to a specific user.
    group string
    The name of the group.
    id string
    The ID of this resource.
    ignoreMissing boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName 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.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName 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<GetGroupMembersMember>
    The list of members in the group.
    IgnoreMissing bool
    If set to true, the data source will not fail if the group does not exist.
    LoginName string
    To limit the search to a specific user.
    Group string
    The name of the group.
    Id string
    The ID of this resource.
    Members []GetGroupMembersMember
    The list of members in the group.
    IgnoreMissing bool
    If set to true, the data source will not fail if the group does not exist.
    LoginName 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<GetGroupMembersMember>
    The list of members in the group.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName String
    To limit the search to a specific user.
    group string
    The name of the group.
    id string
    The ID of this resource.
    members GetGroupMembersMember[]
    The list of members in the group.
    ignoreMissing boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName 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[GetGroupMembersMember]
    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.
    ignoreMissing Boolean
    If set to true, the data source will not fail if the group does not exist.
    loginName String
    To limit the search to a specific user.

    Supporting Types

    GetGroupMembersMember

    LoginName string
    Name string
    LoginName string
    Name string
    loginName String
    name String
    loginName string
    name string
    loginName String
    name String

    Package Details

    Repository
    sonarqube jdamata/terraform-provider-sonarqube
    License
    Notes
    This Pulumi package is based on the sonarqube Terraform Provider.
    sonarqube logo
    sonarqube 0.16.15 published on Sunday, May 18, 2025 by jdamata