1. Packages
  2. Buildkite
  3. API Docs
  4. Team
  5. getTeam
Buildkite v3.1.6 published on Wednesday, Apr 3, 2024 by Pulumiverse

buildkite.Team.getTeam

Explore with Pulumi AI

buildkite logo
Buildkite v3.1.6 published on Wednesday, Apr 3, 2024 by Pulumiverse

    Use this data source to retrieve a team by slug or id. You can find out more about teams in the Buildkite documentation.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as buildkite from "@pulumi/buildkite";
    
    const teamDev = buildkite.Team.getTeam({
        id: buildkite_team.team_dev.id,
    });
    const team = buildkite.Team.getTeam({
        slug: "Everyone",
    });
    
    import pulumi
    import pulumi_buildkite as buildkite
    
    team_dev = buildkite.Team.get_team(id=buildkite_team["team_dev"]["id"])
    team = buildkite.Team.get_team(slug="Everyone")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-buildkite/sdk/v3/go/buildkite/Team"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := Team.GetTeam(ctx, &team.GetTeamArgs{
    			Id: pulumi.StringRef(buildkite_team.Team_dev.Id),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = Team.GetTeam(ctx, &team.GetTeamArgs{
    			Slug: pulumi.StringRef("Everyone"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Buildkite = Pulumi.Buildkite;
    
    return await Deployment.RunAsync(() => 
    {
        var teamDev = Buildkite.Team.GetTeam.Invoke(new()
        {
            Id = buildkite_team.Team_dev.Id,
        });
    
        var team = Buildkite.Team.GetTeam.Invoke(new()
        {
            Slug = "Everyone",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.buildkite.Team.TeamFunctions;
    import com.pulumi.buildkite.Team.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 teamDev = TeamFunctions.getTeam(GetTeamArgs.builder()
                .id(buildkite_team.team_dev().id())
                .build());
    
            final var team = TeamFunctions.getTeam(GetTeamArgs.builder()
                .slug("Everyone")
                .build());
    
        }
    }
    
    variables:
      teamDev:
        fn::invoke:
          Function: buildkite:Team:getTeam
          Arguments:
            id: ${buildkite_team.team_dev.id}
      team:
        fn::invoke:
          Function: buildkite:Team:getTeam
          Arguments:
            slug: Everyone
    

    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(id: Optional[str] = None,
                 slug: Optional[str] = None,
                 opts: Optional[InvokeOptions] = None) -> GetTeamResult
    def get_team_output(id: Optional[pulumi.Input[str]] = None,
                 slug: 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: buildkite:Team/getTeam:getTeam
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    The GraphQL ID of the team to find.
    Slug string
    The slug of the team to find.
    Id string
    The GraphQL ID of the team to find.
    Slug string
    The slug of the team to find.
    id String
    The GraphQL ID of the team to find.
    slug String
    The slug of the team to find.
    id string
    The GraphQL ID of the team to find.
    slug string
    The slug of the team to find.
    id str
    The GraphQL ID of the team to find.
    slug str
    The slug of the team to find.
    id String
    The GraphQL ID of the team to find.
    slug String
    The slug of the team to find.

    getTeam Result

    The following output properties are available:

    DefaultMemberRole string
    The default member role of the team.
    DefaultTeam bool
    Whether the team is the default team.
    Description string
    The description of the team.
    Id string
    The GraphQL ID of the team to find.
    MembersCanCreatePipelines bool
    Whether members can create pipelines.
    Name string
    The name of the team.
    Privacy string
    The privacy setting of the team.
    Slug string
    The slug of the team to find.
    Uuid string
    The UUID of the team.
    DefaultMemberRole string
    The default member role of the team.
    DefaultTeam bool
    Whether the team is the default team.
    Description string
    The description of the team.
    Id string
    The GraphQL ID of the team to find.
    MembersCanCreatePipelines bool
    Whether members can create pipelines.
    Name string
    The name of the team.
    Privacy string
    The privacy setting of the team.
    Slug string
    The slug of the team to find.
    Uuid string
    The UUID of the team.
    defaultMemberRole String
    The default member role of the team.
    defaultTeam Boolean
    Whether the team is the default team.
    description String
    The description of the team.
    id String
    The GraphQL ID of the team to find.
    membersCanCreatePipelines Boolean
    Whether members can create pipelines.
    name String
    The name of the team.
    privacy String
    The privacy setting of the team.
    slug String
    The slug of the team to find.
    uuid String
    The UUID of the team.
    defaultMemberRole string
    The default member role of the team.
    defaultTeam boolean
    Whether the team is the default team.
    description string
    The description of the team.
    id string
    The GraphQL ID of the team to find.
    membersCanCreatePipelines boolean
    Whether members can create pipelines.
    name string
    The name of the team.
    privacy string
    The privacy setting of the team.
    slug string
    The slug of the team to find.
    uuid string
    The UUID of the team.
    default_member_role str
    The default member role of the team.
    default_team bool
    Whether the team is the default team.
    description str
    The description of the team.
    id str
    The GraphQL ID of the team to find.
    members_can_create_pipelines bool
    Whether members can create pipelines.
    name str
    The name of the team.
    privacy str
    The privacy setting of the team.
    slug str
    The slug of the team to find.
    uuid str
    The UUID of the team.
    defaultMemberRole String
    The default member role of the team.
    defaultTeam Boolean
    Whether the team is the default team.
    description String
    The description of the team.
    id String
    The GraphQL ID of the team to find.
    membersCanCreatePipelines Boolean
    Whether members can create pipelines.
    name String
    The name of the team.
    privacy String
    The privacy setting of the team.
    slug String
    The slug of the team to find.
    uuid String
    The UUID of the team.

    Package Details

    Repository
    buildkite pulumiverse/pulumi-buildkite
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the buildkite Terraform Provider.
    buildkite logo
    Buildkite v3.1.6 published on Wednesday, Apr 3, 2024 by Pulumiverse