Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
Use this data source to retrieve information about a GitHub team.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = github.getTeam({
slug: "example",
});
import pulumi
import pulumi_github as github
example = github.get_team(slug="example")
package main
import (
"github.com/pulumi/pulumi-github/sdk/v6/go/github"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := github.LookupTeam(ctx, &github.LookupTeamArgs{
Slug: "example",
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Github = Pulumi.Github;
return await Deployment.RunAsync(() =>
{
var example = Github.GetTeam.Invoke(new()
{
Slug = "example",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.github.GithubFunctions;
import com.pulumi.github.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 example = GithubFunctions.getTeam(GetTeamArgs.builder()
.slug("example")
.build());
}
}
variables:
example:
fn::invoke:
function: github:getTeam
arguments:
slug: example
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(membership_type: Optional[str] = None,
results_per_page: Optional[int] = None,
slug: Optional[str] = None,
summary_only: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetTeamResult
def get_team_output(membership_type: Optional[pulumi.Input[str]] = None,
results_per_page: Optional[pulumi.Input[int]] = None,
slug: Optional[pulumi.Input[str]] = None,
summary_only: Optional[pulumi.Input[bool]] = 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)
public static Output<GetTeamResult> getTeam(GetTeamArgs args, InvokeOptions options)
fn::invoke:
function: github:index/getTeam:getTeam
arguments:
# arguments dictionaryThe following arguments are supported:
- Slug string
- The team slug.
- Membership
Type string - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - Results
Per intPage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - Summary
Only bool - Exclude the members and repositories of the team from the returned result. Defaults to
false.
- Slug string
- The team slug.
- Membership
Type string - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - Results
Per intPage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - Summary
Only bool - Exclude the members and repositories of the team from the returned result. Defaults to
false.
- slug String
- The team slug.
- membership
Type String - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - results
Per IntegerPage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - summary
Only Boolean - Exclude the members and repositories of the team from the returned result. Defaults to
false.
- slug string
- The team slug.
- membership
Type string - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - results
Per numberPage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - summary
Only boolean - Exclude the members and repositories of the team from the returned result. Defaults to
false.
- slug str
- The team slug.
- membership_
type str - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - results_
per_ intpage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - summary_
only bool - Exclude the members and repositories of the team from the returned result. Defaults to
false.
- slug String
- The team slug.
- membership
Type String - Type of membership to be requested to fill the list of members. Can be either
all(default) orimmediate. - results
Per NumberPage - (Optional) Set the number of results per REST API query. Accepts a value between 0 - 100 (defaults to
100). - summary
Only Boolean - Exclude the members and repositories of the team from the returned result. Defaults to
false.
getTeam Result
The following output properties are available:
- Description string
- Team's description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Members List<string>
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - Name string
- Team's full name.
- Node
Id string - Node ID of the team.
- Notification
Setting string - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - Permission string
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- Privacy string
- Team's privacy type. Can either be
closedorsecret. - Repositories List<string>
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - Repositories
Detaileds List<GetTeam Repositories Detailed> - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - Slug string
- Membership
Type string - Results
Per intPage - Summary
Only bool
- Description string
- Team's description.
- Id string
- The provider-assigned unique ID for this managed resource.
- Members []string
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - Name string
- Team's full name.
- Node
Id string - Node ID of the team.
- Notification
Setting string - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - Permission string
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- Privacy string
- Team's privacy type. Can either be
closedorsecret. - Repositories []string
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - Repositories
Detaileds []GetTeam Repositories Detailed - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - Slug string
- Membership
Type string - Results
Per intPage - Summary
Only bool
- description String
- Team's description.
- id String
- The provider-assigned unique ID for this managed resource.
- members List<String>
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - name String
- Team's full name.
- node
Id String - Node ID of the team.
- notification
Setting String - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - permission String
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- privacy String
- Team's privacy type. Can either be
closedorsecret. - repositories List<String>
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - repositories
Detaileds List<GetTeam Repositories Detailed> - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - slug String
- membership
Type String - results
Per IntegerPage - summary
Only Boolean
- description string
- Team's description.
- id string
- The provider-assigned unique ID for this managed resource.
- members string[]
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - name string
- Team's full name.
- node
Id string - Node ID of the team.
- notification
Setting string - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - permission string
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- privacy string
- Team's privacy type. Can either be
closedorsecret. - repositories string[]
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - repositories
Detaileds GetTeam Repositories Detailed[] - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - slug string
- membership
Type string - results
Per numberPage - summary
Only boolean
- description str
- Team's description.
- id str
- The provider-assigned unique ID for this managed resource.
- members Sequence[str]
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - name str
- Team's full name.
- node_
id str - Node ID of the team.
- notification_
setting str - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - permission str
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- privacy str
- Team's privacy type. Can either be
closedorsecret. - repositories Sequence[str]
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - repositories_
detaileds Sequence[GetTeam Repositories Detailed] - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - slug str
- membership_
type str - results_
per_ intpage - summary_
only bool
- description String
- Team's description.
- id String
- The provider-assigned unique ID for this managed resource.
- members List<String>
- List of team members (list of GitHub usernames). Not returned if
summary_only </span>= true. - name String
- Team's full name.
- node
Id String - Node ID of the team.
- notification
Setting String - Teams's notification setting. Can be either
notifications_enabledornotifications_disabled. - permission String
- (DEPRECATED) The permission that new repositories will be added to the team with when none is specified.
- privacy String
- Team's privacy type. Can either be
closedorsecret. - repositories List<String>
- (DEPRECATED) List of team repositories (list of repo names). Not returned if
summary_only </span>= true. - repositories
Detaileds List<Property Map> - List of team repositories (each item comprises of
repo_id,repo_name&role_name). Not returned ifsummary_only </span>= true. - slug String
- membership
Type String - results
Per NumberPage - summary
Only Boolean
Supporting Types
GetTeamRepositoriesDetailed
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.
Viewing docs for GitHub v6.12.1
published on Thursday, Feb 12, 2026 by Pulumi
published on Thursday, Feb 12, 2026 by Pulumi
