Class AuthBackend
Provides a resource to configure the GCP auth backend within Vault.
Example Usage
using System.IO;
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var gcp = new Vault.Gcp.AuthBackend("gcp", new Vault.Gcp.AuthBackendArgs
{
Credentials = File.ReadAllText("vault-gcp-credentials.json"),
});
}
}
Inherited Members
Namespace: Pulumi.Vault.Gcp
Assembly: Pulumi.Vault.dll
Syntax
public class AuthBackend : CustomResource
Constructors
View SourceAuthBackend(String, AuthBackendArgs, CustomResourceOptions)
Create a AuthBackend resource with the given unique name, arguments, and options.
Declaration
public AuthBackend(string name, AuthBackendArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| AuthBackendArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceClientEmail
The clients email associated with the credentials
Declaration
public Output<string> ClientEmail { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ClientId
The Client ID of the credentials
Declaration
public Output<string> ClientId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Credentials
A JSON string containing the contents of a GCP credentials file. If this value is empty, Vault will try to use Application Default Credentials from the machine on which the Vault server is running.
Declaration
public Output<string> Credentials { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Description
Declaration
public Output<string> Description { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Path
Declaration
public Output<string> Path { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PrivateKeyId
The ID of the private key from the credentials
Declaration
public Output<string> PrivateKeyId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ProjectId
The GCP Project ID
Declaration
public Output<string> ProjectId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, AuthBackendState, CustomResourceOptions)
Get an existing AuthBackend resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static AuthBackend Get(string name, Input<string> id, AuthBackendState 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. |
| AuthBackendState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| AuthBackend |