harness.SshCredential
Explore with Pulumi AI
Resource for creating an encrypted text secret
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as harness from "@pulumi/harness";
import * as tls from "@pulumi/tls";
const harnessDeployKey = new tls.index.PrivateKey("harness_deploy_key", {
algorithm: "RSA",
rsaBits: 4096,
});
const secretManager = harness.getSecretManager({
"default": true,
});
const mySecret = new harness.EncryptedText("my_secret", {
name: "my_secret",
value: harnessDeployKey.privateKeyPem,
secretManagerId: secretManager.then(secretManager => secretManager.id),
});
const sshCreds = new harness.SshCredential("ssh_creds", {
name: "ssh-test",
sshAuthentication: {
port: 22,
username: "git",
inlineSsh: {
sshKeyFileId: mySecret.id,
},
},
});
import pulumi
import pulumi_harness as harness
import pulumi_tls as tls
harness_deploy_key = tls.index.PrivateKey("harness_deploy_key",
algorithm=RSA,
rsa_bits=4096)
secret_manager = harness.get_secret_manager(default=True)
my_secret = harness.EncryptedText("my_secret",
name="my_secret",
value=harness_deploy_key["privateKeyPem"],
secret_manager_id=secret_manager.id)
ssh_creds = harness.SshCredential("ssh_creds",
name="ssh-test",
ssh_authentication={
"port": 22,
"username": "git",
"inline_ssh": {
"ssh_key_file_id": my_secret.id,
},
})
package main
import (
"github.com/pulumi/pulumi-harness/sdk/go/harness"
"github.com/pulumi/pulumi-tls/sdk/go/tls"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
harnessDeployKey, err := tls.NewPrivateKey(ctx, "harness_deploy_key", &tls.PrivateKeyArgs{
Algorithm: "RSA",
RsaBits: 4096,
})
if err != nil {
return err
}
secretManager, err := harness.GetSecretManager(ctx, &harness.GetSecretManagerArgs{
Default: pulumi.BoolRef(true),
}, nil)
if err != nil {
return err
}
mySecret, err := harness.NewEncryptedText(ctx, "my_secret", &harness.EncryptedTextArgs{
Name: pulumi.String("my_secret"),
Value: harnessDeployKey.PrivateKeyPem,
SecretManagerId: pulumi.String(secretManager.Id),
})
if err != nil {
return err
}
_, err = harness.NewSshCredential(ctx, "ssh_creds", &harness.SshCredentialArgs{
Name: pulumi.String("ssh-test"),
SshAuthentication: &harness.SshCredentialSshAuthenticationArgs{
Port: pulumi.Int(22),
Username: pulumi.String("git"),
InlineSsh: &harness.SshCredentialSshAuthenticationInlineSshArgs{
SshKeyFileId: mySecret.ID(),
},
},
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Harness = Pulumi.Harness;
using Tls = Pulumi.Tls;
return await Deployment.RunAsync(() =>
{
var harnessDeployKey = new Tls.Index.PrivateKey("harness_deploy_key", new()
{
Algorithm = "RSA",
RsaBits = 4096,
});
var secretManager = Harness.GetSecretManager.Invoke(new()
{
Default = true,
});
var mySecret = new Harness.EncryptedText("my_secret", new()
{
Name = "my_secret",
Value = harnessDeployKey.PrivateKeyPem,
SecretManagerId = secretManager.Apply(getSecretManagerResult => getSecretManagerResult.Id),
});
var sshCreds = new Harness.SshCredential("ssh_creds", new()
{
Name = "ssh-test",
SshAuthentication = new Harness.Inputs.SshCredentialSshAuthenticationArgs
{
Port = 22,
Username = "git",
InlineSsh = new Harness.Inputs.SshCredentialSshAuthenticationInlineSshArgs
{
SshKeyFileId = mySecret.Id,
},
},
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tls.privateKey;
import com.pulumi.tls.privateKeyArgs;
import com.pulumi.harness.HarnessFunctions;
import com.pulumi.harness.inputs.GetSecretManagerArgs;
import com.pulumi.harness.EncryptedText;
import com.pulumi.harness.EncryptedTextArgs;
import com.pulumi.harness.SshCredential;
import com.pulumi.harness.SshCredentialArgs;
import com.pulumi.harness.inputs.SshCredentialSshAuthenticationArgs;
import com.pulumi.harness.inputs.SshCredentialSshAuthenticationInlineSshArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var harnessDeployKey = new PrivateKey("harnessDeployKey", PrivateKeyArgs.builder()
.algorithm("RSA")
.rsaBits(4096)
.build());
final var secretManager = HarnessFunctions.getSecretManager(GetSecretManagerArgs.builder()
.default_(true)
.build());
var mySecret = new EncryptedText("mySecret", EncryptedTextArgs.builder()
.name("my_secret")
.value(harnessDeployKey.privateKeyPem())
.secretManagerId(secretManager.id())
.build());
var sshCreds = new SshCredential("sshCreds", SshCredentialArgs.builder()
.name("ssh-test")
.sshAuthentication(SshCredentialSshAuthenticationArgs.builder()
.port(22)
.username("git")
.inlineSsh(SshCredentialSshAuthenticationInlineSshArgs.builder()
.sshKeyFileId(mySecret.id())
.build())
.build())
.build());
}
}
resources:
harnessDeployKey:
type: tls:privateKey
name: harness_deploy_key
properties:
algorithm: RSA
rsaBits: 4096
mySecret:
type: harness:EncryptedText
name: my_secret
properties:
name: my_secret
value: ${harnessDeployKey.privateKeyPem}
secretManagerId: ${secretManager.id}
sshCreds:
type: harness:SshCredential
name: ssh_creds
properties:
name: ssh-test
sshAuthentication:
port: 22
username: git
inlineSsh:
sshKeyFileId: ${mySecret.id}
variables:
secretManager:
fn::invoke:
function: harness:getSecretManager
arguments:
default: true
Create SshCredential Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new SshCredential(name: string, args?: SshCredentialArgs, opts?: CustomResourceOptions);
@overload
def SshCredential(resource_name: str,
args: Optional[SshCredentialArgs] = None,
opts: Optional[ResourceOptions] = None)
@overload
def SshCredential(resource_name: str,
opts: Optional[ResourceOptions] = None,
kerberos_authentication: Optional[SshCredentialKerberosAuthenticationArgs] = None,
name: Optional[str] = None,
ssh_authentication: Optional[SshCredentialSshAuthenticationArgs] = None,
usage_scopes: Optional[Sequence[SshCredentialUsageScopeArgs]] = None)
func NewSshCredential(ctx *Context, name string, args *SshCredentialArgs, opts ...ResourceOption) (*SshCredential, error)
public SshCredential(string name, SshCredentialArgs? args = null, CustomResourceOptions? opts = null)
public SshCredential(String name, SshCredentialArgs args)
public SshCredential(String name, SshCredentialArgs args, CustomResourceOptions options)
type: harness:SshCredential
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name
This property is required. string - The unique name of the resource.
- args SshCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name
This property is required. str - The unique name of the resource.
- args SshCredentialArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name
This property is required. string - The unique name of the resource.
- args SshCredentialArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name
This property is required. string - The unique name of the resource.
- args SshCredentialArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name
This property is required. String - The unique name of the resource.
- args
This property is required. SshCredentialArgs - The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var sshCredentialResource = new Harness.SshCredential("sshCredentialResource", new()
{
KerberosAuthentication = new Harness.Inputs.SshCredentialKerberosAuthenticationArgs
{
Port = 0,
Principal = "string",
Realm = "string",
TgtGenerationMethod = new Harness.Inputs.SshCredentialKerberosAuthenticationTgtGenerationMethodArgs
{
KerberosPasswordId = "string",
KeyTabFilePath = "string",
},
},
Name = "string",
SshAuthentication = new Harness.Inputs.SshCredentialSshAuthenticationArgs
{
Port = 0,
Username = "string",
InlineSsh = new Harness.Inputs.SshCredentialSshAuthenticationInlineSshArgs
{
SshKeyFileId = "string",
PassphraseSecretId = "string",
},
ServerPassword = new Harness.Inputs.SshCredentialSshAuthenticationServerPasswordArgs
{
PasswordSecretId = "string",
},
SshKeyFile = new Harness.Inputs.SshCredentialSshAuthenticationSshKeyFileArgs
{
Path = "string",
PassphraseSecretId = "string",
},
},
UsageScopes = new[]
{
new Harness.Inputs.SshCredentialUsageScopeArgs
{
ApplicationId = "string",
EnvironmentFilterType = "string",
EnvironmentId = "string",
},
},
});
example, err := harness.NewSshCredential(ctx, "sshCredentialResource", &harness.SshCredentialArgs{
KerberosAuthentication: &harness.SshCredentialKerberosAuthenticationArgs{
Port: pulumi.Int(0),
Principal: pulumi.String("string"),
Realm: pulumi.String("string"),
TgtGenerationMethod: &harness.SshCredentialKerberosAuthenticationTgtGenerationMethodArgs{
KerberosPasswordId: pulumi.String("string"),
KeyTabFilePath: pulumi.String("string"),
},
},
Name: pulumi.String("string"),
SshAuthentication: &harness.SshCredentialSshAuthenticationArgs{
Port: pulumi.Int(0),
Username: pulumi.String("string"),
InlineSsh: &harness.SshCredentialSshAuthenticationInlineSshArgs{
SshKeyFileId: pulumi.String("string"),
PassphraseSecretId: pulumi.String("string"),
},
ServerPassword: &harness.SshCredentialSshAuthenticationServerPasswordArgs{
PasswordSecretId: pulumi.String("string"),
},
SshKeyFile: &harness.SshCredentialSshAuthenticationSshKeyFileArgs{
Path: pulumi.String("string"),
PassphraseSecretId: pulumi.String("string"),
},
},
UsageScopes: harness.SshCredentialUsageScopeArray{
&harness.SshCredentialUsageScopeArgs{
ApplicationId: pulumi.String("string"),
EnvironmentFilterType: pulumi.String("string"),
EnvironmentId: pulumi.String("string"),
},
},
})
var sshCredentialResource = new SshCredential("sshCredentialResource", SshCredentialArgs.builder()
.kerberosAuthentication(SshCredentialKerberosAuthenticationArgs.builder()
.port(0)
.principal("string")
.realm("string")
.tgtGenerationMethod(SshCredentialKerberosAuthenticationTgtGenerationMethodArgs.builder()
.kerberosPasswordId("string")
.keyTabFilePath("string")
.build())
.build())
.name("string")
.sshAuthentication(SshCredentialSshAuthenticationArgs.builder()
.port(0)
.username("string")
.inlineSsh(SshCredentialSshAuthenticationInlineSshArgs.builder()
.sshKeyFileId("string")
.passphraseSecretId("string")
.build())
.serverPassword(SshCredentialSshAuthenticationServerPasswordArgs.builder()
.passwordSecretId("string")
.build())
.sshKeyFile(SshCredentialSshAuthenticationSshKeyFileArgs.builder()
.path("string")
.passphraseSecretId("string")
.build())
.build())
.usageScopes(SshCredentialUsageScopeArgs.builder()
.applicationId("string")
.environmentFilterType("string")
.environmentId("string")
.build())
.build());
ssh_credential_resource = harness.SshCredential("sshCredentialResource",
kerberos_authentication={
"port": 0,
"principal": "string",
"realm": "string",
"tgt_generation_method": {
"kerberos_password_id": "string",
"key_tab_file_path": "string",
},
},
name="string",
ssh_authentication={
"port": 0,
"username": "string",
"inline_ssh": {
"ssh_key_file_id": "string",
"passphrase_secret_id": "string",
},
"server_password": {
"password_secret_id": "string",
},
"ssh_key_file": {
"path": "string",
"passphrase_secret_id": "string",
},
},
usage_scopes=[{
"application_id": "string",
"environment_filter_type": "string",
"environment_id": "string",
}])
const sshCredentialResource = new harness.SshCredential("sshCredentialResource", {
kerberosAuthentication: {
port: 0,
principal: "string",
realm: "string",
tgtGenerationMethod: {
kerberosPasswordId: "string",
keyTabFilePath: "string",
},
},
name: "string",
sshAuthentication: {
port: 0,
username: "string",
inlineSsh: {
sshKeyFileId: "string",
passphraseSecretId: "string",
},
serverPassword: {
passwordSecretId: "string",
},
sshKeyFile: {
path: "string",
passphraseSecretId: "string",
},
},
usageScopes: [{
applicationId: "string",
environmentFilterType: "string",
environmentId: "string",
}],
});
type: harness:SshCredential
properties:
kerberosAuthentication:
port: 0
principal: string
realm: string
tgtGenerationMethod:
kerberosPasswordId: string
keyTabFilePath: string
name: string
sshAuthentication:
inlineSsh:
passphraseSecretId: string
sshKeyFileId: string
port: 0
serverPassword:
passwordSecretId: string
sshKeyFile:
passphraseSecretId: string
path: string
username: string
usageScopes:
- applicationId: string
environmentFilterType: string
environmentId: string
SshCredential Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The SshCredential resource accepts the following input properties:
- Kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- Name string
- Name of the encrypted text secret
- Ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - Usage
Scopes List<SshCredential Usage Scope> - This block is used for scoping the resource to a specific set of applications or environments.
- Kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication Args - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- Name string
- Name of the encrypted text secret
- Ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication Args - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - Usage
Scopes []SshCredential Usage Scope Args - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name String
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes List<SshCredential Usage Scope> - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name string
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes SshCredential Usage Scope[] - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos_
authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication Args - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name str
- Name of the encrypted text secret
- ssh_
authentication Changes to this property will trigger replacement.
Credential Ssh Authentication Args - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage_
scopes Sequence[SshCredential Usage Scope Args] - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
- Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name String
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
- Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes List<Property Map> - This block is used for scoping the resource to a specific set of applications or environments.
Outputs
All input properties are implicitly available as output properties. Additionally, the SshCredential resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing SshCredential Resource
Get an existing SshCredential resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: SshCredentialState, opts?: CustomResourceOptions): SshCredential
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
kerberos_authentication: Optional[SshCredentialKerberosAuthenticationArgs] = None,
name: Optional[str] = None,
ssh_authentication: Optional[SshCredentialSshAuthenticationArgs] = None,
usage_scopes: Optional[Sequence[SshCredentialUsageScopeArgs]] = None) -> SshCredential
func GetSshCredential(ctx *Context, name string, id IDInput, state *SshCredentialState, opts ...ResourceOption) (*SshCredential, error)
public static SshCredential Get(string name, Input<string> id, SshCredentialState? state, CustomResourceOptions? opts = null)
public static SshCredential get(String name, Output<String> id, SshCredentialState state, CustomResourceOptions options)
resources: _: type: harness:SshCredential get: id: ${id}
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
This property is required. - The unique name of the resulting resource.
- id
This property is required. - The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- Name string
- Name of the encrypted text secret
- Ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - Usage
Scopes List<SshCredential Usage Scope> - This block is used for scoping the resource to a specific set of applications or environments.
- Kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication Args - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- Name string
- Name of the encrypted text secret
- Ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication Args - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - Usage
Scopes []SshCredential Usage Scope Args - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name String
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes List<SshCredential Usage Scope> - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name string
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
Credential Ssh Authentication - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes SshCredential Usage Scope[] - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos_
authentication Changes to this property will trigger replacement.
Credential Kerberos Authentication Args - Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name str
- Name of the encrypted text secret
- ssh_
authentication Changes to this property will trigger replacement.
Credential Ssh Authentication Args - Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage_
scopes Sequence[SshCredential Usage Scope Args] - This block is used for scoping the resource to a specific set of applications or environments.
- kerberos
Authentication Changes to this property will trigger replacement.
- Kerberos authentication for SSH. Cannot be used if ssh*authentication is specified
- name String
- Name of the encrypted text secret
- ssh
Authentication Changes to this property will trigger replacement.
- Authentication method for SSH. Cannot be used if kerberos*authentication is specified. Only one of
inline_ssh
,server_password
, orssh_key_file
should be set - usage
Scopes List<Property Map> - This block is used for scoping the resource to a specific set of applications or environments.
Supporting Types
SshCredentialKerberosAuthentication, SshCredentialKerberosAuthenticationArgs
- Port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- Principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- Realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- Tgt
Generation Method Changes to this property will trigger replacement.
Credential Kerberos Authentication Tgt Generation Method - TGT generation method
- Port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- Principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- Realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- Tgt
Generation Method Changes to this property will trigger replacement.
Credential Kerberos Authentication Tgt Generation Method - TGT generation method
- port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- tgt
Generation Method Changes to this property will trigger replacement.
Credential Kerberos Authentication Tgt Generation Method - TGT generation method
- port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- tgt
Generation Method Changes to this property will trigger replacement.
Credential Kerberos Authentication Tgt Generation Method - TGT generation method
- port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- tgt_
generation_ method Changes to this property will trigger replacement.
Credential Kerberos Authentication Tgt Generation Method - TGT generation method
- port
This property is required. Changes to this property will trigger replacement.
- Port to use for Kerberos authentication
- principal
This property is required. Changes to this property will trigger replacement.
- Name of the principal for authentication
- realm
This property is required. Changes to this property will trigger replacement.
- Realm associated with the Kerberos authentication
- tgt
Generation Method Changes to this property will trigger replacement.
- TGT generation method
SshCredentialKerberosAuthenticationTgtGenerationMethod, SshCredentialKerberosAuthenticationTgtGenerationMethodArgs
- Kerberos
Password Id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- Key
Tab File Path Changes to this property will trigger replacement.
- The path to the key tab file
- Kerberos
Password Id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- Key
Tab File Path Changes to this property will trigger replacement.
- The path to the key tab file
- kerberos
Password Id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- key
Tab File Path Changes to this property will trigger replacement.
- The path to the key tab file
- kerberos
Password Id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- key
Tab File Path Changes to this property will trigger replacement.
- The path to the key tab file
- kerberos_
password_ id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- key_
tab_ file_ path Changes to this property will trigger replacement.
- The path to the key tab file
- kerberos
Password Id Changes to this property will trigger replacement.
- The id of the encrypted text secret
- key
Tab File Path Changes to this property will trigger replacement.
- The path to the key tab file
SshCredentialSshAuthentication, SshCredentialSshAuthenticationArgs
- Port
This property is required. int - The port to connect to
- Username
This property is required. string - The username to use when connecting to ssh
- Inline
Ssh Changes to this property will trigger replacement.
Credential Ssh Authentication Inline Ssh - Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - Server
Password Changes to this property will trigger replacement.
Credential Ssh Authentication Server Password - Server password authentication configuration
- Ssh
Key File Changes to this property will trigger replacement.
Credential Ssh Authentication Ssh Key File - Use ssh key file for authentication
- Port
This property is required. int - The port to connect to
- Username
This property is required. string - The username to use when connecting to ssh
- Inline
Ssh Changes to this property will trigger replacement.
Credential Ssh Authentication Inline Ssh - Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - Server
Password Changes to this property will trigger replacement.
Credential Ssh Authentication Server Password - Server password authentication configuration
- Ssh
Key File Changes to this property will trigger replacement.
Credential Ssh Authentication Ssh Key File - Use ssh key file for authentication
- port
This property is required. Integer - The port to connect to
- username
This property is required. String - The username to use when connecting to ssh
- inline
Ssh Changes to this property will trigger replacement.
Credential Ssh Authentication Inline Ssh - Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - server
Password Changes to this property will trigger replacement.
Credential Ssh Authentication Server Password - Server password authentication configuration
- ssh
Key File Changes to this property will trigger replacement.
Credential Ssh Authentication Ssh Key File - Use ssh key file for authentication
- port
This property is required. number - The port to connect to
- username
This property is required. string - The username to use when connecting to ssh
- inline
Ssh Changes to this property will trigger replacement.
Credential Ssh Authentication Inline Ssh - Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - server
Password Changes to this property will trigger replacement.
Credential Ssh Authentication Server Password - Server password authentication configuration
- ssh
Key File Changes to this property will trigger replacement.
Credential Ssh Authentication Ssh Key File - Use ssh key file for authentication
- port
This property is required. int - The port to connect to
- username
This property is required. str - The username to use when connecting to ssh
- inline_
ssh Changes to this property will trigger replacement.
Credential Ssh Authentication Inline Ssh - Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - server_
password Changes to this property will trigger replacement.
Credential Ssh Authentication Server Password - Server password authentication configuration
- ssh_
key_ file Changes to this property will trigger replacement.
Credential Ssh Authentication Ssh Key File - Use ssh key file for authentication
- port
This property is required. Number - The port to connect to
- username
This property is required. String - The username to use when connecting to ssh
- inline
Ssh Changes to this property will trigger replacement.
- Inline SSH authentication configuration. Only ond of
passphrase_secret_id
orssh_key_file_id
should be used - server
Password Changes to this property will trigger replacement.
- Server password authentication configuration
- ssh
Key File Changes to this property will trigger replacement.
- Use ssh key file for authentication
SshCredentialSshAuthenticationInlineSsh, SshCredentialSshAuthenticationInlineSshArgs
- Ssh
Key File Id This property is required. string - The id of the secret containing the SSH key
- Passphrase
Secret stringId - The id of the encrypted secret to use
- Ssh
Key File Id This property is required. string - The id of the secret containing the SSH key
- Passphrase
Secret stringId - The id of the encrypted secret to use
- ssh
Key File Id This property is required. String - The id of the secret containing the SSH key
- passphrase
Secret StringId - The id of the encrypted secret to use
- ssh
Key File Id This property is required. string - The id of the secret containing the SSH key
- passphrase
Secret stringId - The id of the encrypted secret to use
- ssh_
key_ file_ id This property is required. str - The id of the secret containing the SSH key
- passphrase_
secret_ strid - The id of the encrypted secret to use
- ssh
Key File Id This property is required. String - The id of the secret containing the SSH key
- passphrase
Secret StringId - The id of the encrypted secret to use
SshCredentialSshAuthenticationServerPassword, SshCredentialSshAuthenticationServerPasswordArgs
- Password
Secret Id This property is required. string - The id of the encrypted secret
- Password
Secret Id This property is required. string - The id of the encrypted secret
- password
Secret Id This property is required. String - The id of the encrypted secret
- password
Secret Id This property is required. string - The id of the encrypted secret
- password_
secret_ id This property is required. str - The id of the encrypted secret
- password
Secret Id This property is required. String - The id of the encrypted secret
SshCredentialSshAuthenticationSshKeyFile, SshCredentialSshAuthenticationSshKeyFileArgs
- Path
This property is required. string - The path to the key file on the delegate
- Passphrase
Secret stringId - The id of the secret containing the password to use for the ssh key
- Path
This property is required. string - The path to the key file on the delegate
- Passphrase
Secret stringId - The id of the secret containing the password to use for the ssh key
- path
This property is required. String - The path to the key file on the delegate
- passphrase
Secret StringId - The id of the secret containing the password to use for the ssh key
- path
This property is required. string - The path to the key file on the delegate
- passphrase
Secret stringId - The id of the secret containing the password to use for the ssh key
- path
This property is required. str - The path to the key file on the delegate
- passphrase_
secret_ strid - The id of the secret containing the password to use for the ssh key
- path
This property is required. String - The path to the key file on the delegate
- passphrase
Secret StringId - The id of the secret containing the password to use for the ssh key
SshCredentialUsageScope, SshCredentialUsageScopeArgs
- Application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- Environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - Environment
Id string - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- Application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- Environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - Environment
Id string - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application
Id String - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter StringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id String - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application
Id string - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter stringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id string - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application_
id str - Id of the application to scope to. If empty then this scope applies to all applications.
- environment_
filter_ strtype - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment_
id str - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
- application
Id String - Id of the application to scope to. If empty then this scope applies to all applications.
- environment
Filter StringType - Type of environment filter applied. Cannot be used with
environment_id
. Valid options are NONPRODUCTIONENVIRONMENTS, PRODUCTION_ENVIRONMENTS. - environment
Id String - Id of the id of the specific environment to scope to. Cannot be used with
environment_filter_type
.
Import
Import using the Harness ssh credential id
$ pulumi import harness:index/sshCredential:SshCredential example <credential_id>
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- harness pulumi/pulumi-harness
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
harness
Terraform Provider.