GetCollaborators
Use this data source to retrieve the collaborators for a given repository.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var test = Output.Create(Github.GetCollaborators.InvokeAsync(new Github.GetCollaboratorsArgs
{
Owner = "example_owner",
Repository = "example_repository",
}));
}
}
Coming soon!
import pulumi
import pulumi_github as github
test = github.get_collaborators(owner="example_owner",
repository="example_repository")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const test = pulumi.output(github.getCollaborators({
owner: "example_owner",
repository: "example_repository",
}, { async: true }));Using GetCollaborators
function getCollaborators(args: GetCollaboratorsArgs, opts?: InvokeOptions): Promise<GetCollaboratorsResult>function get_collaborators(affiliation=None, owner=None, repository=None, opts=None)func GetCollaborators(ctx *Context, args *GetCollaboratorsArgs, opts ...InvokeOption) (*GetCollaboratorsResult, error)public static class GetCollaborators {
public static Task<GetCollaboratorsResult> InvokeAsync(GetCollaboratorsArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
- Owner string
The organization that owns the repository.
- Repository string
The name of the repository.
- Affiliation string
Filter collaborators returned by their affiliation. Can be one of:
outside,direct,all. Defaults toall.
- Owner string
The organization that owns the repository.
- Repository string
The name of the repository.
- Affiliation string
Filter collaborators returned by their affiliation. Can be one of:
outside,direct,all. Defaults toall.
- owner string
The organization that owns the repository.
- repository string
The name of the repository.
- affiliation string
Filter collaborators returned by their affiliation. Can be one of:
outside,direct,all. Defaults toall.
- owner str
The organization that owns the repository.
- repository str
The name of the repository.
- affiliation str
Filter collaborators returned by their affiliation. Can be one of:
outside,direct,all. Defaults toall.
GetCollaborators Result
The following output properties are available:
- Collaborators
List<Get
Collaborators Collaborator> An Array of GitHub collaborators. Each
collaboratorblock consists of the fields documented below.- Id string
The provider-assigned unique ID for this managed resource.
- Owner string
- Repository string
- Affiliation string
- Collaborators
[]Get
Collaborators Collaborator An Array of GitHub collaborators. Each
collaboratorblock consists of the fields documented below.- Id string
The provider-assigned unique ID for this managed resource.
- Owner string
- Repository string
- Affiliation string
- collaborators
Get
Collaborators Collaborator[] An Array of GitHub collaborators. Each
collaboratorblock consists of the fields documented below.- id string
The provider-assigned unique ID for this managed resource.
- owner string
- repository string
- affiliation string
- collaborators
List[Get
Collaborators Collaborator] An Array of GitHub collaborators. Each
collaboratorblock consists of the fields documented below.- id str
The provider-assigned unique ID for this managed resource.
- owner str
- repository str
- affiliation str
Supporting Types
GetCollaboratorsCollaborator
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Events
Url string The GitHub API URL for the collaborator’s events.
- Followers
Url string The GitHub API URL for the collaborator’s followers.
- Following
Url string The GitHub API URL for those following the collaborator.
- Gists
Url string The GitHub API URL for the collaborator’s gists.
- Html
Url string The GitHub HTML URL for the collaborator.
- Id int
The ID of the collaborator.
- Login string
The collaborator’s login.
- Organizations
Url string The GitHub API URL for the collaborator’s organizations.
- Permission string
The permission of the collaborator.
- Received
Events stringUrl The GitHub API URL for the collaborator’s received events.
- Repos
Url string The GitHub API URL for the collaborator’s repositories.
- Site
Admin bool Whether the user is a GitHub admin.
- Starred
Url string The GitHub API URL for the collaborator’s starred repositories.
- Subscriptions
Url string The GitHub API URL for the collaborator’s subscribed repositories.
- Type string
The type of the collaborator (ex.
user).- Url string
The GitHub API URL for the collaborator.
- Events
Url string The GitHub API URL for the collaborator’s events.
- Followers
Url string The GitHub API URL for the collaborator’s followers.
- Following
Url string The GitHub API URL for those following the collaborator.
- Gists
Url string The GitHub API URL for the collaborator’s gists.
- Html
Url string The GitHub HTML URL for the collaborator.
- Id int
The ID of the collaborator.
- Login string
The collaborator’s login.
- Organizations
Url string The GitHub API URL for the collaborator’s organizations.
- Permission string
The permission of the collaborator.
- Received
Events stringUrl The GitHub API URL for the collaborator’s received events.
- Repos
Url string The GitHub API URL for the collaborator’s repositories.
- Site
Admin bool Whether the user is a GitHub admin.
- Starred
Url string The GitHub API URL for the collaborator’s starred repositories.
- Subscriptions
Url string The GitHub API URL for the collaborator’s subscribed repositories.
- Type string
The type of the collaborator (ex.
user).- Url string
The GitHub API URL for the collaborator.
- events
Url string The GitHub API URL for the collaborator’s events.
- followers
Url string The GitHub API URL for the collaborator’s followers.
- following
Url string The GitHub API URL for those following the collaborator.
- gists
Url string The GitHub API URL for the collaborator’s gists.
- html
Url string The GitHub HTML URL for the collaborator.
- id number
The ID of the collaborator.
- login string
The collaborator’s login.
- organizations
Url string The GitHub API URL for the collaborator’s organizations.
- permission string
The permission of the collaborator.
- received
Events stringUrl The GitHub API URL for the collaborator’s received events.
- repos
Url string The GitHub API URL for the collaborator’s repositories.
- site
Admin boolean Whether the user is a GitHub admin.
- starred
Url string The GitHub API URL for the collaborator’s starred repositories.
- subscriptions
Url string The GitHub API URL for the collaborator’s subscribed repositories.
- type string
The type of the collaborator (ex.
user).- url string
The GitHub API URL for the collaborator.
- events
Url str The GitHub API URL for the collaborator’s events.
- followers
Url str The GitHub API URL for the collaborator’s followers.
- following
Url str The GitHub API URL for those following the collaborator.
- gists
Url str The GitHub API URL for the collaborator’s gists.
- html_
url str The GitHub HTML URL for the collaborator.
- id float
The ID of the collaborator.
- login str
The collaborator’s login.
- organizations
Url str The GitHub API URL for the collaborator’s organizations.
- permission str
The permission of the collaborator.
- received
Events strUrl The GitHub API URL for the collaborator’s received events.
- repos
Url str The GitHub API URL for the collaborator’s repositories.
- site
Admin bool Whether the user is a GitHub admin.
- starred
Url str The GitHub API URL for the collaborator’s starred repositories.
- subscriptions
Url str The GitHub API URL for the collaborator’s subscribed repositories.
- type str
The type of the collaborator (ex.
user).- url str
The GitHub API URL for the collaborator.
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.