Cloud DB for MySQL의 Slave 또는 Recovery 서버 인스턴스를 삭제합니다.
구문
deleteCloudMysqlServerInstance 구문은 다음과 같습니다.
./ncloud vmysql deleteCloudMysqlServerInstance \
--cloudMysqlServerInstanceNo <server-instance-no> \
[--regionCode <FKR>] \
[--output <json|xml>]
옵션
deleteCloudMysqlServerInstance 실행 시 지정할 수 있는 옵션을 설명합니다.
필수 옵션
deleteCloudMysqlServerInstance의 필수 옵션입니다.
| 옵션 | 타입 | 필수 여부 | 설명 |
|---|---|---|---|
--cloudMysqlServerInstanceNo |
String | Required | Cloud DB for MySQL 서버 인스턴스 번호
|
공통 옵션
vmysql 명령에서 공통으로 사용하는 옵션에 대한 정보는 Cloud DB for MySQL 옵션을 참조해 주십시오.
예시
Slave 또는 Recovery 서버 인스턴스 삭제 요청이 성공하면 Cloud DB for MySQL 인스턴스의 구성 정보와 Slave/Recovery 서버의 종료 상태가 반환됩니다.
명령
명령 예시는 다음과 같습니다.
./ncloud vmysql deleteCloudMysqlServerInstance \
--cloudMysqlServerInstanceNo 34567893 \
--regionCode FKR \
--output json
출력
출력 예시는 다음과 같습니다.
{
"deleteCloudMysqlServerInstanceResponse": {
"totalRows": 1,
"cloudMysqlInstanceList": [
{
"cloudMysqlInstanceNo": "12345678",
"cloudMysqlServiceName": "test-mysql",
"cloudMysqlInstanceStatusName": "deleting",
"cloudMysqlInstanceStatus": {
"code": "CREAT",
"codeName": "CLOUD DATABASE(VPC) Created 상태"
},
"cloudMysqlInstanceOperation": {
"code": "NULL",
"codeName": "CLOUD DATABASE(VPC) Null OP"
},
"cloudMysqlImageProductCode": "SW.VMYSL.OS.LNX64.ROCKY.0810.MYSQL.B050",
"engineVersion": "MYSQL8.0.40",
"license": {
"code": "GPL",
"codeName": "라이센스코드-CLOUD DATABASE(VPC)"
},
"cloudMysqlPort": 13306,
"isHa": true,
"isMultiZone": false,
"isBackup": true,
"backupFileRetentionPeriod": 1,
"backupTime": "11:15",
"generationCode": "G2",
"createDate": "2026-06-19T11:57:42+0900",
"accessControlGroupNoList": [
"67890123"
],
"cloudMysqlConfigList": [],
"cloudMysqlServerInstanceList": [
{
"cloudMysqlServerInstanceNo": "34567891",
"cloudMysqlServerName": "testmysql-002-3ogw",
"cloudMysqlServerRole": {
"code": "M",
"codeName": "Master"
},
"cloudMysqlServerInstanceStatusName": "running",
"cloudMysqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
},
"cloudMysqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
},
"cloudMysqlProductCode": "SVR.VDBAS.STAND.C002.M008.NET.HDD.B050.G001",
"regionCode": "FKR",
"zoneCode": "FKR-1",
"vpcNo": "98765432",
"subnetNo": "23456789",
"isPublicSubnet": false,
"privateDomain": "db-1a2b3c-fkr.cdb.fin-ntruss.com",
"privateIp": "192.168.4.7",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"isStorageEncryption": false,
"dataStorageSize": 10737418240,
"usedDataStorageSize": 9234180096,
"cpuCount": 2,
"memorySize": 8589934592,
"uptime": "2026-06-19T17:01:08+0900",
"createDate": "2026-06-19T11:57:42+0900"
},
{
"cloudMysqlServerInstanceNo": "34567890",
"cloudMysqlServerName": "testmysql-001-3ogv",
"cloudMysqlServerRole": {
"code": "H",
"codeName": "Standby Master"
},
"cloudMysqlServerInstanceStatusName": "running",
"cloudMysqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
},
"cloudMysqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
},
"cloudMysqlProductCode": "SVR.VDBAS.STAND.C002.M008.NET.HDD.B050.G001",
"regionCode": "FKR",
"zoneCode": "FKR-1",
"vpcNo": "98765432",
"subnetNo": "23456789",
"isPublicSubnet": false,
"privateDomain": "db-1a2b3c-fkr.cdb.fin-ntruss.com",
"privateIp": "192.168.4.6",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"isStorageEncryption": false,
"dataStorageSize": 10737418240,
"usedDataStorageSize": 9234180096,
"cpuCount": 2,
"memorySize": 8589934592,
"uptime": "2026-06-19T14:29:57+0900",
"createDate": "2026-06-19T11:57:42+0900"
},
{
"cloudMysqlServerInstanceNo": "34567892",
"cloudMysqlServerName": "testmysql-003-3ogx",
"cloudMysqlServerRole": {
"code": "S",
"codeName": "Slave"
},
"cloudMysqlServerInstanceStatusName": "running",
"cloudMysqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
},
"cloudMysqlServerInstanceOperation": {
"code": "NOOP",
"codeName": "CLOUD DATABASE(VPC) 서버 Null OP"
},
"cloudMysqlProductCode": "SVR.VDBAS.STAND.C002.M008.NET.HDD.B050.G001",
"regionCode": "FKR",
"zoneCode": "FKR-1",
"vpcNo": "98765432",
"subnetNo": "23456789",
"isPublicSubnet": false,
"privateDomain": "db-1a2b3c-fkr.cdb.fin-ntruss.com",
"privateIp": "192.168.4.8",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"isStorageEncryption": false,
"dataStorageSize": 10737418240,
"usedDataStorageSize": 9234180096,
"cpuCount": 2,
"memorySize": 8589934592,
"uptime": "2026-06-19T14:29:45+0900",
"createDate": "2026-06-19T13:36:01+0900"
},
{
"cloudMysqlServerInstanceNo": "34567893",
"cloudMysqlServerName": "testrecovery01-001-3ogy",
"cloudMysqlServerRole": {
"code": "R",
"codeName": "Recovery"
},
"cloudMysqlServerInstanceStatusName": "deleting",
"cloudMysqlServerInstanceStatus": {
"code": "RUN",
"codeName": "CLOUD DATABASE(VPC) 서버 Running 상태"
},
"cloudMysqlServerInstanceOperation": {
"code": "DEL",
"codeName": "CLOUD DATABASE(VPC) 서버 Delete OP"
},
"cloudMysqlProductCode": "SVR.VDBAS.STAND.C002.M008.NET.HDD.B050.G001",
"regionCode": "FKR",
"zoneCode": "FKR-1",
"vpcNo": "98765432",
"subnetNo": "23456789",
"isPublicSubnet": false,
"privateDomain": "db-1a2b3c-fkr.cdb.fin-ntruss.com",
"privateIp": "192.168.4.9",
"dataStorageType": {
"code": "SSD",
"codeName": "SSD"
},
"isStorageEncryption": false,
"dataStorageSize": 10737418240,
"usedDataStorageSize": 9234180096,
"cpuCount": 2,
"memorySize": 8589934592,
"uptime": "2026-06-19T14:29:57+0900",
"createDate": "2026-06-19T13:58:42+0900"
}
]
}
],
"requestId": "9d846fea-6ead-4aa4-9257-8ae4c70eec63",
"returnCode": "0",
"returnMessage": "success"
}
}