VPC 환경에서 이용 가능
:::(info) (참고)
Cloud DB for Cache CLI는 지원하는 DBMS 범위에 따라 두 가지 버전을 제공합니다.
- flushAllCloudCacheServerInstance CLI: Valkey, Redis DBMS 이용 가능
- flushAllCloudRedisServerInstance CLI: Redis DBMS 이용 가능
:::
flushAllCloudCacheServerInstance CLI
flushAllCloudCacheServerInstance CLI의 요청, 응답 형식을 설명합니다.
요청
요청 파라미터
| 파라미터명 | 필수 여부 | 타입 | 제약 사항 | 설명 |
|---|---|---|---|---|
| regionCode | No | String | - 리전 코드 regionCode는 getRegionList 액션을 통해서 획득 가능 Default : getRegionList 조회 결과의 첫 번째 리전을 선택 |
|
| cloudCacheServerInstanceNo | Yes | String | - FlushAll 명령어를 수행할 Cloud DB for Cache 서버 인스턴스 번호 cloudCacheServerInstanceNo는 getCloudCacheInstanceList 액션을 통해서 획득 가능 |
|
| output | No | String | - 응답 결과의 포맷 타입 Options : xml | json Default : json |
응답
응답 데이터 타입
- CloudCacheInstanceList 타입
| 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; |
예시
호출 예시
ncloud vcache flushAllCloudCacheServerInstance --regionCode KR --cloudCacheServerInstanceNo ***821
응답 예시
<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>