1. Packages
  2. Rootly
  3. API Docs
  4. getTeam
Rootly v1.2.1 published on Tuesday, Apr 2, 2024 by Rootly

rootly.getTeam

Explore with Pulumi AI

rootly logo
Rootly v1.2.1 published on Tuesday, Apr 2, 2024 by Rootly

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rootly = Pulumi.Rootly;
    
    return await Deployment.RunAsync(() => 
    {
        var my_team = Rootly.GetTeam.Invoke(new()
        {
            Slug = "my-team",
        });
    
    });
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-rootly/sdk/go/rootly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := rootly.LookupTeam(ctx, &rootly.LookupTeamArgs{
    			Slug: pulumi.StringRef("my-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.rootly.RootlyFunctions;
    import com.pulumi.rootly.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 my-team = RootlyFunctions.getTeam(GetTeamArgs.builder()
                .slug("my-team")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_rootly as rootly
    
    my_team = rootly.get_team(slug="my-team")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as rootly from "@pulumi/rootly";
    
    const my-team = rootly.getTeam({
        slug: "my-team",
    });
    
    variables:
      my-team:
        fn::invoke:
          Function: rootly:getTeam
          Arguments:
            slug: my-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(color: Optional[str] = None,
                 created_at: Optional[Mapping[str, Any]] = None,
                 name: Optional[str] = None,
                 slug: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(color: Optional[pulumi.Input[str]] = None,
                 created_at: Optional[pulumi.Input[Mapping[str, Any]]] = None,
                 name: Optional[pulumi.Input[str]] = None,
                 slug: Optional[pulumi.Input[str]] = None,
                 opts: Optional[InvokeOptions] = None) -> Output[GetTeamResult]
    func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
    func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput

    > Note: This function is named LookupTeam 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: rootly:index/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Color string
    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    Color string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    Name string
    Slug string
    color String
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String
    color string
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    name string
    slug string
    color str
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    name str
    slug str
    color String
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.
    name String
    slug String

    getTeam Result

    The following output properties are available:

    Color string
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt Dictionary<string, object>
    Filter by date range using 'lt' and 'gt'.
    Color string
    Id string
    The ID of this resource.
    Name string
    Slug string
    CreatedAt map[string]interface{}
    Filter by date range using 'lt' and 'gt'.
    color String
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<String,Object>
    Filter by date range using 'lt' and 'gt'.
    color string
    id string
    The ID of this resource.
    name string
    slug string
    createdAt {[key: string]: any}
    Filter by date range using 'lt' and 'gt'.
    color str
    id str
    The ID of this resource.
    name str
    slug str
    created_at Mapping[str, Any]
    Filter by date range using 'lt' and 'gt'.
    color String
    id String
    The ID of this resource.
    name String
    slug String
    createdAt Map<Any>
    Filter by date range using 'lt' and 'gt'.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Rootly v1.2.1 published on Tuesday, Apr 2, 2024 by Rootly