SshKey
Create a SshKey Resource
new SshKey(name: string, args: SshKeyArgs, opts?: CustomResourceOptions);def SshKey(resource_name, opts=None, name=None, public_key=None, __props__=None);func NewSshKey(ctx *Context, name string, args SshKeyArgs, opts ...ResourceOption) (*SshKey, error)public SshKey(string name, SshKeyArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args SshKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args SshKeyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args SshKeyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
SshKey Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The SshKey resource accepts the following input properties:
- name str
The name of the SSH key for identification
- public_
key str The public key. If this is a file, it can be read using the file interpolation function
Outputs
All input properties are implicitly available as output properties. Additionally, the SshKey resource produces the following output properties:
- Created string
The timestamp for when the SSH key was created
- Fingerprint string
The fingerprint of the SSH key
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string The UUID of the Packet API User who owns this key
- Updated string
The timestamp for the last time the SSH key was updated
- Created string
The timestamp for when the SSH key was created
- Fingerprint string
The fingerprint of the SSH key
- Id string
- The provider-assigned unique ID for this managed resource.
- Owner
Id string The UUID of the Packet API User who owns this key
- Updated string
The timestamp for the last time the SSH key was updated
- created string
The timestamp for when the SSH key was created
- fingerprint string
The fingerprint of the SSH key
- id string
- The provider-assigned unique ID for this managed resource.
- owner
Id string The UUID of the Packet API User who owns this key
- updated string
The timestamp for the last time the SSH key was updated
Look up an Existing SshKey Resource
Get an existing SshKey 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?: SshKeyState, opts?: CustomResourceOptions): SshKeystatic get(resource_name, id, opts=None, created=None, fingerprint=None, name=None, owner_id=None, public_key=None, updated=None, __props__=None);func GetSshKey(ctx *Context, name string, id IDInput, state *SshKeyState, opts ...ResourceOption) (*SshKey, error)public static SshKey Get(string name, Input<string> id, SshKeyState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Created string
The timestamp for when the SSH key was created
- Fingerprint string
The fingerprint of the SSH key
- Name string
The name of the SSH key for identification
- Owner
Id string The UUID of the Packet API User who owns this key
- Public
Key string The public key. If this is a file, it can be read using the file interpolation function
- Updated string
The timestamp for the last time the SSH key was updated
- Created string
The timestamp for when the SSH key was created
- Fingerprint string
The fingerprint of the SSH key
- Name string
The name of the SSH key for identification
- Owner
Id string The UUID of the Packet API User who owns this key
- Public
Key string The public key. If this is a file, it can be read using the file interpolation function
- Updated string
The timestamp for the last time the SSH key was updated
- created string
The timestamp for when the SSH key was created
- fingerprint string
The fingerprint of the SSH key
- name string
The name of the SSH key for identification
- owner
Id string The UUID of the Packet API User who owns this key
- public
Key string The public key. If this is a file, it can be read using the file interpolation function
- updated string
The timestamp for the last time the SSH key was updated
- created str
The timestamp for when the SSH key was created
- fingerprint str
The fingerprint of the SSH key
- name str
The name of the SSH key for identification
- owner_
id str The UUID of the Packet API User who owns this key
- public_
key str The public key. If this is a file, it can be read using the file interpolation function
- updated str
The timestamp for the last time the SSH key was updated
Package Details
- Repository
- https://github.com/pulumi/pulumi-packet
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
packetTerraform Provider.