Available in VPC
Delete an authentication key. However, you can't delete authentication keys that are assigned a launch configuration for a server instance or Auto Scaling service.
Syntax
The deleteLoginKeys syntax is as follows:
./ncloud vserver deleteLoginKeys \
--keyNameList <key-name-list> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running deleteLoginKeys.
Required options
The following options are required for deleteLoginKeys.
| Options | Type | Required | Description |
|---|---|---|---|
--keyNameList |
List | Required | Authentication key list
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to delete the authentication key is successful, the authentication key is deleted.
Command
The command example is as follows:
./ncloud vserver deleteLoginKeys \
--keyNameList test-login-key-01 test-import-key-01 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"deleteLoginKeysResponse": {
"requestId": "d4e5f678-9012-3456-def0-456789012345",
"returnCode": "0",
"returnMessage": "success"
}
}