GetUser
Use this data source to retrieve information about a GitHub user.
Example Usage
using Pulumi;
using Github = Pulumi.Github;
class MyStack : Stack
{
public MyStack()
{
var example = Output.Create(Github.GetUser.InvokeAsync(new Github.GetUserArgs
{
Username = "example",
}));
}
}
Coming soon!
import pulumi
import pulumi_github as github
example = github.get_user(username="example")import * as pulumi from "@pulumi/pulumi";
import * as github from "@pulumi/github";
const example = pulumi.output(github.getUser({
username: "example",
}, { async: true }));Using GetUser
function getUser(args: GetUserArgs, opts?: InvokeOptions): Promise<GetUserResult>function get_user(username=None, opts=None)func GetUser(ctx *Context, args *GetUserArgs, opts ...InvokeOption) (*GetUserResult, error)public static class GetUser {
public static Task<GetUserResult> InvokeAsync(GetUserArgs args, InvokeOptions? opts = null)
}The following arguments are supported:
GetUser Result
The following output properties are available:
- Avatar
Url string the user’s avatar URL.
- Bio string
the user’s bio.
- Blog string
the user’s blog location.
- Company string
the user’s company name.
- Created
At string the creation date.
- Email string
the user’s email.
- Followers int
the number of followers.
- Following int
the number of following users.
- Gpg
Keys List<string> list of user’s GPG keys.
- Gravatar
Id string the user’s gravatar ID.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
the user’s location.
- Login string
the user’s login.
- Name string
the user’s full name.
- Node
Id string - Public
Gists int the number of public gists.
- Public
Repos int the number of public repositories.
- Site
Admin bool whether the user is a GitHub admin.
- Ssh
Keys List<string> list of user’s SSH keys.
- Updated
At string the update date.
- Username string
- Avatar
Url string the user’s avatar URL.
- Bio string
the user’s bio.
- Blog string
the user’s blog location.
- Company string
the user’s company name.
- Created
At string the creation date.
- Email string
the user’s email.
- Followers int
the number of followers.
- Following int
the number of following users.
- Gpg
Keys []string list of user’s GPG keys.
- Gravatar
Id string the user’s gravatar ID.
- Id string
The provider-assigned unique ID for this managed resource.
- Location string
the user’s location.
- Login string
the user’s login.
- Name string
the user’s full name.
- Node
Id string - Public
Gists int the number of public gists.
- Public
Repos int the number of public repositories.
- Site
Admin bool whether the user is a GitHub admin.
- Ssh
Keys []string list of user’s SSH keys.
- Updated
At string the update date.
- Username string
- avatar
Url string the user’s avatar URL.
- bio string
the user’s bio.
- blog string
the user’s blog location.
- company string
the user’s company name.
- created
At string the creation date.
- email string
the user’s email.
- followers number
the number of followers.
- following number
the number of following users.
- gpg
Keys string[] list of user’s GPG keys.
- gravatar
Id string the user’s gravatar ID.
- id string
The provider-assigned unique ID for this managed resource.
- location string
the user’s location.
- login string
the user’s login.
- name string
the user’s full name.
- node
Id string - public
Gists number the number of public gists.
- public
Repos number the number of public repositories.
- site
Admin boolean whether the user is a GitHub admin.
- ssh
Keys string[] list of user’s SSH keys.
- updated
At string the update date.
- username string
- avatar_
url str the user’s avatar URL.
- bio str
the user’s bio.
- blog str
the user’s blog location.
- company str
the user’s company name.
- created_
at str the creation date.
- email str
the user’s email.
- followers float
the number of followers.
- following float
the number of following users.
- gpg_
keys List[str] list of user’s GPG keys.
- gravatar_
id str the user’s gravatar ID.
- id str
The provider-assigned unique ID for this managed resource.
- location str
the user’s location.
- login str
the user’s login.
- name str
the user’s full name.
- node_
id str - public_
gists float the number of public gists.
- public_
repos float the number of public repositories.
- site_
admin bool whether the user is a GitHub admin.
- ssh_
keys List[str] list of user’s SSH keys.
- updated_
at str the update date.
- username str
Package Details
- Repository
- https://github.com/pulumi/pulumi-github
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
githubTerraform Provider.