sonarqube 0.16.15 published on Saturday, May 17, 2025 by jdamata
sonarqube.getGroup
Explore with Pulumi AI
sonarqube 0.16.15 published on Saturday, May 17, 2025 by jdamata
Use this data source to get a Sonarqube Group resource
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sonarqube from "@pulumi/sonarqube";
const group = sonarqube.getGroup({
name: "terraform-test",
});
import pulumi
import pulumi_sonarqube as sonarqube
group = sonarqube.get_group(name="terraform-test")
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.LookupGroup(ctx, &sonarqube.LookupGroupArgs{
Name: "terraform-test",
}, 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 @group = Sonarqube.GetGroup.Invoke(new()
{
Name = "terraform-test",
});
});
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.GetGroupArgs;
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 group = SonarqubeFunctions.getGroup(GetGroupArgs.builder()
.name("terraform-test")
.build());
}
}
variables:
group:
fn::invoke:
function: sonarqube:getGroup
arguments:
name: terraform-test
Using getGroup
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 getGroup(args: GetGroupArgs, opts?: InvokeOptions): Promise<GetGroupResult>
function getGroupOutput(args: GetGroupOutputArgs, opts?: InvokeOptions): Output<GetGroupResult>
def get_group(id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetGroupResult
def get_group_output(id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetGroupResult]
func LookupGroup(ctx *Context, args *LookupGroupArgs, opts ...InvokeOption) (*LookupGroupResult, error)
func LookupGroupOutput(ctx *Context, args *LookupGroupOutputArgs, opts ...InvokeOption) LookupGroupResultOutput
> Note: This function is named LookupGroup
in the Go SDK.
public static class GetGroup
{
public static Task<GetGroupResult> InvokeAsync(GetGroupArgs args, InvokeOptions? opts = null)
public static Output<GetGroupResult> Invoke(GetGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
public static Output<GetGroupResult> getGroup(GetGroupArgs args, InvokeOptions options)
fn::invoke:
function: sonarqube:index/getGroup:getGroup
arguments:
# arguments dictionary
The following arguments are supported:
getGroup Result
The following output properties are available:
- Description string
- The group description.
- Id string
- The ID of this resource.
- Name string
- The name of the group.
- Description string
- The group description.
- Id string
- The ID of this resource.
- Name string
- The name of the group.
- description String
- The group description.
- id String
- The ID of this resource.
- name String
- The name of the group.
- description string
- The group description.
- id string
- The ID of this resource.
- name string
- The name of the group.
- description str
- The group description.
- id str
- The ID of this resource.
- name str
- The name of the group.
- description String
- The group description.
- id String
- The ID of this resource.
- name String
- The name of the group.
Package Details
- Repository
- sonarqube jdamata/terraform-provider-sonarqube
- License
- Notes
- This Pulumi package is based on the
sonarqube
Terraform Provider.
sonarqube 0.16.15 published on Saturday, May 17, 2025 by jdamata