1. Packages
  2. Juju Provider
  3. API Docs
  4. getJaasGroup
juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju

juju.getJaasGroup

Explore with Pulumi AI

juju logo
juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju

    A data source representing a Juju JAAS Group.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as juju from "@pulumi/juju";
    
    const test = juju.getJaasGroup({
        name: "group-0",
    });
    export const groupUuid = test.then(test => test.uuid);
    
    import pulumi
    import pulumi_juju as juju
    
    test = juju.get_jaas_group(name="group-0")
    pulumi.export("groupUuid", test.uuid)
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/juju/juju"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		test, err := juju.LookupJaasGroup(ctx, &juju.LookupJaasGroupArgs{
    			Name: "group-0",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		ctx.Export("groupUuid", test.Uuid)
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Juju = Pulumi.Juju;
    
    return await Deployment.RunAsync(() => 
    {
        var test = Juju.GetJaasGroup.Invoke(new()
        {
            Name = "group-0",
        });
    
        return new Dictionary<string, object?>
        {
            ["groupUuid"] = test.Apply(getJaasGroupResult => getJaasGroupResult.Uuid),
        };
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.juju.JujuFunctions;
    import com.pulumi.juju.inputs.GetJaasGroupArgs;
    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 test = JujuFunctions.getJaasGroup(GetJaasGroupArgs.builder()
                .name("group-0")
                .build());
    
            ctx.export("groupUuid", test.applyValue(getJaasGroupResult -> getJaasGroupResult.uuid()));
        }
    }
    
    variables:
      test:
        fn::invoke:
          function: juju:getJaasGroup
          arguments:
            name: group-0
    outputs:
      groupUuid: ${test.uuid}
    

    Using getJaasGroup

    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 getJaasGroup(args: GetJaasGroupArgs, opts?: InvokeOptions): Promise<GetJaasGroupResult>
    function getJaasGroupOutput(args: GetJaasGroupOutputArgs, opts?: InvokeOptions): Output<GetJaasGroupResult>
    def get_jaas_group(name: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetJaasGroupResult
    def get_jaas_group_output(name: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetJaasGroupResult]
    func LookupJaasGroup(ctx *Context, args *LookupJaasGroupArgs, opts ...InvokeOption) (*LookupJaasGroupResult, error)
    func LookupJaasGroupOutput(ctx *Context, args *LookupJaasGroupOutputArgs, opts ...InvokeOption) LookupJaasGroupResultOutput

    > Note: This function is named LookupJaasGroup in the Go SDK.

    public static class GetJaasGroup 
    {
        public static Task<GetJaasGroupResult> InvokeAsync(GetJaasGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetJaasGroupResult> Invoke(GetJaasGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetJaasGroupResult> getJaasGroup(GetJaasGroupArgs args, InvokeOptions options)
    public static Output<GetJaasGroupResult> getJaasGroup(GetJaasGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: juju:index/getJaasGroup:getJaasGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Name string
    The name of the group.
    Name string
    The name of the group.
    name String
    The name of the group.
    name string
    The name of the group.
    name str
    The name of the group.
    name String
    The name of the group.

    getJaasGroup Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the group.
    Uuid string
    The UUID of the group.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    The name of the group.
    Uuid string
    The UUID of the group.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the group.
    uuid String
    The UUID of the group.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    The name of the group.
    uuid string
    The UUID of the group.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    The name of the group.
    uuid str
    The UUID of the group.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    The name of the group.
    uuid String
    The UUID of the group.

    Package Details

    Repository
    juju juju/terraform-provider-juju
    License
    Notes
    This Pulumi package is based on the juju Terraform Provider.
    juju logo
    juju 0.19.0 published on Wednesday, Apr 30, 2025 by juju