createLoginKey
    • PDF

    createLoginKey

    • PDF

    記事の要約

    概要

    ログインキー作成

    説明

    サーバインスタンス(VM)を作成し、作成されたサーバインスタンス(VM)に接続する時、ログインキーを利用してパスワードを暗号化・復号化するキーを作成します。

    リクエストパラメータ

    パラメータ名必須タイプ制約事項説明
    keyNameYesStringMin:3, Max:30作成するキー名
    既に作成されたキー名が存在する場合、エラーが発生します。

    レスポンスデータタイプ

    • PrivateKeyタイプ
    PrivateKey extends CommonResponse
    private String privateKey;

    例示

    呼び出し

    ncloud server createLoginKey --keyName ncloudTest
    

    レスポンス

    {
      "createLoginKeyResponse": {
        "requestId": "6a012a8d-29e3-43cb-b74f-44c3118f44dd",
        "returnCode": "0",
        "returnMessage": "success",
        "privateKey":
        "-----BEGIN RSA PRIVATE KEY-----\nMIIEpAIBAAKCAQEAjGpFeE+whmo57jnpKvWMZ8Spcx95SLocdxgqSPn8YClb6FsO\nc14UqY9Yish/
        c8JYrjYgd/v7ZyXxpJZvaHn0qKOuZDELK/rbOW6s8ELZlReSwmtH\nmCaCfZHIcDIwMwhXSUH5SaUDsEzRQxsQ3EuZSpX4wNeTSIa4Hthv3CLhPPQvZC5p\n54cvCl
        8H+qgnCQQKn/o8QBfgL0pTR/1n7CDFDbmjjb4hJUwngrQmk5RuU8YHzyaY\nNLOGOI9sF+jDxKvtIPSltzr7SQxlCUN2YkzpSsOTmrYnfaEspQ/bCk9CfYyU3iYy\n
        gya8O8ca00bM1bYoPjCwYShmm3aiN0kN0+qjNQIDAQABAoIBAArNej7BUsFklsRf\nLDMj5QNuu+Khf0E7IEmBUG+A3AvB4tJDfx8dE9Xfs14qArQzNYNhoqnYdwT+
        hFK3\nSCbviwUWYqpOo59kk00d2Kw7WGYCBEZ03nM0M0HZ32PSWKb0c1KtgrJJwbjkkAzr\nniZ0onx8gUDE1Q31X2DwIdr7y/xWZqLQ+b72zVRbWD3Yg04lZPDG0k
        ruAMRjK61U\nbF/1fk7Dqm42ZyNcn6ig+R44HvYhd7jQ9d9tASfgaCiXDwGr7mFIpPMmprdjlZqH\nJ1jpXS6Lr7y/C97zzze+JR2jp8mJoUg5Raq8Mem6lrK77kwD
        RPUtpquNNe7hx/8V\nLBAXsIECgYEA+wEcVBB4ZL9pT8VqRfz2gAx94ZZFJs7gP+4YNqIfttVpHGePQ+tI\nyOMCxcn0gnHvjMfMvNDFo37OQIakdzATkSnPo9N0vD
        11wUMNk7e+UI+E4PLyf9Cq\nB2QduIEgkiQJ5YIBUsWulxBCuuFiqBXyAg3ZxZ5Y2pvEv8wK5kVoi+UCgYEAjzWy\n6D+flNH7rjIoMO5dm1Kb+4bGP84WmcYjqLBe
        xRfSJI2d/VPRdU6GVcKOFzrfbJg5\nU7Q1WF+0X5xGC8GiaObYU9k72C0Va+rumxKBSgl+Wn2VHXhhWuSsBh0Y4qgJMXL2\nxvZXuALFcdn+5kzwRdlIZ0xPubC0ru
        QGPtkoZRECgYEAmbNFaIipYHABidKGUBMl\n0qVTlAbTk38MvLkMZLAEIY4vDjCv/tQdvr2b3gfbzOD94kQar+hbjdFBdSu9nCp5\nYOOsfVIn4nj0GYL41mKmjGhF
        4wWBzxi0dVAuDuQrULH2yW5BZzEbxu8zHYKUSf8e\nMXnPx34+RKcr5JKKfhU0fq0CgYAobYtc/yEIvSKksWohLhlk0LRSFGEBACfnL0U/\nyNJoJ2pegVAZhMD7sb
        hAm5TLQAZ0vKBqXdQ1Z4ce+pnXlclIfeqR+SBozYlflsnX\nIyk2gmmWGB+xWxt4sldRvoMY8UDvIbpCvqZSvw2IL3dDAnNN9KH471UOYbEQMjUF\nJv69UQKBgQCX
        X70mdwK5xUpoAOOhI2HMcj75t+Hi9oqTeixwwhJbInVg0PhsYM11\nrYnQAr9N0KhfeD3gzMq9krki6TAF9rEp6C/jqY2pebxYXOUxu0ysZtVXtqrvDoFU\ndASfup
        wiCQn3A+6MumzAHP7sadka0/0NfMM+Et/RGxzJX1tc6PYi6g\u003d\u003d\n-----END RSA PRIVATE KEY-----\n"
      }
    }
    
    <?xml version="1.0" encoding="UTF-8" ?>
    <createLoginKeyResponse>
      <requestId>6a012a8d-29e3-43cb-b74f-44c3118f44dd</requestId>
      <returnCode>0</returnCode>
      <returnMessage>success</returnMessage>
      <privateKey>-----BEGIN RSA PRIVATE KEY-----
    MIIEpAIBAAKCAQEAjGpFeE+whmo57jnpKvWMZ8Spcx95SLocdxgqSPn8YClb6FsO
    c14UqY9Yish/c8JYrjYgd/v7ZyXxpJZvaHn0qKOuZDELK/rbOW6s8ELZlReSwmtH
    mCaCfZHIcDIwMwhXSUH5SaUDsEzRQxsQ3EuZSpX4wNeTSIa4Hthv3CLhPPQvZC5p
    54cvCl8H+qgnCQQKn/o8QBfgL0pTR/1n7CDFDbmjjb4hJUwngrQmk5RuU8YHzyaY
    N+jDxKvtIPSltzr7SQxlCUN2YkzpSsOTmrYnfaEspQ/bCk9CfYyU3iYfk(jifd9V
    gya8O8ca00bM1bYoPjCwYShmm3aiN0kN0+qjNQIDAQABAoIBAArNej7BUsFklsRf
    LDMj5QNuu+Khf0E7IEmBUG+A3AvB4tJDfx8dE9Xfs14qArQzNYNhoqnYdwT+hFK3
    SCbviwUWYqpOo59kk00d2Kw7WGYCBEZ03nM0M0HZ32PSWKb0c1KtgrJJwbjkkAzr
    niZ0onx8gUDE1Q31X2DwIdr7y/xWZqLQ+b72zVRbWD3Yg04lZPDG0kruAMRjK61U
    bF/1fk7Dqm42ZyNcn6i+R44HvYhd7jQ9d9tASfgaCiXDwGr7mFIpPMmprdjlZqH
    J1jpXS6Lr7y/C97zzze+JR2jp8mJoUg5Raq8Mem6lrK77kwDRPUtpquNNe7hx/8V
    LBAXsIECgYEA+wEcVBB4ZL9pT8VqRfz2gAx94ZZFJs7gP+4YNqIfttVpHGePQ+tI
    yOMCxcn0gnHvjMfMvNDFo37OQIakdzATkSnPo9N0vD11wUMNk7e+UI+E4PLyf9Cq
    B2QduIEgkiQJ5YIBUsWulxBCuuFiqBXyAg3ZxZ5Y2pvEv8wK5kVoi+UCgYEAjzWy
    6D+flNH7rjIoMO5dm1Kb+4bGP84WmcYjqLBexRfSJI2d/VPRdU6GVcKOFzrfbJg5
    U7Q1WF+0X5xGC8GiaObYU9k72C0Va+rumxKBSgl+Wn2VHXhhWuSsBh0Y4qgJMXL2
    xvZXuALFcdn+5kzwRdlIZ0xPubC0ruQGPtkoZRECgYEAmbNFaIipYHABidKGUBMl
    0qVTlAbTk38MvLkMZLAEIY4vDjCv/tQdvr2b3gfbzOD94kQar+hbjdFBdSu9nCp5
    YOOsfVIn4nj0GYL41mKmjGhF4wWBzxi0dVAuDuQrULH2yW5BZzEbxu8zHYKUSf8e
    MXnPx34+RKcr5JKKfhU0fq0CgYAobYtc/yEIvSKksWohLhlk0LRSFGEBACfnL0U/
    yNJoJ2pegVAZhMD7sbhAm5TLQAZ0vKBqXdQ1Z4ce+pnXlclIfeqR+SBozYlflsnX
    Iyk2gmmWGB+xWxt4sldRvoMY8UDvIbpCvqZSvw2IL3dDAnNN9KH471UOYbEQMjUF
    Jv69UQKBgQCXX70mdwK5xUpoAOOhI2HMcj75t+Hi9oqTeixwwhJbInVg0PhsYM11
    rYnQAr9N0KhfeD3gzMq9krki6TAF9rEp6C/jqY2pebxYXOUxu0ysZtVXtqrvDoFU
    dASfupwiCQn3A+6MumzAHP7sadka0/0NfMM+Et/RGxzJX1tc6PYi6g==
    -----END RSA PRIVATE KEY-----
      </privateKey>
    </createLoginKeyResponse>
    

    この記事は役に立ちましたか?

    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.