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

grafana.onCall.getTeam

Explore with Pulumi AI

grafana logo
Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as grafana from "@pulumi/grafana";
    
    const exampleTeam = grafana.onCall.getTeam({
        name: "example_team",
    });
    
    import pulumi
    import pulumi_grafana as grafana
    
    example_team = grafana.onCall.get_team(name="example_team")
    
    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
    	})
    }
    
    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",
        });
    
    });
    
    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());
    
        }
    }
    
    variables:
      exampleTeam:
        fn::invoke:
          Function: grafana:onCall:getTeam
          Arguments:
            name: example_team
    

    Using getTeam

    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 getTeam(args: GetTeamArgs, opts?: InvokeOptions): Promise<GetTeamResult>
    function getTeamOutput(args: GetTeamOutputArgs, opts?: InvokeOptions): Output<GetTeamResult>
    def get_team(name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(name: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]
    func GetTeam(ctx *Context, args *GetTeamArgs, opts ...InvokeOption) (*GetTeamResult, error)
    func GetTeamOutput(ctx *Context, args *GetTeamOutputArgs, opts ...InvokeOption) GetTeamResultOutput

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

    public static class GetTeam 
    {
        public static Task<GetTeamResult> InvokeAsync(GetTeamArgs args, InvokeOptions? opts = null)
        public static Output<GetTeamResult> Invoke(GetTeamInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
    // Output-based functions aren't available in Java yet
    
    fn::invoke:
      function: grafana:onCall/getTeam:getTeam
      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.

    getTeam 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 logo
    Grafana v0.7.0 published on Tuesday, Nov 5, 2024 by pulumiverse