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

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",
    });

});
Copy
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
	})
}
Copy
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());

    }
}
Copy
import * as pulumi from "@pulumi/pulumi";
import * as launchdarkly from "@pulumi/launchdarkly";

const platformTeam = launchdarkly.getTeam({
    key: "platform_team",
});
Copy
import pulumi
import pulumi_launchdarkly as launchdarkly

platform_team = launchdarkly.get_team(key="platform_team")
Copy
variables:
  platformTeam:
    fn::invoke:
      Function: launchdarkly:getTeam
      Arguments:
        key: platform_team
Copy

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>
Copy
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]
Copy
func LookupTeam(ctx *Context, args *LookupTeamArgs, opts ...InvokeOption) (*LookupTeamResult, error)
func LookupTeamOutput(ctx *Context, args *LookupTeamOutputArgs, opts ...InvokeOption) LookupTeamResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: launchdarkly:index/getTeam:getTeam
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Key This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. 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 This property is required. string
FirstName This property is required. string
Id This property is required. string
LastName This property is required. string
Role This property is required. string
Email This property is required. string
FirstName This property is required. string
Id This property is required. string
LastName This property is required. string
Role This property is required. string
email This property is required. String
firstName This property is required. String
id This property is required. String
lastName This property is required. String
role This property is required. String
email This property is required. string
firstName This property is required. string
id This property is required. string
lastName This property is required. string
role This property is required. string
email This property is required. str
first_name This property is required. str
id This property is required. str
last_name This property is required. str
role This property is required. str
email This property is required. String
firstName This property is required. String
id This property is required. String
lastName This property is required. String
role This property is required. String

Package Details

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