importLoginKey
- Print
- PDF
importLoginKey
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Can be used in a VPC environment.
Overview
This 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 name | Required | Type | Restrictions | Description |
---|---|---|---|---|
keyName | No | List<String> | Min : 3, Max : 30 Only English alphabets, numbers, and "-" can be used and it must start with an English letter. It must end with an English letter or number. | The name of the key to be created Default: NAVER Cloud Platform automatically grants it. |
publicKey | Yes | String | Open key to be imported Public key created with ssh-keygen -t rsa -C "key-name" -f ~/.ssh/key-name The following options may be required, depending on the ssh-keygen version. (-b 2048 -m PEM) | |
responseFormatType | No | String | Format type of the response results Options : xml | json Default : xml |
Response
Response body
Example
Request Example
GET {API_URL}/importLoginKey
?keyName=test-***
&publicKey=ssh-rsa ***AB3NzaC1yc2EAAAADAQABAAABAQCuEQI1uBEIvNyx/VxHmYtypM1p7yvzL6bqItyeZI/h2y5u06gsiiEztyBj4WABURbGoYHBaUCGJUjevpZpv7Tn8ZaZhdPbvKixy4QS8hMdamn0/iFoHHS6FNIwEdMwYbQcLOt/XMBMho4E3JZLNo91pMb/yHHqmezL6Bz0J0JVKZ1Bb7Fp7Qshc//+9PX9ZZJrn8+tDCAgRSvPenL220iirSevBOXfniCOdYEzZBY9/DgBc2TarMAS+JQEnJG525GjL1N+kWPezp6PBYQQBVFRFXjxq8TckDVaIqYFiT7uISnBudQir+fn4OwpVIGrdHtlq1+PnIjm34i50moqn*** test-***
Response Example
<importLoginKeyResponse>
<requestId>46b585b6-fb86-4cea-8913-9552e6cb8cce</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<loginKeyList>
<loginKey>
<fingerprint>-</fingerprint>
<keyName>test-***</keyName>
<createDate>2020-08-11T11:47:34+0900</createDate>
</loginKey>
</loginKeyList>
</importLoginKeyResponse>
Was this article helpful?