Documentation Index

Fetch the complete documentation index at: https://cli-fin.ncloud-docs.com/llms.txt

Use this file to discover all available pages before exploring further.

flushAllCloudCacheServerInstance

Prev Next

Cloud DB for Cache FlushAll 명령어를 이용해 선택한 Cache Server의 모든 데이터를 삭제합니다.

참고

Cloud DB for Cache CLI는 지원하는 DBMS 범위에 따라 두 가지 버전을 제공합니다.

  • flushAllCloudCacheServerInstance CLI: Valkey, Redis DBMS 이용 가능
  • flushAllCloudRedisServerInstance CLI: Redis DBMS 이용 가능

flushAllCloudCacheServerInstance CLI

flushAllCloudCacheServerInstance CLI의 명령 구문과 옵션, 명령 및 출력 예시를 설명합니다.

구문

flushAllCloudCacheServerInstance 구문은 다음과 같습니다.

./ncloud vcache flushAllCloudCacheServerInstance \
    --cloudCacheServerInstanceNo <server-instance-no> \
    [--regionCode <FKR>] \
    [--output <json|xml>]

옵션

flushAllCloudCacheServerInstance 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

flushAllCloudCacheServerInstance의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--cloudCacheServerInstanceNo String Required Cloud DB for Cache 서버 인스턴스 번호

공통 옵션

vcache 명령에서 공통으로 사용하는 옵션에 대한 정보는 Cloud DB for Cache 옵션을 참조해 주십시오.

예시

FlushAll 요청이 성공하면 Cloud DB for Cache 인스턴스의 구성 정보와 각 서버 인스턴스의 상세 정보가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vcache flushAllCloudCacheServerInstance \
    --cloudCacheServerInstanceNo 35678901 \
    --regionCode FKR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "flushAllCloudCacheServerInstanceResponse": {
    "totalRows": 1,
    "cloudCacheInstanceList": [
      {
        "cloudCacheInstanceNo": "34567890",
        "cloudCacheServiceName": "test-cache-01",
        "cloudCacheInstanceStatusName": "settingUp",
        "cloudCacheInstanceStatus": {
          "code": "CREAT",
          "codeName": "CLOUD DATABASE(VPC) Created 상태"
        },
        "cloudCacheInstanceOperation": {
          "code": "NULL",
          "codeName": "CLOUD DATABASE(VPC) Null OP"
        },
        "cloudCacheImageProductCode": "SW.VRDS.OS.LNX64.ROCKY.0810.VALKY.B050",
        "engineVersion": "VALKEY 7.2.11",
        "license": {
          "code": "BSD",
          "codeName": "라이센스코드-CLOUD DATABASE(VPC)"
        },
        "cloudCachePort": 13306,
        "isHa": true,
        "isBackup": true,
        "backupTime": "10:30",
        "backupFileRetentionPeriod": 1,
        "backupSchedule": "USER",
        "cloudCacheServerPrefix": "testcache",
        "generationCode": "G2",
        "role": {
          "code": "CLUSTER",
          "codeName": "Cluster Role-CLOUD Cache(VPC)"
        },
        "createDate": "2026-06-22T14:02:02+0900",
        "accessControlGroupNoList": [
          "67890123"
        ],
        "masterNodeCount": 3,
        "slaveNodeCount": 3,
        "configGroupNo": "11099",
        "configGroupName": "test-cfg-01",
        "cloudCacheServerInstanceList": [
          {
            "cloudCacheServerInstanceNo": "34567891",
            "cloudCacheServerName": "testcache-001-001-3oo5",
            "cloudCacheServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudCacheServerInstanceStatusName": "settingUp",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "SETUP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Setup OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:08:22+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "0-5460"
          },
          {
            "cloudCacheServerInstanceNo": "34567892",
            "cloudCacheServerName": "testcache-002-001-3oo6",
            "cloudCacheServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudCacheServerInstanceStatusName": "running",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:09:17+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "5461-10922"
          },
          {
            "cloudCacheServerInstanceNo": "34567893",
            "cloudCacheServerName": "testcache-003-001-3oo7",
            "cloudCacheServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudCacheServerInstanceStatusName": "running",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:08:02+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "10923-16383"
          },
          {
            "cloudCacheServerInstanceNo": "34567894",
            "cloudCacheServerName": "testcache-001-002-3oo8",
            "cloudCacheServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudCacheServerInstanceStatusName": "running",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:09:17+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "0-5460"
          },
          {
            "cloudCacheServerInstanceNo": "34567895",
            "cloudCacheServerName": "testcache-002-002-3oo9",
            "cloudCacheServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudCacheServerInstanceStatusName": "running",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:08:11+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "5461-10922"
          },
          {
            "cloudCacheServerInstanceNo": "34567896",
            "cloudCacheServerName": "testcache-003-002-3ooa",
            "cloudCacheServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudCacheServerInstanceStatusName": "running",
            "cloudCacheServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudCacheServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudCacheProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "23456789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-22T14:08:11+0900",
            "createDate": "2026-06-22T14:02:02+0900",
            "slotName": "10923-16383"
          }
        ]
      }
    ],
    "requestId": "f437f889-c6f4-4d4e-974b-f6ccedfa76cc",
    "returnCode": "0",
    "returnMessage": "success"
  }
}

flushAllCloudRedisServerInstance CLI

flushAllCloudRedisServerInstance CLI의 명령 구문과 옵션, 명령 및 출력 예시를 설명합니다.

구문

flushAllCloudRedisServerInstance 구문은 다음과 같습니다.

./ncloud vredis flushAllCloudRedisServerInstance \
    --cloudRedisServerInstanceNo <server-instance-no> \
    [--regionCode <FKR>] \
    [--output <json|xml>]

옵션

flushAllCloudRedisServerInstance 실행 시 지정할 수 있는 옵션을 설명합니다.

필수 옵션

flushAllCloudRedisServerInstance의 필수 옵션입니다.

옵션 타입 필수 여부 설명
--cloudRedisServerInstanceNo String Required Cloud DB for Cache 서버 인스턴스 번호

공통 옵션

vredis 명령에서 공통으로 사용하는 옵션에 대한 정보는 Cloud DB for Cache 옵션을 참조해 주십시오.

예시

FlushAll 요청이 성공하면 Cloud DB for Cache 인스턴스의 구성 정보와 각 서버 인스턴스의 상세 정보가 반환됩니다.

명령

명령 예시는 다음과 같습니다.

./ncloud vredis flushAllCloudRedisServerInstance \
    --cloudRedisServerInstanceNo 34567891 \
    --regionCode FKR \
    --output json

출력

출력 예시는 다음과 같습니다.

{
  "flushAllCloudRedisServerInstanceResponse": {
    "totalRows": 1,
    "cloudRedisInstanceList": [
      {
        "cloudRedisInstanceNo": "34567890",
        "cloudRedisServiceName": "test-redis-01",
        "cloudRedisInstanceStatusName": "settingUp",
        "cloudRedisInstanceStatus": {
          "code": "CREAT",
          "codeName": "CLOUD DATABASE(VPC) Created 상태"
        },
        "cloudRedisInstanceOperation": {
          "code": "NULL",
          "codeName": "CLOUD DATABASE(VPC) Null OP"
        },
        "cloudRedisImageProductCode": "SW.VRDS.OS.LNX64.ROCKY.0810.REDIS.B050",
        "engineVersion": "REDIS 7.2.11",
        "license": {
          "code": "BSD",
          "codeName": "라이센스코드-CLOUD DATABASE(VPC)"
        },
        "cloudRedisPort": 13306,
        "isHa": true,
        "isBackup": true,
        "backupTime": "10:30",
        "backupFileRetentionPeriod": 1,
        "backupSchedule": "USER",
        "cloudRedisServerPrefix": "testredis",
        "generationCode": "G2",
        "role": {
          "code": "CLUSTER",
          "codeName": "Cluster Role-CLOUD Cache(VPC)"
        },
        "createDate": "2026-06-25T17:02:51+0900",
        "accessControlGroupNoList": [
          "67890123"
        ],
        "masterNodeCount": 3,
        "slaveNodeCount": 3,
        "configGroupNo": "11099",
        "configGroupName": "test-cfg-01",
        "cloudRedisServerInstanceList": [
          {
            "cloudRedisServerInstanceNo": "34567891",
            "cloudRedisServerName": "testredis-001-001-3ox8",
            "cloudRedisServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudRedisServerInstanceStatusName": "settingUp",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "SETUP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Setup OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:09:24+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "0-5460"
          },
          {
            "cloudRedisServerInstanceNo": "34567892",
            "cloudRedisServerName": "testredis-002-001-3ox9",
            "cloudRedisServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudRedisServerInstanceStatusName": "running",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:09:21+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "5461-10922"
          },
          {
            "cloudRedisServerInstanceNo": "34567893",
            "cloudRedisServerName": "testredis-003-001-3oxa",
            "cloudRedisServerRole": {
              "code": "M",
              "codeName": "Master"
            },
            "cloudRedisServerInstanceStatusName": "running",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:09:37+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "10923-16383"
          },
          {
            "cloudRedisServerInstanceNo": "34567894",
            "cloudRedisServerName": "testredis-001-002-3oxb",
            "cloudRedisServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudRedisServerInstanceStatusName": "running",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:09:56+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "0-5460"
          },
          {
            "cloudRedisServerInstanceNo": "34567895",
            "cloudRedisServerName": "testredis-002-002-3oxc",
            "cloudRedisServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudRedisServerInstanceStatusName": "running",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:08:49+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "5461-10922"
          },
          {
            "cloudRedisServerInstanceNo": "34567896",
            "cloudRedisServerName": "testredis-003-002-3oxd",
            "cloudRedisServerRole": {
              "code": "S",
              "codeName": "Slave"
            },
            "cloudRedisServerInstanceStatusName": "running",
            "cloudRedisServerInstanceStatus": {
              "code": "RUN",
              "codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
            },
            "cloudRedisServerInstanceOperation": {
              "code": "NOOP",
              "codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
            },
            "cloudRedisProductCode": "SVR.VRDS.STAND.C004.M001.NET.SSD.B050.G001",
            "regionCode": "FKR",
            "vpcNo": "12345678",
            "subnetNo": "2345789",
            "privateDomain": "cache-1a2b3c-fkr.cdb.fin-ntruss.com",
            "cpuCount": 4,
            "memorySize": 1610612736,
            "osMemorySize": 2147483648,
            "uptime": "2026-06-25T17:09:24+0900",
            "createDate": "2026-06-25T17:02:51+0900",
            "slotName": "10923-16383"
          }
        ]
      }
    ],
    "requestId": "81982ebc-9a19-46d5-b236-59713d8d3344",
    "returnCode": "0",
    "returnMessage": "success"
  }
}