Class KeyPair
Inherited Members
Namespace: Pulumi.AliCloud.Ecs
Assembly: Pulumi.AliCloud.dll
Syntax
public class KeyPair : CustomResource
Constructors
View SourceKeyPair(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 SourceFingerPrint
Declaration
public Output<string> FingerPrint { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyFile
The name of file to save your new key pair's private key. Strongly suggest you to specified it when you creating key pair, otherwise, you wouldn't get its private key ever.
Declaration
public Output<string> KeyFile { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyName
The key pair's name. It is the only in one Alicloud account.
Declaration
public Output<string> KeyName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
KeyNamePrefix
Declaration
public Output<string> KeyNamePrefix { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
PublicKey
You can import an existing public key and using Alicloud key pair to manage it.
Declaration
public Output<string> PublicKey { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupId
The Id of resource group which the key pair belongs.
Declaration
public Output<string> ResourceGroupId { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Tags
Declaration
public Output<ImmutableDictionary<string, object>> Tags { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Collections.Immutable.ImmutableDictionary<System.String, System.Object>> |
Methods
View SourceGet(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 |