Available in VPC
Note
Cloud DB for Cache CLI offers two versions based on the supported DBMS range.
- flushAllCloudCacheServerInstance CLI: Support for Valkey and Redis DBMS
- flushAllCloudRedisServerInstance CLI: Support for Redis DBMS
flushAllCloudCacheServerInstance CLI
This section describes the request and response formats for the flushAllCloudCacheServerInstance CLI.
Request
Request parameters
| Parameter name | Required | Type | Restrictions | Description |
|---|---|---|---|---|
| regionCode | No | String | - Region code regionCode can be obtained through the getRegionList action. Default: Select the first Region of the getRegionList search results. |
|
| cloudCacheServerInstanceNo | Yes | String | - Cloud DB for Cache server instance number that will execute the FlushAll command cloudCacheServerInstanceNo can be obtained through the getCloudCacheInstanceList action. |
|
| output | No | String | - Format type of the response result Options: xml | json Default: json |
Response
Response data type
- CloudCacheInstanceList type
| CloudCacheInstanceList extends CommonResponse |
|---|
| private Integer totalRows; |
| private List<CloudCacheInstance> cloudCacheInstanceList = new ArrayList<>(); |
| CloudCacheInstance |
|---|
| private String cloudCacheInstanceNo; |
| private String cloudCacheServiceName; |
| private String cloudCacheInstanceStatusName; |
| private CommonCode cloudCacheInstanceStatus; |
| private CommonCode cloudCacheInstanceOperation; |
| private String cloudCacheImageProductCode; |
| private String engineVersion; |
| private CommonCode licence; |
| private Integer cloudCachePort; |
| private Boolean isHa; |
| private String cloudCacheServerPrefix; |
| private Boolean isBackup; |
| private Integer backupFileRetentionPeriod; |
| private String backupTime; |
| private String backupSchedule; |
| private String generationCode; |
| private Date createDate; |
| private Integer shardCount; |
| private Integer shardCopyCount; |
| private AccessControlGroupNoList accessControlGroupNoList; |
| private String configGroupNo; |
| private String configGroupName; |
| private CommonCode role; |
| private List<CloudCacheInstance> cloudCacheServerInstanceList; |
| AccessControlGroupNoList |
|---|
| private List<String> accessControlGroupNoList = new ArrayList<>(); |
| CloudCacheServerInstance |
|---|
| private String cloudCacheServerInstanceNo; |
| private String cloudCacheServerName; |
| private CommonCode cloudCacheServerRole; |
| private String cloudCacheServerInstanceStatusName; |
| private CommonCode cloudCacheServerInstanceStatus; |
| private CommonCode cloudCacheServerInstanceOperation; |
| private String cloudCacheProductCode; |
| private String regionCode; |
| private String zoneCode; |
| private String vpcNo; |
| private String subnetNo; |
| private String privateDomain; |
| private Integer cpuCount; |
| private Long memorySize; |
| private Long osMemorySize; |
| private Date uptime; |
| private Date createDate; |
| private String slotName; |
Examples
Call examples
ncloud vcache flushAllCloudCacheServerInstance --regionCode KR --cloudCacheServerInstanceNo ***821
Response example
<flushAllCloudCacheServerInstanceResponse>
<requestId>1efe1130-13c6-4e45-8aed-9252ead588a4</requestId>
<returnCode>0</returnCode>
<returnMessage>success</returnMessage>
<totalRows>1</totalRows>
<cloudCacheInstanceList>
<cloudCacheInstance>
<cloudCacheInstanceNo>2192***</cloudCacheInstanceNo>
<cloudCacheServiceName>dsdc***</cloudCacheServiceName>
<cloudCacheInstanceStatusName>settingUp</cloudCacheInstanceStatusName>
<cloudCacheInstanceStatus>
<code>CREAT</code>
<codeName>CLOUD DATABASE(VPC) Created State</codeName>
</cloudCacheInstanceStatus>
<cloudCacheInstanceOperation>
<code>NULL</code>
<codeName>CLOUD DATABASE(VPC) Null OP</codeName>
</cloudCacheInstanceOperation>
<cloudCacheImageProductCode>SW.VRDS.OS.LNX64.ROCKY.0810.VALKY.B050</cloudCacheImageProductCode>
<engineVersion>CACHE 4.0.14</engineVersion>
<licence>
<code>BSD</code>
<codeName>Berkeley Software Distribution</codeName>
</licence>
<cloudCachePort>6379</cloudCachePort>
<isHa>false</isHa>
<isBackup>false</isBackup>
<backupTime>01:00</backupTime>
<backupFileRetentionPeriod>1</backupFileRetentionPeriod>
<backupSchedule>AUTO</backupSchedule>
<cloudCacheServerPrefix>dsajc***</cloudCacheServerPrefix>
<role>
<code>CLUSTER</code>
<codeName>CLOUD CACHE(VPC) Cluster Role</codeName>
</role>
<createDate>2022-02-21T14:58:44+0900</createDate>
<accessControlGroupNoList>
<accessControlGroupNo>14704</accessControlGroupNo>
</accessControlGroupNoList>
<masterNodeCount>3</masterNodeCount>
<slaveNodeCount>0</slaveNodeCount>
<configGroupNo>4**</configGroupNo>
<configGroupName>ffsds***</configGroupName>
<generationCode>G2</generationCode>
<cloudCacheServerInstanceList>
<cloudCacheServerInstance>
<cloudCacheServerInstanceNo>2192***</cloudCacheServerInstanceNo>
<cloudCacheServerName>dsajc***-001-001-rm1</cloudCacheServerName>
<cloudCacheServerRole>
<code>M</code>
<codeName>Master</codeName>
</cloudCacheServerRole>
<cloudCacheServerInstanceStatusName>settingUp</cloudCacheServerInstanceStatusName>
<cloudCacheServerInstanceStatus>
<code>RUN</code>
<codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
</cloudCacheServerInstanceStatus>
<cloudCacheServerInstanceOperation>
<code>SETUP</code>
<codeName>CLOUD DATABASE(VPC) Server Setup OP</codeName>
</cloudCacheServerInstanceOperation>
<cloudCacheProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudCacheProductCode>
<regionCode>KR</regionCode>
<vpcNo>16**</vpcNo>
<subnetNo>55**</subnetNo>
<privateDomain>cachec-*****.vpc-cdb.ntruss.com</privateDomain>
<cpuCount>4</cpuCount>
<memorySize>1610612736</memorySize>
<osMemorySize>2147483648</osMemorySize>
<uptime>2022-03-10T16:57:52+0900</uptime>
<createDate>2022-02-21T14:58:44+0900</createDate>
<slotName>0-5460</slotName>
</cloudCacheServerInstance>
<cloudCacheServerInstance>
<cloudCacheServerInstanceNo>2192***</cloudCacheServerInstanceNo>
<cloudCacheServerName>dsajc***-002-001-rm2</cloudCacheServerName>
<cloudCacheServerRole>
<code>M</code>
<codeName>Master</codeName>
</cloudCacheServerRole>
<cloudCacheServerInstanceStatusName>running</cloudCacheServerInstanceStatusName>
<cloudCacheServerInstanceStatus>
<code>RUN</code>
<codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
</cloudCacheServerInstanceStatus>
<cloudCacheServerInstanceOperation>
<code>NOOP</code>
<codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
</cloudCacheServerInstanceOperation>
<cloudCacheProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudCacheProductCode>
<regionCode>KR</regionCode>
<vpcNo>16**</vpcNo>
<subnetNo>55**</subnetNo>
<privateDomain>cachec-22tbd.beta-vpc-cdb.ntruss.com</privateDomain>
<cpuCount>4</cpuCount>
<memorySize>1610612736</memorySize>
<osMemorySize>2147483648</osMemorySize>
<uptime>2022-02-21T15:11:52+0900</uptime>
<createDate>2022-02-21T14:58:44+0900</createDate>
<slotName>5461-10922</slotName>
</cloudCacheServerInstance>
<cloudCacheServerInstance>
<cloudCacheServerInstanceNo>2192***</cloudCacheServerInstanceNo>
<cloudCacheServerName>dsajc***-003-001-rm3</cloudCacheServerName>
<cloudCacheServerRole>
<code>M</code>
<codeName>Master</codeName>
</cloudCacheServerRole>
<cloudCacheServerInstanceStatusName>running</cloudCacheServerInstanceStatusName>
<cloudCacheServerInstanceStatus>
<code>RUN</code>
<codeName>CLOUD DATABASE(VPC) Server Running State</codeName>
</cloudCacheServerInstanceStatus>
<cloudCacheServerInstanceOperation>
<code>NOOP</code>
<codeName>CLOUD DATABASE(VPC) Server Null OP</codeName>
</cloudCacheServerInstanceOperation>
<cloudCacheProductCode>SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G002</cloudCacheProductCode>
<regionCode>KR</regionCode>
<vpcNo>16**</vpcNo>
<subnetNo>55**</subnetNo>
<privateDomain>cachec-22***.vpc-cdb.ntruss.com</privateDomain>
<cpuCount>4</cpuCount>
<memorySize>1610612736</memorySize>
<osMemorySize>2147483648</osMemorySize>
<uptime>2022-02-21T15:11:52+0900</uptime>
<createDate>2022-02-21T14:58:44+0900</createDate>
<slotName>10923-16383</slotName>
</cloudCacheServerInstance>
</cloudCacheServerInstanceList>
</cloudCacheInstance>
</cloudCacheInstanceList>
</flushAllCloudCacheServerInstanceResponse>