GitHub v6.3.2 published on Friday, Oct 11, 2024 by Pulumi
github.getRepositoryTeams
Explore with Pulumi AI
Use this data source to retrieve the list of teams which have access to a GitHub repository.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = github.getRepositoryTeams({
name: "example",
});
import pulumi
import pulumi_github as github
example = github.get_repository_teams(name="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.GetRepositoryTeams(ctx, &github.GetRepositoryTeamsArgs{
Name: pulumi.StringRef("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.GetRepositoryTeams.Invoke(new()
{
Name = "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.GetRepositoryTeamsArgs;
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.getRepositoryTeams(GetRepositoryTeamsArgs.builder()
.name("example")
.build());
}
}
variables:
example:
fn::invoke:
Function: github:getRepositoryTeams
Arguments:
name: example
Using getRepositoryTeams
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 getRepositoryTeams(args: GetRepositoryTeamsArgs, opts?: InvokeOptions): Promise<GetRepositoryTeamsResult>
function getRepositoryTeamsOutput(args: GetRepositoryTeamsOutputArgs, opts?: InvokeOptions): Output<GetRepositoryTeamsResult>
def get_repository_teams(full_name: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRepositoryTeamsResult
def get_repository_teams_output(full_name: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRepositoryTeamsResult]
func GetRepositoryTeams(ctx *Context, args *GetRepositoryTeamsArgs, opts ...InvokeOption) (*GetRepositoryTeamsResult, error)
func GetRepositoryTeamsOutput(ctx *Context, args *GetRepositoryTeamsOutputArgs, opts ...InvokeOption) GetRepositoryTeamsResultOutput
> Note: This function is named GetRepositoryTeams
in the Go SDK.
public static class GetRepositoryTeams
{
public static Task<GetRepositoryTeamsResult> InvokeAsync(GetRepositoryTeamsArgs args, InvokeOptions? opts = null)
public static Output<GetRepositoryTeamsResult> Invoke(GetRepositoryTeamsInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetRepositoryTeamsResult> getRepositoryTeams(GetRepositoryTeamsArgs args, InvokeOptions options)
// Output-based functions aren't available in Java yet
fn::invoke:
function: github:index/getRepositoryTeams:getRepositoryTeams
arguments:
# arguments dictionary
The following arguments are supported:
getRepositoryTeams Result
The following output properties are available:
- Full
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Team name
- Teams
List<Get
Repository Teams Team> - List of teams which have access to the repository
- Full
Name string - Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- Team name
- Teams
[]Get
Repository Teams Team - List of teams which have access to the repository
- full
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Team name
- teams
List<Get
Repository Teams Team> - List of teams which have access to the repository
- full
Name string - id string
- The provider-assigned unique ID for this managed resource.
- name string
- Team name
- teams
Get
Repository Teams Team[] - List of teams which have access to the repository
- full_
name str - id str
- The provider-assigned unique ID for this managed resource.
- name str
- Team name
- teams
Sequence[Get
Repository Teams Team] - List of teams which have access to the repository
- full
Name String - id String
- The provider-assigned unique ID for this managed resource.
- name String
- Team name
- teams List<Property Map>
- List of teams which have access to the repository
Supporting Types
GetRepositoryTeamsTeam
- Name string
- The name of the repository.
- Permission string
- Team permission
- Slug string
- Team slug
- Name string
- The name of the repository.
- Permission string
- Team permission
- Slug string
- Team slug
- name String
- The name of the repository.
- permission String
- Team permission
- slug String
- Team slug
- name string
- The name of the repository.
- permission string
- Team permission
- slug string
- Team slug
- name str
- The name of the repository.
- permission str
- Team permission
- slug str
- Team slug
- name String
- The name of the repository.
- permission String
- Team permission
- slug String
- Team slug
Package Details
- Repository
- GitHub pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
github
Terraform Provider.