Class AuthConfigGithub
Provides a Rancher v2 Auth Config Github resource. This can be used to configure and enable Auth Config Github for Rancher v2 RKE clusters and retrieve their information.
In addition to the built-in local auth, only one external auth config provider can be enabled at a time.
Example Usage
using Pulumi;
using Rancher2 = Pulumi.Rancher2;
class MyStack : Stack
{
public MyStack()
{
// Create a new rancher2 Auth Config Github
var github = new Rancher2.AuthConfigGithub("github", new Rancher2.AuthConfigGithubArgs
{
ClientId = "<GITHUB_CLIENT_ID>",
ClientSecret = "<GITHUB_CLIENT_SECRET>",
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class AuthConfigGithub : CustomResource
Constructors
View SourceAuthConfigGithub(String, AuthConfigGithubArgs, CustomResourceOptions)
Create a AuthConfigGithub resource with the given unique name, arguments, and options.
Declaration
public AuthConfigGithub(string name, AuthConfigGithubArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthConfigGithubArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceAccessMode
Access mode for auth. required, restricted, unrestricted are supported. Default unrestricted (string)
Declaration
public Output<string> AccessMode { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AllowedPrincipalIds
Allowed principal ids for auth. Required if access_mode is required or restricted. Ex: github_user://<USER_ID> github_team://<GROUP_ID> github_org://<ORG_ID> (list)
Declaration
public Output<ImmutableArray<string>> AllowedPrincipalIds { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableArray<System.String>> |
Annotations
Annotations of the resource (map)
Declaration
public Output<ImmutableDictionary<string, object>> Annotations { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
ClientId
Github auth Client ID (string)
Declaration
public Output<string> ClientId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientSecret
Github auth Client secret (string)
Declaration
public Output<string> ClientSecret { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Enabled
Enable auth config provider. Default true (bool)
Declaration
public Output<bool?> Enabled { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Hostname
Github hostname to connect. Default github.com (string)
Declaration
public Output<string> Hostname { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Labels
Labels of the resource (map)
Declaration
public Output<ImmutableDictionary<string, object>> Labels { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Name
(Computed) The name of the resource (string)
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tls
Enable TLS connection. Default true (bool)
Declaration
public Output<bool?> Tls { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Type
(Computed) The type of the resource (string)
Declaration
public Output<string> Type { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AuthConfigGithubState, CustomResourceOptions)
Get an existing AuthConfigGithub resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthConfigGithub Get(string name, Input<string> id, AuthConfigGithubState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| AuthConfigGithubState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthConfigGithub |