getCloudHadoopLoginKeyList

Prev Next

Available in VPC

Get an authentication key used for SSH access.

Syntax

The getCloudHadoopLoginKeyList syntax is as follows:

./ncloud vhadoop getCloudHadoopLoginKeyList \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

Options

This section describes the options available when running getCloudHadoopLoginKeyList.

Common options

For information about the options common to all vhadoop subcommands, see Cloud Hadoop (VPC) options.

Examples

If the request to retrieve the list of Cloud Hadoop authentication keys is successful, the names of each authentication key are returned.

Command

The command example is as follows:

./ncloud vhadoop getCloudHadoopLoginKeyList \
    --regionCode KR \
    --output json

Output

The output example is as follows:

{
  "getCloudHadoopLoginKeyListResponse": {
    "totalRows": 6,
    "cloudHadoopLoginKeyList": [
      {
        "keyName": "test-server-instance-key-01"
      },
      {
        "keyName": "my-server-key"
      },
      {
        "keyName": "test-key"
      },
      {
        "keyName": "server-test"
      },
      {
        "keyName": "new-key"
      },
      {
        "keyName": "api-test"
      }
    ],
    "requestId": "0718293a-ebfc-d456-0123-789abcd45678",
    "returnCode": "0",
    "returnMessage": "success"
  }
}