1. Packages
  2. Wavefront
  3. API Docs
  4. getDefaultUserGroup
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

wavefront.getDefaultUserGroup

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi

    Use this data source to get the Group ID of the Everyone group in Wavefront.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    // Get the default user group "Everyone"
    const everyoneGroup = wavefront.getDefaultUserGroup({});
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    # Get the default user group "Everyone"
    everyone_group = wavefront.get_default_user_group()
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Get the default user group "Everyone"
    		_, err := wavefront.GetDefaultUserGroup(ctx, nil, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Wavefront = Pulumi.Wavefront;
    
    return await Deployment.RunAsync(() => 
    {
        // Get the default user group "Everyone"
        var everyoneGroup = Wavefront.GetDefaultUserGroup.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.WavefrontFunctions;
    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) {
            // Get the default user group "Everyone"
            final var everyoneGroup = WavefrontFunctions.getDefaultUserGroup();
    
        }
    }
    
    variables:
      # Get the default user group "Everyone"
      everyoneGroup:
        fn::invoke:
          Function: wavefront:getDefaultUserGroup
          Arguments: {}
    

    Using getDefaultUserGroup

    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 getDefaultUserGroup(opts?: InvokeOptions): Promise<GetDefaultUserGroupResult>
    function getDefaultUserGroupOutput(opts?: InvokeOptions): Output<GetDefaultUserGroupResult>
    def get_default_user_group(opts: Optional[InvokeOptions] = None) -> GetDefaultUserGroupResult
    def get_default_user_group_output(opts: Optional[InvokeOptions] = None) -> Output[GetDefaultUserGroupResult]
    func GetDefaultUserGroup(ctx *Context, opts ...InvokeOption) (*GetDefaultUserGroupResult, error)
    func GetDefaultUserGroupOutput(ctx *Context, opts ...InvokeOption) GetDefaultUserGroupResultOutput

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

    public static class GetDefaultUserGroup 
    {
        public static Task<GetDefaultUserGroupResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetDefaultUserGroupResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetDefaultUserGroupResult> getDefaultUserGroup(InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: wavefront:index/getDefaultUserGroup:getDefaultUserGroup
      arguments:
        # arguments dictionary

    getDefaultUserGroup Result

    The following output properties are available:

    GroupId string
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    Id string
    The provider-assigned unique ID for this managed resource.
    GroupId string
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    Id string
    The provider-assigned unique ID for this managed resource.
    groupId String
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    id String
    The provider-assigned unique ID for this managed resource.
    groupId string
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    id string
    The provider-assigned unique ID for this managed resource.
    group_id str
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    id str
    The provider-assigned unique ID for this managed resource.
    groupId String
    Set to the Group ID of the Everyone group, suitable for referencing in other resources that support group memberships.
    id String
    The provider-assigned unique ID for this managed resource.

    Package Details

    Repository
    Wavefront pulumi/pulumi-wavefront
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.4 published on Friday, Sep 20, 2024 by Pulumi