Available in VPC
Get a list of RAIDs.
Syntax
The getRaidList syntax is as follows:
./ncloud vserver getRaidList \
--productTypeCode <LINUX|WINNT> \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running getRaidList.
Required options
The following options are required for getRaidList.
| Options | Type | Required | Description |
|---|---|---|---|
--productTypeCode |
String | Required | Product type code
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the RAID list query request is successful, the identification information and product type of each RAID are returned.
Command
The command example is as follows:
./ncloud vserver getRaidList \
--productTypeCode LINUX \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"getRaidListResponse": {
"totalRows": 2,
"raidList": [
{
"raidTypeName": "1",
"raidName": "RAID 1+0",
"productType": {
"code": "LINUX",
"codeName": "Linux"
}
},
{
"raidTypeName": "5",
"raidName": "RAID 5",
"productType": {
"code": "LINUX",
"codeName": "Linux"
}
}
],
"requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012",
"returnCode": "0",
"returnMessage": "success"
}
}