1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOncallUserGroup
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

grafana.getOncallUserGroup

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
    Deprecated: grafana.index/getoncallusergroup.getOncallUserGroup has been deprecated in favor of grafana.oncall/getusergroup.getUserGroup

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const exampleUserGroup = grafana.onCall.getUserGroup({
        slackHandle: "example_slack_handle",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    example_user_group = grafana.onCall.get_user_group(slack_handle="example_slack_handle")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-grafana/sdk/go/grafana/onCall"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := onCall.GetUserGroup(ctx, &oncall.GetUserGroupArgs{
    			SlackHandle: "example_slack_handle",
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Grafana = Pulumi.Grafana;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleUserGroup = Grafana.OnCall.GetUserGroup.Invoke(new()
        {
            SlackHandle = "example_slack_handle",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.grafana.onCall.OnCallFunctions;
    import com.pulumi.grafana.onCall.inputs.GetUserGroupArgs;
    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 exampleUserGroup = OnCallFunctions.getUserGroup(GetUserGroupArgs.builder()
                .slackHandle("example_slack_handle")
                .build());
    
        }
    }
    
    variables:
      exampleUserGroup:
        fn::invoke:
          Function: grafana:onCall:getUserGroup
          Arguments:
            slackHandle: example_slack_handle
    

    Using getOncallUserGroup

    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 getOncallUserGroup(args: GetOncallUserGroupArgs, opts?: InvokeOptions): Promise<GetOncallUserGroupResult>
    function getOncallUserGroupOutput(args: GetOncallUserGroupOutputArgs, opts?: InvokeOptions): Output<GetOncallUserGroupResult>
    def get_oncall_user_group(slack_handle: Optional[str] = None,
                              opts: Optional[InvokeOptions] = None) -> GetOncallUserGroupResult
    def get_oncall_user_group_output(slack_handle: Optional[pulumi.Input[str]] = None,
                              opts: Optional[InvokeOptions] = None) -> Output[GetOncallUserGroupResult]
    func GetOncallUserGroup(ctx *Context, args *GetOncallUserGroupArgs, opts ...InvokeOption) (*GetOncallUserGroupResult, error)
    func GetOncallUserGroupOutput(ctx *Context, args *GetOncallUserGroupOutputArgs, opts ...InvokeOption) GetOncallUserGroupResultOutput

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

    public static class GetOncallUserGroup 
    {
        public static Task<GetOncallUserGroupResult> InvokeAsync(GetOncallUserGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetOncallUserGroupResult> Invoke(GetOncallUserGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetOncallUserGroupResult> getOncallUserGroup(GetOncallUserGroupArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:index/getOncallUserGroup:getOncallUserGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    getOncallUserGroup Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    SlackHandle string
    SlackId string
    Id string
    The provider-assigned unique ID for this managed resource.
    SlackHandle string
    SlackId string
    id String
    The provider-assigned unique ID for this managed resource.
    slackHandle String
    slackId String
    id string
    The provider-assigned unique ID for this managed resource.
    slackHandle string
    slackId string
    id str
    The provider-assigned unique ID for this managed resource.
    slack_handle str
    slack_id str
    id String
    The provider-assigned unique ID for this managed resource.
    slackHandle String
    slackId String

    Package Details

    Repository
    grafana pulumiverse/pulumi-grafana
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the grafana Terraform Provider.
    grafana logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse