importLoginKey
    • PDF

    importLoginKey

    • PDF

    Article summary

    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 nameRequiredTypeRestrictionsDescription
    keyNameNoList<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.
    publicKeyYesStringOpen 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)
    responseFormatTypeNoStringFormat 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?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.