Show / Hide Table of Contents

Class GetMembership

Inheritance
System.Object
GetMembership
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.Github
Assembly: Pulumi.Github.dll
Syntax
public static class GetMembership

Methods

View Source

InvokeAsync(GetMembershipArgs, InvokeOptions)

Use this data source to find out if a user is a member of your organization, as well as what role they have within it. If the user's membership in the organization is pending their acceptance of an invite, the role they would have once they accept will be returned.

{{% examples %}}

Example Usage

{{% example %}}

using Pulumi;
using Github = Pulumi.Github;

class MyStack : Stack
{
public MyStack()
{
    var membershipForSomeUser = Output.Create(Github.GetMembership.InvokeAsync(new Github.GetMembershipArgs
    {
        Username = "SomeUser",
    }));
}

}

{{% /example %}} {{% /examples %}}

Declaration
public static Task<GetMembershipResult> InvokeAsync(GetMembershipArgs args, InvokeOptions options = null)
Parameters
Type Name Description
GetMembershipArgs args
InvokeOptions options
Returns
Type Description
System.Threading.Tasks.Task<GetMembershipResult>
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.