1. Packages
  2. Harness
  3. API Docs
  4. platform
  5. SecretSshkey
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

harness.platform.SecretSshkey

Explore with Pulumi AI

harness logo
Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs

    Resource for creating an ssh key type secret.

    Example Usage

    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Harness = Lbrlabs.PulumiPackage.Harness;
    
    return await Deployment.RunAsync(() => 
    {
        var keyTabFilePath = new Harness.Platform.SecretSshkey("keyTabFilePath", new()
        {
            Identifier = "identifier",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            Port = 22,
            Kerberos = new Harness.Platform.Inputs.SecretSshkeyKerberosArgs
            {
                TgtKeyTabFilePathSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs
                {
                    KeyPath = "key_path",
                },
                Principal = "principal",
                Realm = "realm",
                TgtGenerationMethod = "KeyTabFilePath",
            },
        });
    
        var _tgtPassword = new Harness.Platform.SecretSshkey(" tgtPassword", new()
        {
            Identifier = "identifier",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            Port = 22,
            Kerberos = new Harness.Platform.Inputs.SecretSshkeyKerberosArgs
            {
                TgtPasswordSpec = new Harness.Platform.Inputs.SecretSshkeyKerberosTgtPasswordSpecArgs
                {
                    Password = $"account.{secret.Id}",
                },
                Principal = "principal",
                Realm = "realm",
                TgtGenerationMethod = "Password",
            },
        });
    
        var sshkeyReference = new Harness.Platform.SecretSshkey("sshkeyReference", new()
        {
            Identifier = "identifier",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            Port = 22,
            Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
            {
                SshkeyReferenceCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyReferenceCredentialArgs
                {
                    UserName = "user_name",
                    Key = $"account.{key.Id}",
                    EncryptedPassphrase = $"account.{secret.Id}",
                },
                CredentialType = "KeyReference",
            },
        });
    
        var _sshkeyPath = new Harness.Platform.SecretSshkey(" sshkeyPath", new()
        {
            Identifier = "identifier",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            Port = 22,
            Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
            {
                SshkeyPathCredential = new Harness.Platform.Inputs.SecretSshkeySshSshkeyPathCredentialArgs
                {
                    UserName = "user_name",
                    KeyPath = "key_path",
                    EncryptedPassphrase = "encrypted_passphrase",
                },
                CredentialType = "KeyPath",
            },
        });
    
        var sshPassword = new Harness.Platform.SecretSshkey("sshPassword", new()
        {
            Identifier = "identifier",
            Description = "test",
            Tags = new[]
            {
                "foo:bar",
            },
            Port = 22,
            Ssh = new Harness.Platform.Inputs.SecretSshkeySshArgs
            {
                SshPasswordCredential = new Harness.Platform.Inputs.SecretSshkeySshSshPasswordCredentialArgs
                {
                    UserName = "user_name",
                    Password = $"account.{secret.Id}",
                },
                CredentialType = "Password",
            },
        });
    
    });
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/lbrlabs/pulumi-harness/sdk/go/harness/platform"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := platform.NewSecretSshkey(ctx, "keyTabFilePath", &platform.SecretSshkeyArgs{
    			Identifier:  pulumi.String("identifier"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			Port: pulumi.Int(22),
    			Kerberos: &platform.SecretSshkeyKerberosArgs{
    				TgtKeyTabFilePathSpec: &platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs{
    					KeyPath: pulumi.String("key_path"),
    				},
    				Principal:           pulumi.String("principal"),
    				Realm:               pulumi.String("realm"),
    				TgtGenerationMethod: pulumi.String("KeyTabFilePath"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewSecretSshkey(ctx, " tgtPassword", &platform.SecretSshkeyArgs{
    			Identifier:  pulumi.String("identifier"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			Port: pulumi.Int(22),
    			Kerberos: &platform.SecretSshkeyKerberosArgs{
    				TgtPasswordSpec: &platform.SecretSshkeyKerberosTgtPasswordSpecArgs{
    					Password: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
    				},
    				Principal:           pulumi.String("principal"),
    				Realm:               pulumi.String("realm"),
    				TgtGenerationMethod: pulumi.String("Password"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewSecretSshkey(ctx, "sshkeyReference", &platform.SecretSshkeyArgs{
    			Identifier:  pulumi.String("identifier"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			Port: pulumi.Int(22),
    			Ssh: &platform.SecretSshkeySshArgs{
    				SshkeyReferenceCredential: &platform.SecretSshkeySshSshkeyReferenceCredentialArgs{
    					UserName:            pulumi.String("user_name"),
    					Key:                 pulumi.String(fmt.Sprintf("account.%v", key.Id)),
    					EncryptedPassphrase: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
    				},
    				CredentialType: pulumi.String("KeyReference"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewSecretSshkey(ctx, " sshkeyPath", &platform.SecretSshkeyArgs{
    			Identifier:  pulumi.String("identifier"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			Port: pulumi.Int(22),
    			Ssh: &platform.SecretSshkeySshArgs{
    				SshkeyPathCredential: &platform.SecretSshkeySshSshkeyPathCredentialArgs{
    					UserName:            pulumi.String("user_name"),
    					KeyPath:             pulumi.String("key_path"),
    					EncryptedPassphrase: pulumi.String("encrypted_passphrase"),
    				},
    				CredentialType: pulumi.String("KeyPath"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = platform.NewSecretSshkey(ctx, "sshPassword", &platform.SecretSshkeyArgs{
    			Identifier:  pulumi.String("identifier"),
    			Description: pulumi.String("test"),
    			Tags: pulumi.StringArray{
    				pulumi.String("foo:bar"),
    			},
    			Port: pulumi.Int(22),
    			Ssh: &platform.SecretSshkeySshArgs{
    				SshPasswordCredential: &platform.SecretSshkeySshSshPasswordCredentialArgs{
    					UserName: pulumi.String("user_name"),
    					Password: pulumi.String(fmt.Sprintf("account.%v", secret.Id)),
    				},
    				CredentialType: pulumi.String("Password"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.harness.platform.SecretSshkey;
    import com.pulumi.harness.platform.SecretSshkeyArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeyKerberosTgtPasswordSpecArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeySshArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeySshSshkeyReferenceCredentialArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeySshSshkeyPathCredentialArgs;
    import com.pulumi.harness.platform.inputs.SecretSshkeySshSshPasswordCredentialArgs;
    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 keyTabFilePath = new SecretSshkey("keyTabFilePath", SecretSshkeyArgs.builder()        
                .identifier("identifier")
                .description("test")
                .tags("foo:bar")
                .port(22)
                .kerberos(SecretSshkeyKerberosArgs.builder()
                    .tgtKeyTabFilePathSpec(SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs.builder()
                        .keyPath("key_path")
                        .build())
                    .principal("principal")
                    .realm("realm")
                    .tgtGenerationMethod("KeyTabFilePath")
                    .build())
                .build());
    
            var _tgtPassword = new SecretSshkey(" tgtPassword", SecretSshkeyArgs.builder()        
                .identifier("identifier")
                .description("test")
                .tags("foo:bar")
                .port(22)
                .kerberos(SecretSshkeyKerberosArgs.builder()
                    .tgtPasswordSpec(SecretSshkeyKerberosTgtPasswordSpecArgs.builder()
                        .password(String.format("account.%s", secret.id()))
                        .build())
                    .principal("principal")
                    .realm("realm")
                    .tgtGenerationMethod("Password")
                    .build())
                .build());
    
            var sshkeyReference = new SecretSshkey("sshkeyReference", SecretSshkeyArgs.builder()        
                .identifier("identifier")
                .description("test")
                .tags("foo:bar")
                .port(22)
                .ssh(SecretSshkeySshArgs.builder()
                    .sshkeyReferenceCredential(SecretSshkeySshSshkeyReferenceCredentialArgs.builder()
                        .userName("user_name")
                        .key(String.format("account.%s", key.id()))
                        .encryptedPassphrase(String.format("account.%s", secret.id()))
                        .build())
                    .credentialType("KeyReference")
                    .build())
                .build());
    
            var _sshkeyPath = new SecretSshkey(" sshkeyPath", SecretSshkeyArgs.builder()        
                .identifier("identifier")
                .description("test")
                .tags("foo:bar")
                .port(22)
                .ssh(SecretSshkeySshArgs.builder()
                    .sshkeyPathCredential(SecretSshkeySshSshkeyPathCredentialArgs.builder()
                        .userName("user_name")
                        .keyPath("key_path")
                        .encryptedPassphrase("encrypted_passphrase")
                        .build())
                    .credentialType("KeyPath")
                    .build())
                .build());
    
            var sshPassword = new SecretSshkey("sshPassword", SecretSshkeyArgs.builder()        
                .identifier("identifier")
                .description("test")
                .tags("foo:bar")
                .port(22)
                .ssh(SecretSshkeySshArgs.builder()
                    .sshPasswordCredential(SecretSshkeySshSshPasswordCredentialArgs.builder()
                        .userName("user_name")
                        .password(String.format("account.%s", secret.id()))
                        .build())
                    .credentialType("Password")
                    .build())
                .build());
    
        }
    }
    
    import pulumi
    import lbrlabs_pulumi_harness as harness
    
    key_tab_file_path = harness.platform.SecretSshkey("keyTabFilePath",
        identifier="identifier",
        description="test",
        tags=["foo:bar"],
        port=22,
        kerberos=harness.platform.SecretSshkeyKerberosArgs(
            tgt_key_tab_file_path_spec=harness.platform.SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs(
                key_path="key_path",
            ),
            principal="principal",
            realm="realm",
            tgt_generation_method="KeyTabFilePath",
        ))
    _tgt_password = harness.platform.SecretSshkey(" tgtPassword",
        identifier="identifier",
        description="test",
        tags=["foo:bar"],
        port=22,
        kerberos=harness.platform.SecretSshkeyKerberosArgs(
            tgt_password_spec=harness.platform.SecretSshkeyKerberosTgtPasswordSpecArgs(
                password=f"account.{secret['id']}",
            ),
            principal="principal",
            realm="realm",
            tgt_generation_method="Password",
        ))
    sshkey_reference = harness.platform.SecretSshkey("sshkeyReference",
        identifier="identifier",
        description="test",
        tags=["foo:bar"],
        port=22,
        ssh=harness.platform.SecretSshkeySshArgs(
            sshkey_reference_credential=harness.platform.SecretSshkeySshSshkeyReferenceCredentialArgs(
                user_name="user_name",
                key=f"account.{key['id']}",
                encrypted_passphrase=f"account.{secret['id']}",
            ),
            credential_type="KeyReference",
        ))
    _sshkey_path = harness.platform.SecretSshkey(" sshkeyPath",
        identifier="identifier",
        description="test",
        tags=["foo:bar"],
        port=22,
        ssh=harness.platform.SecretSshkeySshArgs(
            sshkey_path_credential=harness.platform.SecretSshkeySshSshkeyPathCredentialArgs(
                user_name="user_name",
                key_path="key_path",
                encrypted_passphrase="encrypted_passphrase",
            ),
            credential_type="KeyPath",
        ))
    ssh_password = harness.platform.SecretSshkey("sshPassword",
        identifier="identifier",
        description="test",
        tags=["foo:bar"],
        port=22,
        ssh=harness.platform.SecretSshkeySshArgs(
            ssh_password_credential=harness.platform.SecretSshkeySshSshPasswordCredentialArgs(
                user_name="user_name",
                password=f"account.{secret['id']}",
            ),
            credential_type="Password",
        ))
    
    import * as pulumi from "@pulumi/pulumi";
    import * as harness from "@lbrlabs/pulumi-harness";
    
    const keyTabFilePath = new harness.platform.SecretSshkey("keyTabFilePath", {
        identifier: "identifier",
        description: "test",
        tags: ["foo:bar"],
        port: 22,
        kerberos: {
            tgtKeyTabFilePathSpec: {
                keyPath: "key_path",
            },
            principal: "principal",
            realm: "realm",
            tgtGenerationMethod: "KeyTabFilePath",
        },
    });
    const _tgtPassword = new harness.platform.SecretSshkey(" tgtPassword", {
        identifier: "identifier",
        description: "test",
        tags: ["foo:bar"],
        port: 22,
        kerberos: {
            tgtPasswordSpec: {
                password: `account.${secret.id}`,
            },
            principal: "principal",
            realm: "realm",
            tgtGenerationMethod: "Password",
        },
    });
    const sshkeyReference = new harness.platform.SecretSshkey("sshkeyReference", {
        identifier: "identifier",
        description: "test",
        tags: ["foo:bar"],
        port: 22,
        ssh: {
            sshkeyReferenceCredential: {
                userName: "user_name",
                key: `account.${key.id}`,
                encryptedPassphrase: `account.${secret.id}`,
            },
            credentialType: "KeyReference",
        },
    });
    const _sshkeyPath = new harness.platform.SecretSshkey(" sshkeyPath", {
        identifier: "identifier",
        description: "test",
        tags: ["foo:bar"],
        port: 22,
        ssh: {
            sshkeyPathCredential: {
                userName: "user_name",
                keyPath: "key_path",
                encryptedPassphrase: "encrypted_passphrase",
            },
            credentialType: "KeyPath",
        },
    });
    const sshPassword = new harness.platform.SecretSshkey("sshPassword", {
        identifier: "identifier",
        description: "test",
        tags: ["foo:bar"],
        port: 22,
        ssh: {
            sshPasswordCredential: {
                userName: "user_name",
                password: `account.${secret.id}`,
            },
            credentialType: "Password",
        },
    });
    
    resources:
      keyTabFilePath:
        type: harness:platform:SecretSshkey
        properties:
          identifier: identifier
          description: test
          tags:
            - foo:bar
          port: 22
          kerberos:
            tgtKeyTabFilePathSpec:
              keyPath: key_path
            principal: principal
            realm: realm
            tgtGenerationMethod: KeyTabFilePath
      ' tgtPassword':
        type: harness:platform:SecretSshkey
        properties:
          identifier: identifier
          description: test
          tags:
            - foo:bar
          port: 22
          kerberos:
            tgtPasswordSpec:
              password: account.${secret.id}
            principal: principal
            realm: realm
            tgtGenerationMethod: Password
      sshkeyReference:
        type: harness:platform:SecretSshkey
        properties:
          identifier: identifier
          description: test
          tags:
            - foo:bar
          port: 22
          ssh:
            sshkeyReferenceCredential:
              userName: user_name
              key: account.${key.id}
              encryptedPassphrase: account.${secret.id}
            credentialType: KeyReference
      ' sshkeyPath':
        type: harness:platform:SecretSshkey
        properties:
          identifier: identifier
          description: test
          tags:
            - foo:bar
          port: 22
          ssh:
            sshkeyPathCredential:
              userName: user_name
              keyPath: key_path
              encryptedPassphrase: encrypted_passphrase
            credentialType: KeyPath
      sshPassword:
        type: harness:platform:SecretSshkey
        properties:
          identifier: identifier
          description: test
          tags:
            - foo:bar
          port: 22
          ssh:
            sshPasswordCredential:
              userName: user_name
              password: account.${secret.id}
            credentialType: Password
    

    Create SecretSshkey Resource

    new SecretSshkey(name: string, args: SecretSshkeyArgs, opts?: CustomResourceOptions);
    @overload
    def SecretSshkey(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     description: Optional[str] = None,
                     identifier: Optional[str] = None,
                     kerberos: Optional[SecretSshkeyKerberosArgs] = None,
                     name: Optional[str] = None,
                     org_id: Optional[str] = None,
                     port: Optional[int] = None,
                     project_id: Optional[str] = None,
                     ssh: Optional[SecretSshkeySshArgs] = None,
                     tags: Optional[Sequence[str]] = None)
    @overload
    def SecretSshkey(resource_name: str,
                     args: SecretSshkeyArgs,
                     opts: Optional[ResourceOptions] = None)
    func NewSecretSshkey(ctx *Context, name string, args SecretSshkeyArgs, opts ...ResourceOption) (*SecretSshkey, error)
    public SecretSshkey(string name, SecretSshkeyArgs args, CustomResourceOptions? opts = null)
    public SecretSshkey(String name, SecretSshkeyArgs args)
    public SecretSshkey(String name, SecretSshkeyArgs args, CustomResourceOptions options)
    
    type: harness:platform:SecretSshkey
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args SecretSshkeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args SecretSshkeyArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args SecretSshkeyArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args SecretSshkeyArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args SecretSshkeyArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    SecretSshkey Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    The SecretSshkey resource accepts the following input properties:

    Identifier string
    Unique identifier of the resource.
    Description string
    Description of the resource.
    Kerberos Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeyKerberos
    Kerberos authentication scheme
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    Port int
    SSH port
    ProjectId string
    Unique identifier of the project.
    Ssh Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeySsh
    Kerberos authentication scheme
    Tags List<string>
    Tags to associate with the resource.
    Identifier string
    Unique identifier of the resource.
    Description string
    Description of the resource.
    Kerberos SecretSshkeyKerberosArgs
    Kerberos authentication scheme
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    Port int
    SSH port
    ProjectId string
    Unique identifier of the project.
    Ssh SecretSshkeySshArgs
    Kerberos authentication scheme
    Tags []string
    Tags to associate with the resource.
    identifier String
    Unique identifier of the resource.
    description String
    Description of the resource.
    kerberos SecretSshkeyKerberos
    Kerberos authentication scheme
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    port Integer
    SSH port
    projectId String
    Unique identifier of the project.
    ssh SecretSshkeySsh
    Kerberos authentication scheme
    tags List<String>
    Tags to associate with the resource.
    identifier string
    Unique identifier of the resource.
    description string
    Description of the resource.
    kerberos SecretSshkeyKerberos
    Kerberos authentication scheme
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    port number
    SSH port
    projectId string
    Unique identifier of the project.
    ssh SecretSshkeySsh
    Kerberos authentication scheme
    tags string[]
    Tags to associate with the resource.
    identifier str
    Unique identifier of the resource.
    description str
    Description of the resource.
    kerberos SecretSshkeyKerberosArgs
    Kerberos authentication scheme
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    port int
    SSH port
    project_id str
    Unique identifier of the project.
    ssh SecretSshkeySshArgs
    Kerberos authentication scheme
    tags Sequence[str]
    Tags to associate with the resource.
    identifier String
    Unique identifier of the resource.
    description String
    Description of the resource.
    kerberos Property Map
    Kerberos authentication scheme
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    port Number
    SSH port
    projectId String
    Unique identifier of the project.
    ssh Property Map
    Kerberos authentication scheme
    tags List<String>
    Tags to associate with the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the SecretSshkey 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 SecretSshkey Resource

    Get an existing SecretSshkey 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?: SecretSshkeyState, opts?: CustomResourceOptions): SecretSshkey
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            description: Optional[str] = None,
            identifier: Optional[str] = None,
            kerberos: Optional[SecretSshkeyKerberosArgs] = None,
            name: Optional[str] = None,
            org_id: Optional[str] = None,
            port: Optional[int] = None,
            project_id: Optional[str] = None,
            ssh: Optional[SecretSshkeySshArgs] = None,
            tags: Optional[Sequence[str]] = None) -> SecretSshkey
    func GetSecretSshkey(ctx *Context, name string, id IDInput, state *SecretSshkeyState, opts ...ResourceOption) (*SecretSshkey, error)
    public static SecretSshkey Get(string name, Input<string> id, SecretSshkeyState? state, CustomResourceOptions? opts = null)
    public static SecretSshkey get(String name, Output<String> id, SecretSshkeyState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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
    The unique name of the resulting resource.
    id
    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.
    The following state arguments are supported:
    Description string
    Description of the resource.
    Identifier string
    Unique identifier of the resource.
    Kerberos Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeyKerberos
    Kerberos authentication scheme
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    Port int
    SSH port
    ProjectId string
    Unique identifier of the project.
    Ssh Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeySsh
    Kerberos authentication scheme
    Tags List<string>
    Tags to associate with the resource.
    Description string
    Description of the resource.
    Identifier string
    Unique identifier of the resource.
    Kerberos SecretSshkeyKerberosArgs
    Kerberos authentication scheme
    Name string
    Name of the resource.
    OrgId string
    Unique identifier of the organization.
    Port int
    SSH port
    ProjectId string
    Unique identifier of the project.
    Ssh SecretSshkeySshArgs
    Kerberos authentication scheme
    Tags []string
    Tags to associate with the resource.
    description String
    Description of the resource.
    identifier String
    Unique identifier of the resource.
    kerberos SecretSshkeyKerberos
    Kerberos authentication scheme
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    port Integer
    SSH port
    projectId String
    Unique identifier of the project.
    ssh SecretSshkeySsh
    Kerberos authentication scheme
    tags List<String>
    Tags to associate with the resource.
    description string
    Description of the resource.
    identifier string
    Unique identifier of the resource.
    kerberos SecretSshkeyKerberos
    Kerberos authentication scheme
    name string
    Name of the resource.
    orgId string
    Unique identifier of the organization.
    port number
    SSH port
    projectId string
    Unique identifier of the project.
    ssh SecretSshkeySsh
    Kerberos authentication scheme
    tags string[]
    Tags to associate with the resource.
    description str
    Description of the resource.
    identifier str
    Unique identifier of the resource.
    kerberos SecretSshkeyKerberosArgs
    Kerberos authentication scheme
    name str
    Name of the resource.
    org_id str
    Unique identifier of the organization.
    port int
    SSH port
    project_id str
    Unique identifier of the project.
    ssh SecretSshkeySshArgs
    Kerberos authentication scheme
    tags Sequence[str]
    Tags to associate with the resource.
    description String
    Description of the resource.
    identifier String
    Unique identifier of the resource.
    kerberos Property Map
    Kerberos authentication scheme
    name String
    Name of the resource.
    orgId String
    Unique identifier of the organization.
    port Number
    SSH port
    projectId String
    Unique identifier of the project.
    ssh Property Map
    Kerberos authentication scheme
    tags List<String>
    Tags to associate with the resource.

    Supporting Types

    SecretSshkeyKerberos, SecretSshkeyKerberosArgs

    Principal string
    Username to use for authentication.
    Realm string
    Reference to a secret containing the password to use for authentication.
    TgtGenerationMethod string
    Method to generate tgt
    TgtKeyTabFilePathSpec Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeyKerberosTgtKeyTabFilePathSpec
    Authenticate to App Dynamics using username and password.
    TgtPasswordSpec Lbrlabs.PulumiPackage.Harness.Platform.Inputs.SecretSshkeyKerberosTgtPasswordSpec
    Authenticate to App Dynamics using username and password.
    Principal string
    Username to use for authentication.
    Realm string
    Reference to a secret containing the password to use for authentication.
    TgtGenerationMethod string
    Method to generate tgt
    TgtKeyTabFilePathSpec SecretSshkeyKerberosTgtKeyTabFilePathSpec
    Authenticate to App Dynamics using username and password.
    TgtPasswordSpec SecretSshkeyKerberosTgtPasswordSpec
    Authenticate to App Dynamics using username and password.
    principal String
    Username to use for authentication.
    realm String
    Reference to a secret containing the password to use for authentication.
    tgtGenerationMethod String
    Method to generate tgt
    tgtKeyTabFilePathSpec SecretSshkeyKerberosTgtKeyTabFilePathSpec
    Authenticate to App Dynamics using username and password.
    tgtPasswordSpec SecretSshkeyKerberosTgtPasswordSpec
    Authenticate to App Dynamics using username and password.
    principal string
    Username to use for authentication.
    realm string
    Reference to a secret containing the password to use for authentication.
    tgtGenerationMethod string
    Method to generate tgt
    tgtKeyTabFilePathSpec SecretSshkeyKerberosTgtKeyTabFilePathSpec
    Authenticate to App Dynamics using username and password.
    tgtPasswordSpec SecretSshkeyKerberosTgtPasswordSpec
    Authenticate to App Dynamics using username and password.
    principal str
    Username to use for authentication.
    realm str
    Reference to a secret containing the password to use for authentication.
    tgt_generation_method str
    Method to generate tgt
    tgt_key_tab_file_path_spec SecretSshkeyKerberosTgtKeyTabFilePathSpec
    Authenticate to App Dynamics using username and password.
    tgt_password_spec SecretSshkeyKerberosTgtPasswordSpec
    Authenticate to App Dynamics using username and password.
    principal String
    Username to use for authentication.
    realm String
    Reference to a secret containing the password to use for authentication.
    tgtGenerationMethod String
    Method to generate tgt
    tgtKeyTabFilePathSpec Property Map
    Authenticate to App Dynamics using username and password.
    tgtPasswordSpec Property Map
    Authenticate to App Dynamics using username and password.

    SecretSshkeyKerberosTgtKeyTabFilePathSpec, SecretSshkeyKerberosTgtKeyTabFilePathSpecArgs

    KeyPath string
    KeyPath string
    keyPath String
    keyPath string
    keyPath String

    SecretSshkeyKerberosTgtPasswordSpec, SecretSshkeyKerberosTgtPasswordSpecArgs

    Password string
    Password string
    password String
    password string
    password String

    SecretSshkeySsh, SecretSshkeySshArgs

    CredentialType string
    This specifies SSH credential type as Password, KeyPath or KeyReference
    SshPasswordCredential SecretSshkeySshSshPasswordCredential
    SSH credential of type keyReference
    SshkeyPathCredential SecretSshkeySshSshkeyPathCredential
    SSH credential of type keyPath
    SshkeyReferenceCredential SecretSshkeySshSshkeyReferenceCredential
    SSH credential of type keyReference
    credentialType String
    This specifies SSH credential type as Password, KeyPath or KeyReference
    sshPasswordCredential SecretSshkeySshSshPasswordCredential
    SSH credential of type keyReference
    sshkeyPathCredential SecretSshkeySshSshkeyPathCredential
    SSH credential of type keyPath
    sshkeyReferenceCredential SecretSshkeySshSshkeyReferenceCredential
    SSH credential of type keyReference
    credentialType string
    This specifies SSH credential type as Password, KeyPath or KeyReference
    sshPasswordCredential SecretSshkeySshSshPasswordCredential
    SSH credential of type keyReference
    sshkeyPathCredential SecretSshkeySshSshkeyPathCredential
    SSH credential of type keyPath
    sshkeyReferenceCredential SecretSshkeySshSshkeyReferenceCredential
    SSH credential of type keyReference
    credential_type str
    This specifies SSH credential type as Password, KeyPath or KeyReference
    ssh_password_credential SecretSshkeySshSshPasswordCredential
    SSH credential of type keyReference
    sshkey_path_credential SecretSshkeySshSshkeyPathCredential
    SSH credential of type keyPath
    sshkey_reference_credential SecretSshkeySshSshkeyReferenceCredential
    SSH credential of type keyReference
    credentialType String
    This specifies SSH credential type as Password, KeyPath or KeyReference
    sshPasswordCredential Property Map
    SSH credential of type keyReference
    sshkeyPathCredential Property Map
    SSH credential of type keyPath
    sshkeyReferenceCredential Property Map
    SSH credential of type keyReference

    SecretSshkeySshSshPasswordCredential, SecretSshkeySshSshPasswordCredentialArgs

    Password string
    UserName string
    Password string
    UserName string
    password String
    userName String
    password string
    userName string
    password String
    userName String

    SecretSshkeySshSshkeyPathCredential, SecretSshkeySshSshkeyPathCredentialArgs

    SecretSshkeySshSshkeyReferenceCredential, SecretSshkeySshSshkeyReferenceCredentialArgs

    Key string
    UserName string
    EncryptedPassphrase string
    Key string
    UserName string
    EncryptedPassphrase string
    key String
    userName String
    encryptedPassphrase String
    key string
    userName string
    encryptedPassphrase string
    key String
    userName String
    encryptedPassphrase String

    Import

    Import account level secret sshkey

     $ pulumi import harness:platform/secretSshkey:SecretSshkey example <secret_sshkey_id>
    

    Import org level secret sshkey

     $ pulumi import harness:platform/secretSshkey:SecretSshkey example <ord_id>/<secret_sshkey_id>
    

    Import project level secret sshkey

     $ pulumi import harness:platform/secretSshkey:SecretSshkey example <org_id>/<project_id>/<secret_sshkey_id>
    

    Package Details

    Repository
    harness lbrlabs/pulumi-harness
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the harness Terraform Provider.
    harness logo
    Harness v0.0.6 published on Saturday, Jul 1, 2023 by lbrlabs