CreateKeyPair
In this article:
CreateKeyPair#
Description#
Creates a SSH-key pair. CROC Cloud creates public and private RSA-keys.
Request Parameters#
Required parameters#
KeyName — The name of the key pair.
Type: String
Required: Yes
Optional parameters#
TagSpecification.N — Tags assigned to the SSH key pair when it is created.
Type: List of TagSpecification objects
Required: No
Response Elements#
keyFingerprint — The digest of the encoded private key.
Type: String
keyMaterial — The private RSA key.
Type: String
keyName — The name of the key pair.
Type: String
keyPairId — The ID of the key pair.
Type: String
requestId — The request ID.
Type: String
tagSet — Tags related to the key pair.
Type: List of Tag objects
Examples#
c2-ec2 CreateKeyPair KeyName <name>
c2-ec2 CreateKeyPair KeyName <name> TagSpecification.1.ResourceType key-pair \
TagSpecification.1.Tag.0.Key "tag_key" \
TagSpecification.1.Tag.0.Value "tag_value"