Class SecretBackendCa
Provides a resource to manage CA information in an SSH secret backend SSH secret backend within Vault.
Example Usage
using Pulumi;
using Vault = Pulumi.Vault;
class MyStack : Stack
{
public MyStack()
{
var example = new Vault.Mount("example", new Vault.MountArgs
{
Type = "ssh",
});
var foo = new Vault.Ssh.SecretBackendCa("foo", new Vault.Ssh.SecretBackendCaArgs
{
Backend = example.Path,
});
}
}
Inherited Members
Namespace: Pulumi.Vault.Ssh
Assembly: Pulumi.Vault.dll
Syntax
public class SecretBackendCa : CustomResource
Constructors
View SourceSecretBackendCa(String, SecretBackendCaArgs, CustomResourceOptions)
Create a SecretBackendCa resource with the given unique name, arguments, and options.
Declaration
public SecretBackendCa(string name, SecretBackendCaArgs args = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SecretBackendCaArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBackend
The path where the SSH secret backend is mounted. Defaults to 'ssh'
Declaration
public Output<string> Backend { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
GenerateSigningKey
Whether Vault should generate the signing key pair internally. Defaults to true
Declaration
public Output<bool?> GenerateSigningKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
PrivateKey
The private key part the SSH CA key pair; required if generate_signing_key is false.
Declaration
public Output<string> PrivateKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicKey
The public key part the SSH CA key pair; required if generate_signing_key is false.
Declaration
public Output<string> PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SecretBackendCaState, CustomResourceOptions)
Get an existing SecretBackendCa resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SecretBackendCa Get(string name, Input<string> id, SecretBackendCaState 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. |
| SecretBackendCaState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SecretBackendCa |