The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in VPC
Create a block storage instance.
Syntax
The createBlockStorageInstance syntax is as follows:
./ncloud vserver createBlockStorageInstance \
[--zoneCode <zone-code>] \
[--serverInstanceNo <server-instance-no>] \
[--blockStorageVolumeTypeCode <volume-type-code>] \
[--blockStorageSize <block-storage-size>] \
[--blockStorageName <block-storage-name>] \
[--blockStorageDiskDetailTypeCode <SSD|HDD>] \
[--blockStorageSnapshotInstanceNo <snapshot-instance-no>] \
[--blockStorageDescription <block-storage-description>] \
[--isReturnProtection <true|false>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createBlockStorageInstance.
Required options
The following options are required for createBlockStorageInstance.
| Options | Type | Required | Description |
|---|---|---|---|
--zoneCode |
String | Conditional | Zone code
|
--serverInstanceNo |
String | Conditional | Server instance number
|
--blockStorageVolumeTypeCode |
String | Conditional | Block storage volume type code
|
--blockStorageSize |
Integer | Conditional | Block storage size (GB)
|
Optional options
These are the optional options for createBlockStorageInstance. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--blockStorageName |
String | Optional | Block storage name
|
--blockStorageDiskDetailTypeCode |
String | Optional | Block storage disk detailed type code
|
--blockStorageSnapshotInstanceNo |
String | Optional | Block storage snapshot instance number
|
--blockStorageDescription |
String | Optional | Block storage description (byte)
|
--isReturnProtection |
Boolean | Optional | Termination protection status
|
Common options
For information about the options common to all vserver subcommands, see Server (VPC) options.
Examples
If the request to create a block storage instance is successful, the block storage's identification information and initial status are returned.
Command
The command example is as follows:
./ncloud vserver createBlockStorageInstance \
--serverInstanceNo 34567890 \
--blockStorageSize 50 \
--blockStorageName test-block-storage-01 \
--blockStorageDiskDetailTypeCode SSD \
--blockStorageDescription "Test block storage" \
--isReturnProtection false \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createBlockStorageInstanceResponse": {
"totalRows": 1,
"blockStorageInstanceList": [
{
"blockStorageInstanceNo": "89012345",
"serverInstanceNo": "34567890",
"blockStorageName": "test-block-storage-01",
"blockStorageType": {
"code": "SVRBS",
"codeName": "Server BS"
},
"blockStorageSize": 53687091200,
"blockStorageProductCode": "SPBSTBSTAD000006",
"blockStorageInstanceStatus": {
"code": "INIT",
"codeName": "Block storage INIT status"
},
"blockStorageInstanceOperation": {
"code": "NULL",
"codeName": "Block storage NULL OP"
},
"blockStorageInstanceStatusName": "initialized",
"createDate": "2026-05-14T20:18:21+0900",
"blockStorageDescription": "Test block storage",
"blockStorageDiskType": {
"code": "NET",
"codeName": "Network storage"
},
"blockStorageDiskDetailType": {
"code": "SSD",
"codeName": "SSD"
},
"maxIopsThroughput": 4000,
"isEncryptedVolume": false,
"zoneCode": "KR-1",
"regionCode": "KR",
"isReturnProtection": false,
"blockStorageVolumeType": {
"code": "SSD",
"codeName": "SSD"
},
"hypervisorType": {
"code": "XEN",
"codeName": "XEN"
}
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}