createLoginKey
    • PDF

    createLoginKey

    • PDF

    Article summary

    Overview

    Creates a key that encrypts and decrypts a password with the login key when accessing a server instance (VM).

    Request

    Request parameters

    ParameterRequiredTypeLimitationsDescription
    keyNameYStringMin: 3, Max: 30Key name to create.
    If the key name already exists, an error occurs.

    Response

    Response body

    Examples

    Request example

    GET {SERVER_API_URL}/createLoginKey
    ?keyName=create-key-test
    

    Response example

    <createLoginKeyResponse>
      <requestId>e26d3d10-95c8-4c79-b051-803228d2b41f</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <privateKey>-----BEGIN RSA PRIVATE KEY-----MIIEpAIBAAKCAQEAyYJRbytWXiiZHJccWOypon5UORDDb3W/hs+NDpnHUzfo1cKdgsBuNEd/XeyXW4jwUAWLXxebnysgjNnpSJzsxQFiuB06O1qMQgiVslfmDAQG9yFa8mr/uSLlvYP+dFkAKhxNyIC7JZ0y334ueECfHFInE0hTY1jo5vTgjaxxuJ69am0n8KBwVXVc9HBo/SWTfa6Sy7umqDTplGdq3oztjYDN9/nF9ATwmPNHKWAAq3cpEHIOihTAhuqxiS84WyOlBNSDpFWpfxWavtbPIljnEu27/BQjlnwbcGCx1ukJ+ScdoAIRIbPFjlP/2bShqJFco1pviLCvRyIeuj8lG/RyuwIDAQABAoIBAD1F+y0qqGCJR8WBzYTcsdhPQZz4k/TYgRylD+dYq1uKrKoTO4H+sYQEGZ6dyohy41/xz6dirld/7a3mtSD3Vqew/Cuv930E05FguuQ4BiOxNcz/v3/nOUs6aVFvSXhnd71WTfCh9EZDvqxm2gqG29rowCkE3RZgerF/1Kg/v3S7hXo2w1Ntv5aBp7cbaFwFazg4Bl0PLo5LS2HKedGcj8W0vrqxuRj7FU+oVMDYrrjMoC9/9gfswhBm2xNT1OQUX8TQNWe6g10823p5BRcYnlSOX4GCudtOeiDzIyRlMB2azFnmCPbVlZW4ShbxvBtrpGj19DDB5aU/rQYghdDFZsECgYEA+MEZkHUpnphk7pMXo4doI61/19PyOjIvnQxnuAqT1Ku9efE3Xb3IQo9hxI3ofjso+oASFnilFA3Gao6aqTmVM6+oaOAjqQBl2Qh4fpBCNhnmqK0pMk9HE4EWeymxJC25mDu/kBzjU3sWCADPmxcACQQkDbzVFm7PTyh2XXu9xIcCgYEAz2DsB/y8JngW7bPUuAEf5nCq5QnNlz7ph48Dw1JMUrZWBtp1sSTQsMbmplsqcAYZ2/yW+5BSQYayDh52CJs4RaPk9ZCAyWnSRzgb7lIx9VnhGeMVV94sBSrULlu3r38IRHvDcYpvEM/0fXVC6xAUqzm/g4V8JO50FD9/P6UAoS0CgYEAiRBlVKqqHyAbZTWZbdq7cAU2jybSrmxevetK7yas5B8pTRqzhix/PuWgWlxTAdL5NmYBEW6yjwU0Ehy3bY00AAHHCtqN654zgE3hjuNQCF1nMgQP0g/Kux2C1KRZXfTv8cjiObchLyuALTK9MdiPhWhJsWQeCblO82/5IHOBUdsCgYEAy5M6wXCCB0WWRIxngqZf+Wia6rJf51x0BYYITKKql/u0oY+tP1ODpjXrUF1oYIYstn7UfGmlxfuDKUcP2cz+RabpaYMMWiyOpylWifKYZmFwD2iTmClaj0wG9OdGf3o11HymVPxvoVJzkQEeywCDOb872NGeF+cZfpMCyKii4JUCgYB2bQq5BpC2XeDE/t0bA6Iw6cUwSZpYrUNDmhLKOk57WmBGjPby8vBnfge4a7eNA1c6kAqdgAoRKZu8wchPIE3Va+nAA4H9mFPmL4xyzVOpYwbpm5ZDLk5xhg35lqHSJamL8168e58mWRV//7q2yjmv571U0Siuh6vrNnNYmf6GTQ==
    -----END RSA PRIVATE KEY-----
    </privateKey>
    </createLoginKeyResponse>
    

    Error codes

    Errors that may occur while using this action are listed below. For information on common errors, refer to NAVER Cloud Platform API.

    HTTP response codeReturn codeReturn message
    40010405The key name already exists. keyName : ${0}

    Was this article helpful?

    What's Next
    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.