1. Packages
  2. Azure Native v2
  3. API Docs
  4. devhub
  5. getGitHubOAuth
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

azure-native-v2.devhub.getGitHubOAuth

Explore with Pulumi AI

These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi

URL used to authorize the Developer Hub GitHub App Azure REST API version: 2022-10-11-preview.

Other available API versions: 2022-04-01-preview, 2023-08-01, 2024-05-01-preview, 2024-08-01-preview.

Using getGitHubOAuth

Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

function getGitHubOAuth(args: GetGitHubOAuthArgs, opts?: InvokeOptions): Promise<GetGitHubOAuthResult>
function getGitHubOAuthOutput(args: GetGitHubOAuthOutputArgs, opts?: InvokeOptions): Output<GetGitHubOAuthResult>
Copy
def get_git_hub_o_auth(location: Optional[str] = None,
                       redirect_url: Optional[str] = None,
                       opts: Optional[InvokeOptions] = None) -> GetGitHubOAuthResult
def get_git_hub_o_auth_output(location: Optional[pulumi.Input[str]] = None,
                       redirect_url: Optional[pulumi.Input[str]] = None,
                       opts: Optional[InvokeOptions] = None) -> Output[GetGitHubOAuthResult]
Copy
func GetGitHubOAuth(ctx *Context, args *GetGitHubOAuthArgs, opts ...InvokeOption) (*GetGitHubOAuthResult, error)
func GetGitHubOAuthOutput(ctx *Context, args *GetGitHubOAuthOutputArgs, opts ...InvokeOption) GetGitHubOAuthResultOutput
Copy

> Note: This function is named GetGitHubOAuth in the Go SDK.

public static class GetGitHubOAuth 
{
    public static Task<GetGitHubOAuthResult> InvokeAsync(GetGitHubOAuthArgs args, InvokeOptions? opts = null)
    public static Output<GetGitHubOAuthResult> Invoke(GetGitHubOAuthInvokeArgs args, InvokeOptions? opts = null)
}
Copy
public static CompletableFuture<GetGitHubOAuthResult> getGitHubOAuth(GetGitHubOAuthArgs args, InvokeOptions options)
public static Output<GetGitHubOAuthResult> getGitHubOAuth(GetGitHubOAuthArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: azure-native:devhub:getGitHubOAuth
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

Location
This property is required.
Changes to this property will trigger replacement.
string
The name of Azure region.
RedirectUrl string
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
Location
This property is required.
Changes to this property will trigger replacement.
string
The name of Azure region.
RedirectUrl string
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
location
This property is required.
Changes to this property will trigger replacement.
String
The name of Azure region.
redirectUrl String
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
location
This property is required.
Changes to this property will trigger replacement.
string
The name of Azure region.
redirectUrl string
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
location
This property is required.
Changes to this property will trigger replacement.
str
The name of Azure region.
redirect_url str
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.
location
This property is required.
Changes to this property will trigger replacement.
String
The name of Azure region.
redirectUrl String
The URL the client will redirect to on successful authentication. If empty, no redirect will occur.

getGitHubOAuth Result

The following output properties are available:

AuthURL string
URL for authorizing the Developer Hub GitHub App
Token string
OAuth token used to make calls to GitHub
AuthURL string
URL for authorizing the Developer Hub GitHub App
Token string
OAuth token used to make calls to GitHub
authURL String
URL for authorizing the Developer Hub GitHub App
token String
OAuth token used to make calls to GitHub
authURL string
URL for authorizing the Developer Hub GitHub App
token string
OAuth token used to make calls to GitHub
auth_url str
URL for authorizing the Developer Hub GitHub App
token str
OAuth token used to make calls to GitHub
authURL String
URL for authorizing the Developer Hub GitHub App
token String
OAuth token used to make calls to GitHub

Package Details

Repository
azure-native-v2 pulumi/pulumi-azure-native
License
Apache-2.0
These are the docs for Azure Native v2. We recommenend using the latest version, Azure Native v3.
Azure Native v2 v2.90.0 published on Thursday, Mar 27, 2025 by Pulumi