Available in VPC
Create a Cloud DB for Cache instance.
Cloud DB for Cache CLI offers two versions based on the supported DBMS range.
- createCloudCacheInstance CLI: Support for Valkey and Redis DBMS
- createCloudRedisInstance CLI: Support for Redis DBMS
createCloudCacheInstance CLI
This section describes the command syntax, options, commands, and output examples for the createCloudCacheInstance CLI.
Syntax
The createCloudCacheInstance syntax is as follows:
./ncloud vcache createCloudCacheInstance \
--vpcNo <vpc-no> \
--subnetNo <subnet-no> \
--cloudCacheServiceName <service-name> \
--cloudCacheServerNamePrefix <server-name-prefix> \
--configGroupNo <config-group-no> \
--cloudCacheModeCode <SIMPLE|CLUSTER> \
[--cloudCacheImageProductCode <image-product-code>] \
[--cloudCacheProductCode <product-code>] \
[--engineVersionCode <engine-version-code>] \
[--shardCount <shard-count>] \
[--shardCopyCount <shard-copy-count>] \
[--isHa <true|false>] \
[--isBackup <true|false>] \
[--isAutomaticBackup <true|false>] \
[--backupTime <hh:mm>] \
[--backupFileRetentionPeriod <retention-days>] \
[--cloudCachePort <port>] \
[--cloudCacheDbmsCode <Redis|Valkey>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createCloudCacheInstance.
Required options
The following options are required for createCloudCacheInstance.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | Number of VPC on which to create the Cloud DB for Cache instance |
--subnetNo |
String | Required | Subnet number of the Cloud DB for Cache instance
|
--cloudCacheServiceName |
String | Required | Cloud DB for Cache service name
|
--cloudCacheServerNamePrefix |
String | Required | Cloud DB for Cache server name prefix
|
--configGroupNo |
String | Required | Config group number
|
--cloudCacheModeCode |
String | Required | Cloud DB for Cache mode
|
--engineVersionCode |
String | Conditional | DB engine version
|
--backupTime |
String | Conditional | Set backup time (HH:MM).
|
Optional options
These are the optional options for createCloudCacheInstance. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudCacheImageProductCode |
String | Optional | Cloud DB for Cache image product code
|
--cloudCacheProductCode |
String | Optional | Cloud DB for Cache product code
|
--shardCount |
Integer | Optional | Number of master nodes created when DB mode is Cluster
|
--shardCopyCount |
Integer | Optional | Number of slave nodes that are replicas of the master node when DB mode is Cluster
|
--isHa |
Boolean | Optional | High availability status
|
--isBackup |
Boolean | Optional | Whether DB server backup is enabled
|
--isAutomaticBackup |
Boolean | Optional | Whether to set the backup time automatically
|
--backupFileRetentionPeriod |
Integer | Optional | Backup file retention period (days)
|
--cloudCachePort |
Integer | Optional | TCP port number to access the Cloud DB for Cache instance
|
--cloudCacheDbmsCode |
String | Optional | Cloud DB for Cache instance's DBMS code
|
Common options
For information about the options common to all vcache subcommands, see Cloud DB for Cache (VPC) options.
Examples
If the request to create a Cloud DB for Cache instance is successful, the instance's configuration information and creation status are returned.
Command
The command example is as follows:
./ncloud vcache createCloudCacheInstance \
--vpcNo 12345678 \
--subnetNo 23456789 \
--cloudCacheServiceName test-cache-01 \
--cloudCacheServerNamePrefix testcache \
--configGroupNo 11099 \
--cloudCacheModeCode CLUSTER \
--cloudCacheImageProductCode SW.VRDS.OS.LNX64.ROCKY.0810.VALKY.B050 \
--cloudCacheProductCode SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002 \
--shardCount 3 \
--shardCopyCount 1 \
--isBackup true \
--isAutomaticBackup true \
--backupFileRetentionPeriod 1 \
--cloudCachePort 13306 \
--cloudCacheDbmsCode Valkey \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createCloudCacheInstanceResponse": {
"totalRows": 1,
"cloudCacheInstanceList": [
{
"cloudCacheInstanceNo": "34567890",
"cloudCacheServiceName": "test-cache-01",
"cloudCacheInstanceStatusName": "creating",
"cloudCacheInstanceStatus": {
"code": "INIT",
"codeName": "CLOUD DATABASE (VPC) Init status"
},
"cloudCacheInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE(VPC) Creat OP"
},
"cloudCacheImageProductCode": "SW.VRDS.OS.LNX64.ROCKY.0810.VALKY.B050",
"engineVersion": "VALKEY 7.2.11",
"license": {
"code": "BSD",
"codeName": "License code - CLOUD DATABASE (VPC)"
},
"cloudCachePort": 13306,
"isHa": true,
"cloudCacheServerPrefix": "testcache",
"generationCode": "G2",
"role": {
"code": "CLUSTER",
"codeName": "Cluster Role-CLOUD Cache(VPC)"
},
"createDate": "2026-06-10T14:46:18+0900",
"accessControlGroupNoList": [],
"masterNodeCount": 3,
"slaveNodeCount": 3,
"configGroupNo": "11099",
"configGroupName": "test-cfg-01",
"cloudCacheServerInstanceList": [
{
"cloudCacheServerName": "testcache-001-001-98g5",
"cloudCacheServerRole": {
"code": "M",
"codeName": "Master"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
},
{
"cloudCacheServerName": "testcache-002-001-98g6",
"cloudCacheServerRole": {
"code": "M",
"codeName": "Master"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
},
{
"cloudCacheServerName": "testcache-003-001-98g7",
"cloudCacheServerRole": {
"code": "M",
"codeName": "Master"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
},
{
"cloudCacheServerName": "testcache-001-002-98g8",
"cloudCacheServerRole": {
"code": "S",
"codeName": "Slave"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
},
{
"cloudCacheServerName": "testcache-002-002-98g9",
"cloudCacheServerRole": {
"code": "S",
"codeName": "Slave"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
},
{
"cloudCacheServerName": "testcache-003-002-98ga",
"cloudCacheServerRole": {
"code": "S",
"codeName": "Slave"
},
"cloudCacheServerInstanceStatusName": "creating",
"cloudCacheServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudCacheServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-06-10T14:46:18+0900"
}
]
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}
createCloudRedisInstance CLI
This section describes the command syntax, options, commands, and output examples for the createCloudRedisInstance CLI.
Syntax
The createCloudRedisInstance syntax is as follows:
./ncloud vredis createCloudRedisInstance \
--vpcNo <vpc-no> \
--subnetNo <subnet-no> \
--cloudRedisServiceName <service-name> \
--cloudRedisServerNamePrefix <server-name-prefix> \
--configGroupNo <config-group-no> \
--cloudRedisModeCode <SIMPLE|CLUSTER> \
[--cloudRedisImageProductCode <image-product-code>] \
[--cloudRedisProductCode <product-code>] \
[--engineVersionCode <engine-version-code>] \
[--shardCount <shard-count>] \
[--shardCopyCount <shard-copy-count>] \
[--isHa <true|false>] \
[--isBackup <true|false>] \
[--isAutomaticBackup <true|false>] \
[--backupTime <hh:mm>] \
[--backupFileRetentionPeriod <retention-days>] \
[--cloudRedisPort <port>] \
[--regionCode <KR|SGN|JPN>] \
[--output <json|xml>]
Options
This section describes the options available when running createCloudRedisInstance.
Required options
The following options are required for createCloudRedisInstance.
| Options | Type | Required | Description |
|---|---|---|---|
--vpcNo |
String | Required | Number of VPC on which to create the Cloud DB for Cache instance |
--subnetNo |
String | Required | Subnet number of the Cloud DB for Cache instance
|
--cloudRedisServiceName |
String | Required | Cloud DB for Cache service name
|
--cloudRedisServerNamePrefix |
String | Required | Cloud DB for Cache server name prefix
|
--configGroupNo |
String | Required | Config group number
|
--cloudRedisModeCode |
String | Required | Cloud DB for Cache mode
|
--backupTime |
String | Conditional | Set backup time (HH:MM).
|
Optional options
These are the optional options for createCloudRedisInstance. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudRedisImageProductCode |
String | Optional | Cloud DB for Cache image product code
|
--cloudRedisProductCode |
String | Optional | Cloud DB for Cache product code
|
--engineVersionCode |
String | Optional | DB engine version
|
--shardCount |
Integer | Optional | Number of master nodes created when DB mode is Cluster
|
--shardCopyCount |
Integer | Optional | Number of slave nodes that are replicas of the master node when DB mode is Cluster
|
--isHa |
Boolean | Optional | High availability status
|
--isBackup |
Boolean | Optional | Whether DB server backup is enabled
|
--isAutomaticBackup |
Boolean | Optional | Whether to set the backup time automatically
|
--backupFileRetentionPeriod |
Integer | Optional | Backup file retention period (days)
|
--cloudRedisPort |
Integer | Optional | TCP port number to access the Cloud DB for Cache instance
|
Common options
For information about the options common to all vredis subcommands, see Cloud DB for Cache (VPC) options.
Examples
If the request to create a Cloud DB for Cache instance is successful, the instance's configuration information and creation status are returned.
Command
The command example is as follows:
./ncloud vredis createCloudRedisInstance \
--vpcNo 12345678 \
--subnetNo 23456789 \
--cloudRedisServiceName test-redis-01 \
--cloudRedisServerNamePrefix testredis \
--configGroupNo 11099 \
--cloudRedisModeCode CLUSTER \
--cloudRedisImageProductCode SW.VRDS.OS.LNX64.ROCKY.0810.REDIS.B050 \
--cloudRedisProductCode SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001 \
--shardCount 3 \
--shardCopyCount 1 \
--isBackup true \
--isAutomaticBackup true \
--backupFileRetentionPeriod 1 \
--cloudRedisPort 13306 \
--regionCode KR \
--output json
Output
The output example is as follows:
{
"createCloudRedisInstanceResponse": {
"totalRows": 1,
"cloudRedisInstanceList": [
{
"cloudRedisInstanceNo": "34567890",
"cloudRedisServiceName": "test-redis-01",
"cloudRedisInstanceStatusName": "creating",
"cloudRedisInstanceStatus": {
"code": "INIT",
"codeName": "CLOUD DATABASE (VPC) Init status"
},
"cloudRedisInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE(VPC) Creat OP"
},
"cloudRedisImageProductCode": "SW.VRDS.OS.LNX64.ROCKY.0810.REDIS.B050",
"engineVersion": "REDIS 7.2.11",
"license": {
"code": "BSD",
"codeName": "License code - CLOUD DATABASE (VPC)"
},
"cloudRedisPort": 6379,
"isHa": false,
"cloudRedisServerPrefix": "testredis",
"generationCode": "G2",
"role": {
"code": "SIMPLE",
"codeName": "Cluster Role-CLOUD Cache(VPC)"
},
"createDate": "2026-07-01T11:43:48+0900",
"accessControlGroupNoList": [],
"masterNodeCount": 1,
"slaveNodeCount": 0,
"configGroupNo": "10001",
"configGroupName": "test-redis-cfg",
"cloudRedisServerInstanceList": [
{
"cloudRedisServerName": "testredis-001-9c4s",
"cloudRedisServerRole": {
"code": "A",
"codeName": "Stand Alone"
},
"cloudRedisServerInstanceStatusName": "creating",
"cloudRedisServerInstanceStatus": {
"code": "PEND",
"codeName": "CLOUD DATABASE (VPC) server Pending status"
},
"cloudRedisServerInstanceOperation": {
"code": "CREAT",
"codeName": "CLOUD DATABASE (VPC) server Create OP"
},
"cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002",
"regionCode": "KR",
"vpcNo": "12345678",
"subnetNo": "23456789",
"cpuCount": 4,
"memorySize": 1610612736,
"osMemorySize": 2147483648,
"createDate": "2026-07-01T11:43:48+0900"
}
]
}
],
"requestId": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
"returnCode": "0",
"returnMessage": "success"
}
}