Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
grafana.onCall.getUserGroup
Explore with Pulumi AI
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 getUserGroup
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 getUserGroup(args: GetUserGroupArgs, opts?: InvokeOptions): Promise<GetUserGroupResult>
function getUserGroupOutput(args: GetUserGroupOutputArgs, opts?: InvokeOptions): Output<GetUserGroupResult>
def get_user_group(slack_handle: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetUserGroupResult
def get_user_group_output(slack_handle: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetUserGroupResult]
func GetUserGroup(ctx *Context, args *GetUserGroupArgs, opts ...InvokeOption) (*GetUserGroupResult, error)
func GetUserGroupOutput(ctx *Context, args *GetUserGroupOutputArgs, opts ...InvokeOption) GetUserGroupResultOutput
> Note: This function is named GetUserGroup
in the Go SDK.
public static class GetUserGroup
{
public static Task<GetUserGroupResult> InvokeAsync(GetUserGroupArgs args, InvokeOptions? opts = null)
public static Output<GetUserGroupResult> Invoke(GetUserGroupInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetUserGroupResult> getUserGroup(GetUserGroupArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: grafana:onCall/getUserGroup:getUserGroup
arguments:
# arguments dictionary
The following arguments are supported:
- Slack
Handle string
- Slack
Handle string
- slack
Handle String
- slack
Handle string
- slack_
handle str
- slack
Handle String
getUserGroup Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Slack
Handle string - Slack
Id string
- Id string
- The provider-assigned unique ID for this managed resource.
- Slack
Handle string - Slack
Id string
- id String
- The provider-assigned unique ID for this managed resource.
- slack
Handle String - slack
Id String
- id string
- The provider-assigned unique ID for this managed resource.
- slack
Handle string - slack
Id 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.
- slack
Handle String - slack
Id String
Package Details
- Repository
- grafana pulumiverse/pulumi-grafana
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
grafana
Terraform Provider.