1. Packages
  2. Grafana Cloud
  3. API Docs
  4. getOncallTeam
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse

grafana.getOncallTeam

Explore with Pulumi AI

Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse
Deprecated: grafana.index/getoncallteam.getOncallTeam has been deprecated in favor of grafana.oncall/getteam.getTeam

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as grafana from "@pulumi/grafana";

const exampleTeam = grafana.onCall.getTeam({
    name: "example_team",
});
Copy
import pulumi
import pulumi_grafana as grafana

example_team = grafana.onCall.get_team(name="example_team")
Copy
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.GetTeam(ctx, &oncall.GetTeamArgs{
			Name: "example_team",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Grafana = Pulumi.Grafana;

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

});
Copy
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.GetTeamArgs;
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 = OnCallFunctions.getTeam(GetTeamArgs.builder()
            .name("example_team")
            .build());

    }
}
Copy
variables:
  exampleTeam:
    fn::invoke:
      function: grafana:onCall:getTeam
      arguments:
        name: example_team
Copy

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>
Copy
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]
Copy
func GetOncallTeam(ctx *Context, args *GetOncallTeamArgs, opts ...InvokeOption) (*GetOncallTeamResult, error)
func GetOncallTeamOutput(ctx *Context, args *GetOncallTeamOutputArgs, opts ...InvokeOption) GetOncallTeamResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetOncallTeamResult> getOncallTeam(GetOncallTeamArgs args, InvokeOptions options)
public static Output<GetOncallTeamResult> getOncallTeam(GetOncallTeamArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: grafana:index/getOncallTeam:getOncallTeam
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Name This property is required. string
The team name.
Name This property is required. string
The team name.
name This property is required. String
The team name.
name This property is required. string
The team name.
name This property is required. str
The team name.
name This property is required. 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 pulumiverse/pulumi-grafana
License
Apache-2.0
Notes
This Pulumi package is based on the grafana Terraform Provider.
Grafana v0.16.3 published on Monday, Apr 7, 2025 by pulumiverse