CreatedKeyPair

Overview

This data type is included in the result of the next API request.

DATA TYPE

Contents

Contents
PARAMETER DESCRIPTION DATATYPE
fingerprint Fingerprint of public key. String
name Name of KeyPair. String
public_key SSH public key. String
private_key Generated SSH private key. (This parameter is visible only when did not specify public_key) String
user_id KeyPair created user id. String

Examples

Generate KeyPair include

{
  "keypair": {
    "name": "generated-key",
    "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQC9A6d3dY2K/QeCBsO+DFE1zfCn2skqZE+umJaUNy99BG25W7EnvHmwzJIzwobsc834lUCWhxQ01EUYRZUp+GLH",
    "private_key": "-----BEGIN RSA PRIVATE KEY-----\\nMIIBPAIBAAJBAL0Dp3d1jYr9B4IGw74MUTXN8KfaySpkT66YlpQ3L30EbblbsSe8\\nebDMkjPChuxzzfiVQJaHFDTURRhFlSn4YscCAwEAAQJBALvBvoAnEKRpNyUNrTHD\\nMISe/xjud3gZzyFjx+iRbSXkJCzEpJzFVxeGqhjKVl0LRVRamXbyxzzpl1izUc/m\\nAVkCIQDg8Un/I9ahOYOQHgUm3GAK7lRo9u3a0nzeejLapqKEfQIhANccdkeMkyMQ\\nLQvzC/1+NEHiKcqi+7uV5CqMtpBki7uTAiEA2IluIh3tzuX+sA02CGK8Ucl7mE+c\\nSLm3WrNnoPQoHkECIDzet/WdKNGmNSkJeJ4dxUnTZsIJhrRZQPxtXwfS+9tzAiEA\\ntGJDUKq7Z0P/pKUqVadogrJ3vkhXqy4k664PTPOEwhY=\\n-----END RSA PRIVATE KEY-----\\n",
    "fingerprint": "ce:66:48:df:f8:23:49:9c:d6:00:e3:74:d1:0c:0a:26",
    "user_id": "270dd02f-2abf-48bd-813a-f8a4470da7f7"
  }
}

Import KeyPair (without private key)

{
  "keypair": {
    "name": "public-key",
    "public_key": "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAAAQQCtzdf5vKNNSoeMfTUUj65eJLMjXfIbtc2GQn6+EEISHX6vjBzsTMdToQJEhgg+5rYlb5tc2mvPYNbPDIJV8OyV",
    "fingerprint": "2c:42:86:f4:a0:2f:b9:96:a6:e5:d9:31:c8:a3:73:1d",
    "user_id": "270dd02f-2abf-48bd-813a-f8a4470da7f7"
  }
}