grafana logo
Grafana v0.0.10, May 21 23

grafana.getOncallTeam

Explore with Pulumi AI

Example Usage

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;

return await Deployment.RunAsync(() => 
{
    var exampleTeam = Grafana.GetOncallTeam.Invoke(new()
    {
        Name = "example_team",
    });

});
package main

import (
	"github.com/lbrlabs/pulumi-grafana/sdk/go/grafana"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := grafana.GetOncallTeam(ctx, &grafana.GetOncallTeamArgs{
			Name: "example_team",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.grafana.GrafanaFunctions;
import com.pulumi.grafana.inputs.GetOncallTeamArgs;
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 exampleTeam = GrafanaFunctions.getOncallTeam(GetOncallTeamArgs.builder()
            .name("example_team")
            .build());

    }
}
import pulumi
import pulumi_grafana as grafana

example_team = grafana.get_oncall_team(name="example_team")
import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";

const exampleTeam = grafana.getOncallTeam({
    name: "example_team",
});
variables:
  exampleTeam:
    fn::invoke:
      Function: grafana:getOncallTeam
      Arguments:
        name: example_team

Using getOncallTeam

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 getOncallTeam(args: GetOncallTeamArgs, opts?: InvokeOptions): Promise<GetOncallTeamResult>
function getOncallTeamOutput(args: GetOncallTeamOutputArgs, opts?: InvokeOptions): Output<GetOncallTeamResult>
def get_oncall_team(name: Optional[str] = None,
                    opts: Optional[InvokeOptions] = None) -> GetOncallTeamResult
def get_oncall_team_output(name: Optional[pulumi.Input[str]] = None,
                    opts: Optional[InvokeOptions] = None) -> Output[GetOncallTeamResult]
func GetOncallTeam(ctx *Context, args *GetOncallTeamArgs, opts ...InvokeOption) (*GetOncallTeamResult, error)
func GetOncallTeamOutput(ctx *Context, args *GetOncallTeamOutputArgs, opts ...InvokeOption) GetOncallTeamResultOutput

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

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

The following arguments are supported:

Name string

The team name.

Name string

The team name.

name String

The team name.

name string

The team name.

name str

The team name.

name String

The team name.

getOncallTeam Result

The following output properties are available:

AvatarUrl string
Email string
Id string

The provider-assigned unique ID for this managed resource.

Name string

The team name.

AvatarUrl string
Email string
Id string

The provider-assigned unique ID for this managed resource.

Name string

The team name.

avatarUrl String
email String
id String

The provider-assigned unique ID for this managed resource.

name String

The team name.

avatarUrl string
email string
id string

The provider-assigned unique ID for this managed resource.

name string

The team name.

avatar_url str
email str
id str

The provider-assigned unique ID for this managed resource.

name str

The team name.

avatarUrl String
email String
id String

The provider-assigned unique ID for this managed resource.

name String

The team name.

Package Details

Repository
grafana lbrlabs/pulumi-grafana
License
Apache-2.0
Notes

This Pulumi package is based on the grafana Terraform Provider.