1. Packages
  2. Launch Darkly
  3. API Docs
  4. getTeam
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

launchdarkly.getTeam

Explore with Pulumi AI

launchdarkly logo
Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs

    Provides a LaunchDarkly team data source.

    This data source allows you to retrieve team information from your LaunchDarkly organization.

    Note: Teams are available to customers on an Enterprise LaunchDarkly plan. To learn more, read about our pricing. To upgrade your plan, contact LaunchDarkly Sales.

    Example Usage

    using System.Collections.Generic;
    using Pulumi;
    using Launchdarkly = Pulumi.Launchdarkly;
    
    return await Deployment.RunAsync(() => 
    {
        var platformTeam = Launchdarkly.GetTeam.Invoke(new()
        {
            Key = "platform_team",
        });
    
    });
    
    package main
    
    import (
    	"github.com/lbrlabs/pulumi-launchdarkly/sdk/go/launchdarkly"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err = launchdarkly.LookupTeam(ctx, &launchdarkly.LookupTeamArgs{
    			Key: "platform_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.launchdarkly.LaunchdarklyFunctions;
    import com.pulumi.launchdarkly.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 platformTeam = LaunchdarklyFunctions.getTeam(GetTeamArgs.builder()
                .key("platform_team")
                .build());
    
        }
    }
    
    import pulumi
    import pulumi_launchdarkly as launchdarkly
    
    platform_team = launchdarkly.get_team(key="platform_team")
    
    import * as pulumi from "@pulumi/pulumi";
    import * as launchdarkly from "@pulumi/launchdarkly";
    
    const platformTeam = launchdarkly.getTeam({
        key: "platform_team",
    });
    
    variables:
      platformTeam:
        fn::invoke:
          Function: launchdarkly:getTeam
          Arguments:
            key: platform_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(custom_role_keys: Optional[Sequence[str]] = None,
                 description: Optional[str] = None,
                 key: Optional[str] = None,
                 name: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(custom_role_keys: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
                 description: Optional[pulumi.Input[str]] = None,
                 key: Optional[pulumi.Input[str]] = None,
                 name: 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: launchdarkly:index/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Key string
    The team key.
    CustomRoleKeys List<string>
    The list of the keys of the custom roles that you have assigned to the team.
    Description string
    The team description.
    Name string
    Human readable name for the team.
    Key string
    The team key.
    CustomRoleKeys []string
    The list of the keys of the custom roles that you have assigned to the team.
    Description string
    The team description.
    Name string
    Human readable name for the team.
    key String
    The team key.
    customRoleKeys List<String>
    The list of the keys of the custom roles that you have assigned to the team.
    description String
    The team description.
    name String
    Human readable name for the team.
    key string
    The team key.
    customRoleKeys string[]
    The list of the keys of the custom roles that you have assigned to the team.
    description string
    The team description.
    name string
    Human readable name for the team.
    key str
    The team key.
    custom_role_keys Sequence[str]
    The list of the keys of the custom roles that you have assigned to the team.
    description str
    The team description.
    name str
    Human readable name for the team.
    key String
    The team key.
    customRoleKeys List<String>
    The list of the keys of the custom roles that you have assigned to the team.
    description String
    The team description.
    name String
    Human readable name for the team.

    getTeam Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Maintainers List<Lbrlabs.PulumiPackage.Launchdarkly.Outputs.GetTeamMaintainer>
    The list of team maintainers as team member objects.
    ProjectKeys List<string>
    The list of keys of the projects that the team has any write access to.
    CustomRoleKeys List<string>
    The list of the keys of the custom roles that you have assigned to the team.
    Description string
    The team description.
    Name string
    Human readable name for the team.
    Id string
    The provider-assigned unique ID for this managed resource.
    Key string
    Maintainers []GetTeamMaintainer
    The list of team maintainers as team member objects.
    ProjectKeys []string
    The list of keys of the projects that the team has any write access to.
    CustomRoleKeys []string
    The list of the keys of the custom roles that you have assigned to the team.
    Description string
    The team description.
    Name string
    Human readable name for the team.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    maintainers List<GetTeamMaintainer>
    The list of team maintainers as team member objects.
    projectKeys List<String>
    The list of keys of the projects that the team has any write access to.
    customRoleKeys List<String>
    The list of the keys of the custom roles that you have assigned to the team.
    description String
    The team description.
    name String
    Human readable name for the team.
    id string
    The provider-assigned unique ID for this managed resource.
    key string
    maintainers GetTeamMaintainer[]
    The list of team maintainers as team member objects.
    projectKeys string[]
    The list of keys of the projects that the team has any write access to.
    customRoleKeys string[]
    The list of the keys of the custom roles that you have assigned to the team.
    description string
    The team description.
    name string
    Human readable name for the team.
    id str
    The provider-assigned unique ID for this managed resource.
    key str
    maintainers Sequence[GetTeamMaintainer]
    The list of team maintainers as team member objects.
    project_keys Sequence[str]
    The list of keys of the projects that the team has any write access to.
    custom_role_keys Sequence[str]
    The list of the keys of the custom roles that you have assigned to the team.
    description str
    The team description.
    name str
    Human readable name for the team.
    id String
    The provider-assigned unique ID for this managed resource.
    key String
    maintainers List<Property Map>
    The list of team maintainers as team member objects.
    projectKeys List<String>
    The list of keys of the projects that the team has any write access to.
    customRoleKeys List<String>
    The list of the keys of the custom roles that you have assigned to the team.
    description String
    The team description.
    name String
    Human readable name for the team.

    Supporting Types

    GetTeamMaintainer

    Email string
    FirstName string
    Id string
    LastName string
    Role string
    Email string
    FirstName string
    Id string
    LastName string
    Role string
    email String
    firstName String
    id String
    lastName String
    role String
    email string
    firstName string
    id string
    lastName string
    role string
    email str
    first_name str
    id str
    last_name str
    role str
    email String
    firstName String
    id String
    lastName String
    role String

    Package Details

    Repository
    launchdarkly lbrlabs/pulumi-launchdarkly
    License
    Notes
    This Pulumi package is based on the launchdarkly Terraform Provider.
    launchdarkly logo
    Launch Darkly v0.0.6 published on Sunday, Feb 19, 2023 by lbrlabs