get Organization Teams
Use this data source to retrieve information about all GitHub teams in an organization.
Example Usage
To retrieve all teams of the organization:
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.GetOrganizationTeamsArgs;
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 all = GithubFunctions.getOrganizationTeams();
}
}
Return
A collection of values returned by getOrganizationTeams.
Parameters
A collection of arguments for invoking getOrganizationTeams.
Return
A collection of values returned by getOrganizationTeams.
Parameters
(Optional) Set the number of results per graphql query. Reducing this number can alleviate timeout errors. Accepts a value between 0 - 100. Defaults to 100
.
(Optional) Only return teams that are at the organization's root, i.e. no nested teams. Defaults to false
.
(Optional) Exclude the members and repositories of the team from the returned result. Defaults to false
.
See also
Return
A collection of values returned by getOrganizationTeams.
Parameters
Builder for com.pulumi.github.kotlin.inputs.GetOrganizationTeamsPlainArgs.