createLoginKey
- Print
- PDF
createLoginKey
- Print
- PDF
Article summary
Did you find this summary helpful?
Thank you for your feedback
Overview
Creating a login key
Description
Create a server instance (VM) and delete keys which encode or decode passwords using login keys when you access the created server instance.
Request Parameters
Parameter Name | Requiredness | Type | Limit | Description |
---|---|---|---|---|
keyName | Yes | String | Min:3, Max:30 | Key name to create If there already exists a key name, an error may occur. |
Response Data Type
- PrivateKey type
PrivateKey extends CommonResponse |
---|
private String privateKey; |
Examples
Request
ncloud server createLoginKey --keyName ncloudTest
Response
{
"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\nJ1jpX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