1. Packages
  2. Upstash
  3. API Docs
  4. getTeam
Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash

upstash.getTeam

Explore with Pulumi AI

upstash logo
Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash

    Example Usage

    using Pulumi;
    using Upstash = Pulumi.Upstash;
    
    class MyStack : Stack
    {
        public MyStack()
        {
            var teamData = Output.Create(Upstash.GetTeam.InvokeAsync(new Upstash.GetTeamArgs
            {
                TeamId = resource.Upstash_team.ExampleTeam.Team_id,
            }));
        }
    
    }
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-upstash/sdk/go/upstash"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/upstash/pulumi-upstash/sdk/go/upstash"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := upstash.LookupTeam(ctx, &GetTeamArgs{
    			TeamId: resource.Upstash_team.ExampleTeam.Team_id,
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import java.util.*;
    import java.io.*;
    import java.nio.*;
    import com.pulumi.*;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var teamData = Output.of(UpstashFunctions.getTeam(GetTeamArgs.builder()
                .teamId(resource.upstash_team().exampleTeam().team_id())
                .build()));
    
        }
    }
    
    import pulumi
    import pulumi_upstash as upstash
    
    team_data = upstash.get_team(team_id=resource["upstash_team"]["exampleTeam"]["team_id"])
    
    import * as pulumi from "@pulumi/pulumi";
    import * as upstash from "@pulumi/upstash";
    
    const teamData = upstash.getTeam({
        teamId: resource.upstash_team.exampleTeam.team_id,
    });
    
    variables:
      teamData:
        Fn::Invoke:
          Function: upstash:getTeam
          Arguments:
            teamId: ${resource.upstash_team.exampleTeam.team_id}
    

    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(team_id: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(team_id: 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: upstash:index/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    TeamId string
    TeamId string
    teamId String
    teamId string
    teamId String

    getTeam Result

    The following output properties are available:

    CopyCc bool
    Id string
    The provider-assigned unique ID for this managed resource.
    TeamId string
    TeamMembers Dictionary<string, string>
    TeamName string
    CopyCc bool
    Id string
    The provider-assigned unique ID for this managed resource.
    TeamId string
    TeamMembers map[string]string
    TeamName string
    copyCc Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    teamId String
    teamMembers Map<String,String>
    teamName String
    copyCc boolean
    id string
    The provider-assigned unique ID for this managed resource.
    teamId string
    teamMembers {[key: string]: string}
    teamName string
    copy_cc bool
    id str
    The provider-assigned unique ID for this managed resource.
    team_id str
    team_members Mapping[str, str]
    team_name str
    copyCc Boolean
    id String
    The provider-assigned unique ID for this managed resource.
    teamId String
    teamMembers Map<String>
    teamName String

    Package Details

    Repository
    upstash upstash/pulumi-upstash
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the upstash Terraform Provider.
    upstash logo
    Upstash v0.2.0 published on Wednesday, May 24, 2023 by Upstash