Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse
grafana.getOncallUserGroup
Explore with Pulumi AI
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:
- Slack
Handle string
- Slack
Handle string
- slack
Handle String
- slack
Handle string
- slack_
handle str
- slack
Handle String
getOncallUserGroup 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.