Class SshKey
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: Pulumi.DigitalOcean
Assembly: Pulumi.DigitalOcean.dll
Syntax
public class SshKey : CustomResource
Constructors
View SourceSshKey(String, SshKeyArgs, CustomResourceOptions)
Create a SshKey resource with the given unique name, arguments, and options.
Declaration
public SshKey(string name, SshKeyArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| SshKeyArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceFingerprint
The fingerprint of the SSH key
Declaration
public Output<string> Fingerprint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Name
The name of the SSH key for identification
Declaration
public Output<string> Name { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicKey
The public key. If this is a file, it can be read using the file interpolation function
Declaration
public Output<string> PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, SshKeyState, CustomResourceOptions)
Get an existing SshKey resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static SshKey Get(string name, Input<string> id, SshKeyState 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. |
| SshKeyState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| SshKey |