CacheStore(DBaaS)
Overview
Provides a Command-line Interface (CLI) that supports programmatic use of IaaS/PaaS products provided by SCP.
This guide provides a brief description of CacheStore(DBaaS) service and how to call CLI.
Version
Deprecated versions with Not Before dates that have arrived or expired are no longer supported. We recommend using the latest version.
| Version | Status | Not Before |
|---|
| 1.0 | CURRENT | - |
CLI Version History
1.0
Initial CLI release for CacheStore(DBaaS)
Changes
- [New]
cachestore create cluster - command has been added. - [New]
cachestore create restore - command has been added. - [New]
cachestore delete cluster - command has been added. - [New]
cachestore list backup histories - command has been added. - [New]
cachestore list clusters - command has been added. - [New]
cachestore list commands - command has been added. - [New]
cachestore list engine version properties - command has been added. - [New]
cachestore list engine versions - command has been added. - [New]
cachestore list parameter groups - command has been added. - [New]
cachestore list parameter values - command has been added. - [New]
cachestore list parameters - command has been added. - [New]
cachestore list server types - command has been added. - [New]
cachestore remove backup histories - command has been added. - [New]
cachestore restart cluster - command has been added. - [New]
cachestore set backup - command has been added. - [New]
cachestore set block storage size - command has been added. - [New]
cachestore set commands - command has been added. - [New]
cachestore set maintenance - command has been added. - [New]
cachestore set parameter values - command has been added. - [New]
cachestore set security group rules - command has been added. - [New]
cachestore set server type - command has been added. - [New]
cachestore show cluster - command has been added. - [New]
cachestore show request - command has been added. - [New]
cachestore start cluster - command has been added. - [New]
cachestore stop cluster - command has been added. - [New]
cachestore switchover cluster - command has been added. - [New]
cachestore sync cluster state - command has been added. - [New]
cachestore sync commands - command has been added. - [New]
cachestore sync parameter values - command has been added. - [New]
cachestore unset backup - command has been added. - [New]
cachestore unset maintenance - command has been added.
1 - CLIs
1.1 - Create Cluster
1.1.1 - 1.0
scp-cli cachestore cluster create
--database_user_password <value>
--timezone <value>
--subnet_id <value>
--name <value>
--instance_name_prefix <value>
--instance_groups <value>
--dbaas_engine_version_id <value>
[--allowable_ip_addresses <value>]
[--ha_enabled <value>]
[--nat_enabled <value>]
[--replica_count <value>]
[--tags <value>]
[--database_port <value>]
[--sentinel_port <value>]
[--retention_period_day <value>]
[--starting_time_hour <value>]
[--period_hour <value>]
[--starting_day_of_week <value>]
[--starting_time <value>]
Description
Create Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
database_user_password required | string | Database user password | test123! |
timezone required | string | Timezone | Asia/Seoul |
subnet_id required | string | Subnet ID | 1ddd7f1e4a8a43ed8b82d70cade0b321 |
name required | string | Cluster name | mycluster |
instance_name_prefix required | string | Instance name prefix | myprefix |
instance_groups required | array | Instance groups list | '{"block_storage_groups": [{"role_type": "OS", "size_gb": 104, "volume_type": "SSD"}, {"role_type": "DATA", "size_gb": 56, "volume_type": "SSD"}], "instances": [{"public_ip_id": "", "role_type": "MASTER", "service_ip_address": "192.168.10.10/32"}], "role_type": "MASTER", "server_type_name": "redis1v2m4"}' |
dbaas_engine_version_id required | string | DBaaS engine version ID | c1b856dd12754c0ba2614a39d0ed3ad1 |
allowable_ip_addresses optional | array | Allowed IP addresses list | - |
ha_enabled optional | boolean | HA availability | - |
nat_enabled optional | boolean | NAT availability | - |
replica_count optional | integer | Replica count | - |
tags optional | array | tag | '{"key": "", "value": ""}' |
database_port optional | integer | Database service port | - |
sentinel_port optional | integer | Sentinel port | - |
retention_period_day optional | string | Backup retention period (day) | 7 |
starting_time_hour optional | string | Backup starting time (hour) | 2 |
period_hour optional | string | Period in hours | 5 |
starting_day_of_week optional | string | Starting day of week | MON |
starting_time optional | string | Starting time | 0000 |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.2 - Create Restore Cluster
1.2.1 - 1.0
scp-cli cachestore restore create
--cluster_id <value>
--server_type_name <value>
--name <value>
--instance_name_prefix <value>
--block_storage_groups <value>
[--allowable_ip_addresses <value>]
[--backup_history_number <value>]
[--backup_recovery_time <value>]
[--tags <value>]
[--period_hour <value>]
[--starting_day_of_week <value>]
[--starting_time <value>]
Description
Create Restore Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
server_type_name required | string | Server type name | redis1v2m4 |
name required | string | Cluster name | mycluster |
instance_name_prefix required | string | Instance name prefix | myprefix |
block_storage_groups required | array | Block storage groups list | '{"role_type": "OS", "size_gb": 56, "volume_type": "SSD"}' |
allowable_ip_addresses optional | array | Allowed IP addresses list | - |
backup_history_number optional | string | Backup id | 202501010000 |
backup_recovery_time optional | string | Backup Recovery Time | - |
tags optional | array | tag | '{"key": "", "value": ""}' |
period_hour optional | string | Period in hours | 5 |
starting_day_of_week optional | string | Starting day of week | MON |
starting_time optional | string | Starting time | 0000 |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.3 - List Backup Histories
1.3.1 - 1.0
scp-cli cachestore backup history list
--cluster_id <value>
[--limit <value>]
[--page <value>]
Description
List Backup Histories.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
limit optional | integer | Number of backup lists | - |
page optional | integer | Backup list page | - |
Responses
| Name | Description | Example |
|---|
| backup_end_at | Backup end time | |
| backup_history_number | Backup id | |
| backup_size_gb | Backup amount(GB) | |
| backup_start_at | Backup start time | |
| backup_state | Backup state | |
| backup_state_detail | Backup detail state | |
| software_version | Software version | |
1.4 - List Clusters
1.4.1 - 1.0
scp-cli cachestore cluster list
[--size <value>]
[--page <value>]
[--sort <value>]
[--name <value>]
[--service_state <value>]
Description
List Clusters.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
size optional | integer | size | 20 |
page optional | integer | page | 0 |
sort optional | string | sort | created_at:desc |
name optional | string | Cluster name | - |
service_state optional | string | Service state | - |
Responses
| Name | Description | Example |
|---|
| id | ID | 0fdd87aab8cb46f59b7c1f81ed03fb3e |
| account_id | Account ID | |
| created_at | Created At | 2024-05-17T00:23:17Z |
| created_by | Created By | 90dddfc2b1e04edba54ba2b41539a9ac |
| ha_enabled | HA availability | |
| instance_count | Instance Count | |
| modified_at | Modified At | 2024-05-17T00:23:17Z |
| modified_by | Modified By | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Cluster name | |
| role_type | Role type | |
| service_state | Service state | |
1.5 - List Commands
1.5.1 - 1.0
scp-cli cachestore command list
--cluster_id <value>
Description
List Commands.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
Responses
| Name | Description | Example |
|---|
| id | | |
| applied_value | | |
| description | | |
| modifiable | | |
| name | | |
1.6 - List Engine Version Properties
1.6.1 - 1.0
scp-cli cachestore engine version property list
--dbaas_engine_version_id <value>
Description
List Engine Version Properties.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
dbaas_engine_version_id required | string | DBaaS engine version ID | - |
Responses
| Name | Description | Example |
|---|
| name | DBaas engine property name | |
| value | DBaas engine property value | |
1.7 - List Engine Versions
1.7.1 - 1.0
scp-cli cachestore engine version list
[--id <value>]
[--product_image_type <value>]
[--eos_included <value>]
Description
List Engine Versions.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
id optional | string | DBaaS engine version ID | - |
product_image_type optional | **** | Product image type | - |
eos_included optional | boolean | EoS included | - |
Responses
| Name | Description | Example |
|---|
| id | ID | |
| end_of_service | End of Service | |
| major_version | Software major version | |
| name | DBaaS engine version name | |
| os_type | OS type | |
| os_version | OS version | |
| product_image_type | Product type | |
| software_version | Software version | |
1.8 - List Parameter Groups
1.8.1 - 1.0
scp-cli cachestore parameter group list
[--major_version <value>]
[--product_image_type <value>]
[--sort <value>]
Description
List Parameter Groups.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
major_version optional | string | Software major version | - |
product_image_type optional | string | Product image type | - |
sort optional | string | sort | created_at:desc |
Responses
| Name | Description | Example |
|---|
| id | Parameter group ID | |
| major_version | Software major version | |
| name | Parameter group name | |
| product_image_type | Product image type | |
| product_type | Product type | |
1.9 - List Parameter Values
1.9.1 - 1.0
scp-cli cachestore parameter value list
--cluster_id <value>
Description
List Parameter Values.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
Responses
| Name | Description | Example |
|---|
| id | Parameter id | |
| allows_value | Parameter allows value | |
| applied_value | Parameter applied value | |
| apply_type | Parameter apply type | |
| data_type | Parameter data type | |
| default_value | Parameter default value | |
| description | Parameter description | |
| is_modifiable | Parameter is_modifiable | |
| name | Parameter name | |
| software_type | Parameter software type | |
1.10 - List Parameters
1.10.1 - 1.0
scp-cli cachestore parameter list
--dbaas_parameter_group_id <value>
[--size <value>]
[--page <value>]
[--sort <value>]
Description
List Parameters.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
dbaas_parameter_group_id required | string | Parameter group ID | - |
size optional | integer | size | 20 |
page optional | integer | page | 0 |
sort optional | string | sort | created_at:desc |
Responses
| Name | Description | Example |
|---|
| id | Parameter id | |
| dbaas_parameter_group_id | Parameter id | |
| default_value | Parameter default value | |
| description | Parameter description | |
| name | Parameter name | |
| software_type | Parameter software type | |
1.11 - List Server Types
1.11.1 - 1.0
scp-cli cachestore engine server type list
[--name <value>]
[--product_image_type <value>]
Description
List Server Types.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
name optional | string | Server type name | - |
product_image_type optional | string | Product image type | - |
Responses
| Name | Description | Example |
|---|
| cpu_core | Server type cpu core | |
| description | Server type description | |
| memory_gb | Server type memory | |
| name | Server type name | |
| product_image_type | Product image type | |
| product_type | Product type | |
| purpose | Server type purpose | |
| type | Server type class | |
1.12 - Patch Minor Version
1.12.1 - 1.0
scp-cli cachestore minor version patch
--cluster_id <value>
--software_version <value>
--dbaas_engine <value>
Description
Patch Minor Version.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | DB cluster id | - |
software_version required | string | software_version | - |
dbaas_engine required | string | dbaas_engine | - |
1.13 - Remove Backup Histories
1.13.1 - 1.0
scp-cli cachestore backup history remove
--cluster_id <value>
--backup_history_number <value>
Description
Remove Backup Histories.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
backup_history_number required | array | Backup id | - |
1.14 - Restart Cluster
1.14.1 - 1.0
scp-cli cachestore cluster restart
--cluster_id <value>
Description
Restart Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.15 - Set Backup
1.15.1 - 1.0
scp-cli cachestore backup set
--cluster_id <value>
--starting_time_hour <value>
--retention_period_day <value>
Description
Set Backup.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
starting_time_hour required | string | Backup starting time (hour) | - |
retention_period_day required | string | Backup retention period (day) | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.16 - Set Block Storage Size
1.16.1 - 1.0
scp-cli cachestore block storage size set
--block_storage_group_id <value>
--size_gb <value>
Description
Set Block Storage Size.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
block_storage_group_id required | string | Block storage group ID | afc33891202643ba8ba1a5298a1affff |
size_gb required | integer | Size in GB | 16 |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.17 - Set Maintenance
1.17.1 - 1.0
scp-cli cachestore maintenance set
--cluster_id <value>
--term_hour <value>
--start_time <value>
--start_minute <value>
--start_day_of_week <value>
Description
Set Maintenance.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | DB cluster id | - |
term_hour required | string | term_hour | - |
start_time required | string | start_time | - |
start_minute required | string | start_minute | - |
start_day_of_week required | string | start_day_of_week | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.18 - Set Parameter Values
1.18.1 - 1.0
scp-cli cachestore parameter value set
--cluster_id <value>
--parameters <value>
Description
Set Parameter Values.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
parameters required | array | Parameter request list | '{"id": "", "new_value": "", "old_value": ""}' |
1.19 - Set Security Group Rules
1.19.1 - 1.0
scp-cli cachestore security group rule set
--cluster_id <value>
[--add_ip_addresses <value>]
[--del_ip_addresses <value>]
Description
Set Security Group Rules.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
add_ip_addresses optional | array | Allowed IP addresses list | - |
del_ip_addresses optional | array | Allowed IP addresses list | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.20 - Set Server Type
1.20.1 - 1.0
scp-cli cachestore server type set
--instance_group_id <value>
--server_type_name <value>
Description
Set Server Type.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
instance_group_id required | string | Instance group ID | - |
server_type_name required | string | Server type name | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.21 - Show Cluster
1.21.1 - 1.0
scp-cli cachestore cluster show
--cluster_id <value>
Description
Show Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
Responses
| Name | Description | Example |
|---|
| id | ID | 0fdd87aab8cb46f59b7c1f81ed03fb3e |
| account_id | Account ID | |
| allowable_ip_addresses | Allowed IP addresses list | [] |
| created_at | Created At | 2024-05-17T00:23:17Z |
| created_by | Created By | 90dddfc2b1e04edba54ba2b41539a9ac |
| dbaas_engine | DBaaS engine | |
| dbaas_engine_version_name | DBaaS engine version name | |
| ha_enabled | HA availability | |
| init_config_option | | {} |
| instance_count | Instance Count | |
| instance_groups | | [] |
| maintenance_option | Maintenance option | {} |
| modified_at | Modified At | 2024-05-17T00:23:17Z |
| modified_by | Modified By | 90dddfc2b1e04edba54ba2b41539a9ac |
| name | Cluster name | |
| nat_enabled | NAT availability | |
| product_image_type | Product image type | |
| product_type | Product type | |
| role_type | Role type | {} |
| service_state | Service state | |
| software_version | Software version | |
| subnet_id | Subnet ID | |
| timezone | Timezone | |
1.22 - Show Request
1.22.1 - 1.0
scp-cli cachestore request show
--request_id <value>
Description
Show Request.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
request_id required | string | Request ID | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | |
| state | Request state | |
1.23 - Start Cluster
1.23.1 - 1.0
scp-cli cachestore cluster start
--cluster_id <value>
Description
Start Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.24 - Stop Cluster
1.24.1 - 1.0
scp-cli cachestore cluster stop
--cluster_id <value>
Description
Stop Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.25 - Switchover Cluster
1.25.1 - 1.0
scp-cli cachestore cluster switchover
--cluster_id <value>
--switch_host_name <value>
Description
Switchover Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
switch_host_name required | string | Switch over target | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.26 - Synchronize Cluster State
1.26.1 - 1.0
scp-cli cachestore cluster state sync
--cluster_id <value>
Description
Synchronize Cluster State.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.27 - Synchronize Commands
1.27.1 - 1.0
scp-cli cachestore command sync
--cluster_id <value>
Description
Synchronize Commands.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.28 - Synchronize Parameter Values
1.28.1 - 1.0
scp-cli cachestore parameter value sync
--cluster_id <value>
Description
Synchronize Parameter Values.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
Responses
| Name | Description | Example |
|---|
| request_id | Request ID | req-4f668846-8a3d-49f1-8111-451ebccf445c |
| resource | Resource | |
1.29 - Terminate Cluster
1.29.1 - 1.0
scp-cli cachestore cluster delete
--cluster_id <value>
Description
Terminate Cluster.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | mycluster |
1.30 - Unset Backup
1.30.1 - 1.0
scp-cli cachestore backup unset
--cluster_id <value>
Description
Unset Backup.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
1.31 - Unset Maintenance
1.31.1 - 1.0
scp-cli cachestore maintenance unset
--cluster_id <value>
Description
Unset Maintenance.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | DB cluster id | - |
1.32 - Update Commands
1.32.1 - 1.0
scp-cli cachestore command set
--cluster_id <value>
--commands <value>
Description
Update Commands.
State
ACTIVE (CURRENT)
Parameters
| Name | Type | Description | Example |
|---|
cluster_id required | string | Cluster ID | - |
commands required | array | Apply command information | '{"id": "", "name": "", "new_value": ""}' |