Class SshKey
Provides a Linode SSH Key resource. This can be used to create, modify, and delete Linodes SSH Keys. Managed SSH Keys allow instances to be created with a list of Linode usernames, whose SSH keys will be automatically applied to the root account's ~/.ssh/authorized_keys file.
For more information, see the Linode APIv4 docs.
Attributes
This resource exports the following attributes:
created- The date this SSH Key was created.
Inherited Members
Namespace: Pulumi.Linode
Assembly: Pulumi.Linode.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 SourceCreated
The date this key was added.
Declaration
public Output<string> Created { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Label
A label for the SSH Key.
Declaration
public Output<string> Label { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
SshKeyName
The public SSH Key, which is used to authenticate to the root user of the Linodes you deploy.
Declaration
public Output<string> SshKeyName { 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 |