Skip to content

SSHKeyPairProps

Properties for defining a SSHKeyPair.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-ecs-sshkeypair

Initializer

import "github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs"
&alicloudroscdkecs.SSHKeyPairProps {
    KeyPairName: interface{},
    PublicKeyBody: interface{},
    ResourceGroupId: interface{},
    Tags: *[]github.com/alibabacloud-go/ros-cdk/alicloudroscdkecs.RosSSHKeyPair.TagsProperty,
}

Properties

Name Type Description
KeyPairName interface{} Property keyPairName: The name of the key pair.
PublicKeyBody interface{} Property publicKeyBody: SSH Public key.
ResourceGroupId interface{} Property resourceGroupId: Resource group id.
Tags *[]TagsProperty Property tags: Tags to attach to instance.

KeyPairNameRequired

KeyPairName interface{}
  • Type: interface{}

Property keyPairName: The name of the key pair.

The name must be unique. It must be 2 to 128 characters in length. It must start with a letter and cannot start with http:// or https://. It can contain letters, digits, colons (:), underscores (_), and hyphens (-).


PublicKeyBodyOptional

PublicKeyBody interface{}
  • Type: interface{}

Property publicKeyBody: SSH Public key.

If PublicKeyBody is specified, existed public key body will be imported instead of creating new SSH key pair.


ResourceGroupIdOptional

ResourceGroupId interface{}
  • Type: interface{}

Property resourceGroupId: Resource group id.


TagsOptional

Tags *[]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.