Show / Hide Table of Contents

Class Keypair

Inheritance
System.Object
Resource
CustomResource
Keypair
Inherited Members
CustomResource.Id
Resource.GetResourceType()
Resource.GetResourceName()
Resource.Urn
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.OpenStack.Compute
Assembly: Pulumi.OpenStack.dll
Syntax
public class Keypair : CustomResource

Constructors

View Source

Keypair(String, KeypairArgs, CustomResourceOptions)

Create a Keypair resource with the given unique name, arguments, and options.

Declaration
public Keypair(string name, KeypairArgs args = null, CustomResourceOptions options = null)
Parameters
Type Name Description
System.String name

The unique name of the resource

KeypairArgs args

The arguments used to populate this resource's properties

CustomResourceOptions options

A bag of options that control this resource's behavior

Properties

View Source

Fingerprint

The fingerprint of the public key.

Declaration
public Output<string> Fingerprint { get; }
Property Value
Type Description
Output<System.String>
View Source

Name

A unique name for the keypair. Changing this creates a new keypair.

Declaration
public Output<string> Name { get; }
Property Value
Type Description
Output<System.String>
View Source

PrivateKey

The generated private key when no public key is specified.

Declaration
public Output<string> PrivateKey { get; }
Property Value
Type Description
Output<System.String>
View Source

PublicKey

A pregenerated OpenSSH-formatted public key. Changing this creates a new keypair. If a public key is not specified, then a public/private key pair will be automatically generated. If a pair is created, then destroying this resource means you will lose access to that keypair forever.

Declaration
public Output<string> PublicKey { get; }
Property Value
Type Description
Output<System.String>
View Source

Region

The region in which to obtain the V2 Compute client. Keypairs are associated with accounts, but a Compute client is needed to create one. If omitted, the region argument of the provider is used. Changing this creates a new keypair.

Declaration
public Output<string> Region { get; }
Property Value
Type Description
Output<System.String>
View Source

ValueSpecs

Map of additional options.

Declaration
public Output<ImmutableDictionary<string, object>> ValueSpecs { get; }
Property Value
Type Description
Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>>

Methods

View Source

Get(String, Input<String>, KeypairState, CustomResourceOptions)

Get an existing Keypair resource's state with the given name, ID, and optional extra properties used to qualify the lookup.

Declaration
public static Keypair Get(string name, Input<string> id, KeypairState 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.

KeypairState state

Any extra arguments used during the lookup.

CustomResourceOptions options

A bag of options that control this resource's behavior

Returns
Type Description
Keypair
  • View Source
Back to top Copyright 2016-2020, Pulumi Corporation.