Class AuthConfigAzureAd
Provides a Rancher v2 Auth Config AzureAD resource. This can be used to configure and enable Auth Config AzureAD 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 AzureAD
var azuread = new Rancher2.AuthConfigAzureAd("azuread", new Rancher2.AuthConfigAzureAdArgs
{
ApplicationId = "<AZUREAD_APP_ID>",
ApplicationSecret = "<AZUREAD_APP_SECRET>",
AuthEndpoint = "<AZUREAD_AUTH_ENDPOINT>",
GraphEndpoint = "<AZUREAD_GRAPH_ENDPOINT>",
RancherUrl = "<RANCHER_URL>",
TenantId = "<AZUREAD_TENANT_ID>",
TokenEndpoint = "<AZUREAD_TOKEN_ENDPOINT>",
});
}
}
Inherited Members
Namespace: Pulumi.Rancher2
Assembly: Pulumi.Rancher2.dll
Syntax
public class AuthConfigAzureAd : CustomResource
Constructors
View SourceAuthConfigAzureAd(String, AuthConfigAzureAdArgs, CustomResourceOptions)
Create a AuthConfigAzureAd resource with the given unique name, arguments, and options.
Declaration
public AuthConfigAzureAd(string name, AuthConfigAzureAdArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthConfigAzureAdArgs | 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: azuread_user://<USER_ID> azuread_group://<GROUP_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>> |
ApplicationId
AzureAD auth application ID (string)
Declaration
public Output<string> ApplicationId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ApplicationSecret
AzureAD auth application secret (string)
Declaration
public Output<string> ApplicationSecret { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
AuthEndpoint
AzureAD auth endpoint (string)
Declaration
public Output<string> AuthEndpoint { 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>> |
Endpoint
AzureAD endpoint. Default https://login.microsoftonline.com/ (string)
Declaration
public Output<string> Endpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GraphEndpoint
AzureAD graph endpoint (string)
Declaration
public Output<string> GraphEndpoint { 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> |
RancherUrl
Rancher URL (string). "<rancher_url>/verify-auth-azure"
Declaration
public Output<string> RancherUrl { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TenantId
AzureAD tenant ID (string)
Declaration
public Output<string> TenantId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
TokenEndpoint
AzureAD token endpoint (string)
Declaration
public Output<string> TokenEndpoint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
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>, AuthConfigAzureAdState, CustomResourceOptions)
Get an existing AuthConfigAzureAd resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthConfigAzureAd Get(string name, Input<string> id, AuthConfigAzureAdState 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. |
| AuthConfigAzureAdState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthConfigAzureAd |