getRepositoryTeams

Use this data source to retrieve the list of teams which have access to a GitHub repository.

Example Usage

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

Return

A collection of values returned by getRepositoryTeams.

Parameters

argument

A collection of arguments for invoking getRepositoryTeams.


suspend fun getRepositoryTeams(fullName: String? = null, name: String? = null): GetRepositoryTeamsResult

Return

A collection of values returned by getRepositoryTeams.

Parameters

fullName

Full name of the repository (in org/name format).

name

The name of the repository.

See also


Return

A collection of values returned by getRepositoryTeams.

Parameters

argument

Builder for com.pulumi.github.kotlin.inputs.GetRepositoryTeamsPlainArgs.

See also