importLoginKey
- Print
- PDF
importLoginKey
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Creates a key that encrypts and decrypts a password with the login key when accessing a server instance (VM). You need to import a public key that you generated with ssh-keygen.
Request
Request parameters
Parameter | Required | Type | Limitations | Description |
---|---|---|---|---|
keyName | Y | String | Min: 3, Max: 30 | Key name to create. If the key name already exists, an error occurs. |
publicKey | Y | String | Public key to import. It is a public key generated with ssh-keygen -t rsa -C "my-key" -f ~/.ssh/my-key . |
Response
Response body
Examples
Request example
GET {SERVER_API_URL}/importLoginKey
?keyName=ncloudTest
&publicKey=ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQCfE6pQTOpsdQNsFtZpIzqDMyb8gH2XUUGe+9s8b36OO0i1SXkO8+u3/4EXYdujjIH+EKb9LzMiAXOtEUX0hI+zAlJemE+sBKPTORBb+YjLvBYb99ts3pdd7x1S/dgksyxdC6ru8KNS7heU0fARZGhCXmzI9Z6PhSqFMNQcUq14UYLNHUJYshuqHv/sjCBt3QgpMLcaBmgl6TLfdq7ZW0G/iz6V1a2q200A+Fq8Yuc0JLz6Q/xQqWi1+ehKs5y3Ow3D08NLwj8Ay/7eIXqk40oo+GqkQSVWIFV3lzJXB4Po10ZRC67RdCnyf8fYbZYzYP6trr/hItvmXDryEKFUnJgZ
Response example
<importLoginKeyResponse>
<requestId>7f7c33d6-ce42-40c0-81a8-7df102c71d41</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<loginKeyList>
<fingerprint>-</fingerprint>
<keyName>ncloudTest</keyName>
<createDate>2018-06-28T16:13:13+0900</createDate>
</loginKeyList>
</importLoginKeyResponse>
Was this article helpful?