SSHKeyPairProps
Properties for defining a SSHKeyPair
.
See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypair
Initializer
using AlibabaCloud.SDK.ROS.CDK.Ecs;
new SSHKeyPairProps {
object KeyPairName,
object PublicKeyBody = null,
object ResourceGroupId = null,
TagsProperty[] Tags = null
};
Properties
Name | Type | Description |
---|---|---|
KeyPairName |
object |
Property keyPairName: SSH key pair name. |
PublicKeyBody |
object |
Property publicKeyBody: SSH Public key. |
ResourceGroupId |
object |
Property resourceGroupId: Resource group id. |
Tags |
TagsProperty[] |
Property tags: Tags to attach to instance. |
KeyPairName
Required
public object KeyPairName { get; set; }
- Type: object
Property keyPairName: SSH key pair name.
It must be unique. [2, 128] characters. All character sets are supported. Do not start with a special character, digit, http://, or https://. It can contain digits, ".", "_", or "-".
PublicKeyBody
Optional
public object PublicKeyBody { get; set; }
- Type: object
Property publicKeyBody: SSH Public key.
If PublicKeyBody is specified, existed public key body will be imported instead of creating new SSH key pair.
ResourceGroupId
Optional
public object ResourceGroupId { get; set; }
- Type: object
Property resourceGroupId: Resource group id.
Tags
Optional
public TagsProperty[] Tags { get; set; }
- Type: TagsProperty[]
Property tags: Tags to attach to instance.
Max support 20 tags to add during create instance. Each tag with two properties Key and Value, and Key is required.