--- title: "createCloudMysqlRecoveryInstance" slug: "cli-vmysql-createcloudmysqlrecoveryinstance" updated: 2026-09-17T10:11:06Z published: 2026-09-17T10:11:06Z canonical: "cli.ncloud-docs.com/cli-vmysql-createcloudmysqlrecoveryinstance" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # createCloudMysqlRecoveryInstance VPC環境で利用できます。 Cloud DB for MySQLインスタンスに Recoveryサーバインスタンスを追加します。 ## 構文 `createCloudMysqlRecoveryInstance`構文は次の通りです。 ``` ./ncloud vmysql createCloudMysqlRecoveryInstance \ --cloudMysqlInstanceNo \ --cloudMysqlRecoveryServerName \ --fileName | --recoveryTime \ [--subnetNo ] \ [--regionCode ] \ [--output ] ``` ## オプション `createCloudMysqlRecoveryInstance`の実行時に指定できるオプションについて説明します。 ### 必須オプション `createCloudMysqlRecoveryInstance`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMysqlInstanceNo` | String | Required | Cloud DB for MySQLインスタンス番号 - [getCloudMysqlInstanceList](/docs/ja/cli-vmysql-getcloudmysqlinstancelist)を参照 | | `--cloudMysqlRecoveryServerName` | String | Required | Cloud DB for MySQL Recoveryサーバインスタンス名 - 英字の小文字、数字、記号の`-`を組み合わせて3~20文字以内で入力 - 先頭文字は英字の小文字、末尾文字は英字の小文字または数字のみ使用 - 接頭辞の末尾に3桁の数字が自動で付き、ホスト名の重複防止のために任意のテキストが追加され作成される - 例: 接頭辞が`test-123`の場合、`test-123-001-4y1v` | | `--fileName` | String | Conditional | バックアップファイル名 - バックアップファイルで復元すると、バックアップ完了時間に復元 - `fileName`、`recoveryTime`のいずれか1つは必ず入力 - [getCloudMysqlBackupDetailList](/docs/ja/cli-vmysql-getcloudmysqlbackupdetaillist)を参照 | | `--recoveryTime` | String | Conditional | 時点復元時間 - `yyyy-MM-dd HH:mm`形式 - `fileName`、`recoveryTime`のいずれか1つは必ず入力 - [getCloudMysqlRecoveryTime](/docs/ja/cli-vmysql-getcloudmysqlrecoverytime)を参照 | | `--subnetNo` | String | Conditional | Cloud DB for MySQLインスタンスで使用する基本ネットワークインターフェースの Subnet番号 - Cloud DB for MySQLがマルチゾーンの場合、必ず入力 - マルチゾーンではない場合、`subnetNo`の入力は受けず、既存の Subnetに作成される - Publicドメインは Public Subnetに作成された DBサーバでのみ申し込み可能 - Cloud DB for MySQLインスタンス作成後に Subnetの移転はできない - [getCloudMysqlTargetSubnetList](/docs/ja/cli-vmysql-getcloudmysqltargetsubnetlist)を参照 | ### 共通オプション `vmysql`コマンドで共通して使用するオプションについては、[Cloud DB for MySQL (VPC)のオプション](/docs/ja/cli-vmysql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 Recoveryサーバインスタンスの作成リクエストが成功すると、Cloud DB for MySQLインスタンスの構成情報と追加された Recoveryサーバの作成状態が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vmysql createCloudMysqlRecoveryInstance \ --cloudMysqlInstanceNo 12345678 \ --cloudMysqlRecoveryServerName testrecovery01 \ --subnetNo 23456789 \ --fileName 20260604 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "createCloudMysqlRecoveryInstanceResponse": { "totalRows": 1, "cloudMysqlInstanceList": [ { "cloudMysqlInstanceNo": "12345678", "cloudMysqlServiceName": "test-mysql", "cloudMysqlInstanceStatusName": "creating", "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.36", "license": { "code": "GPL", "codeName": "ライセンスコード-CLOUD DATABASE(VPC)" }, "cloudMysqlPort": 13306, "isHa": true, "isMultiZone": true, "isBackup": true, "backupFileRetentionPeriod": 1, "backupTime": "10:30", "generationCode": "G2", "createDate": "2026-06-04T16:50:56+0900", "accessControlGroupNoList": [ "67890123" ], "cloudMysqlConfigList": [], "cloudMysqlServerInstanceList": [ { "cloudMysqlServerInstanceNo": "34567890", "cloudMysqlServerName": "testmysql-001-97mj", "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.HICPU.C002.M004.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "isPublicSubnet": false, "privateDomain": "db-1a2b3c.vpc-cdb.ntruss.com", "privateIp": "10.0.0.6", "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "usedDataStorageSize": 9234180096, "cpuCount": 2, "memorySize": 4294967296, "uptime": "2026-06-04T16:57:14+0900", "createDate": "2026-06-04T16:50:56+0900" }, { "cloudMysqlServerInstanceNo": "34567891", "cloudMysqlServerName": "testmysql-002-97mk", "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.HICPU.C002.M004.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-2", "vpcNo": "98765432", "subnetNo": "23456790", "isPublicSubnet": false, "privateDomain": "db-1a2b3c.vpc-cdb.ntruss.com", "privateIp": "10.0.1.6", "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "usedDataStorageSize": 9234180096, "cpuCount": 2, "memorySize": 4294967296, "uptime": "2026-06-04T16:57:26+0900", "createDate": "2026-06-04T16:50:56+0900" }, { "cloudMysqlServerInstanceNo": "34567892", "cloudMysqlServerName": "testmysql-003-97mu", "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.HICPU.C002.M004.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "isPublicSubnet": false, "privateDomain": "db-1a2b3c.vpc-cdb.ntruss.com", "privateIp": "10.0.0.7", "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "usedDataStorageSize": 9234180096, "cpuCount": 2, "memorySize": 4294967296, "uptime": "2026-06-04T17:30:59+0900", "createDate": "2026-06-04T17:26:30+0900" }, { "cloudMysqlServerName": "testrecovery01-001-97mx", "cloudMysqlServerRole": { "code": "R", "codeName": "Recovery" }, "cloudMysqlServerInstanceStatusName": "creating", "cloudMysqlServerInstanceStatus": { "code": "PEND", "codeName": "CLOUD DATABASE(VPC)サーバ Pending状態" }, "cloudMysqlServerInstanceOperation": { "code": "CREAT", "codeName": "CLOUD DATABASE(VPC)サーバ Create OP" }, "cloudMysqlProductCode": "SVR.VDBAS.HICPU.C002.M004.NET.HDD.B050.G002", "regionCode": "KR", "zoneCode": "KR-1", "vpcNo": "98765432", "subnetNo": "23456789", "isPublicSubnet": false, "dataStorageType": { "code": "SSD", "codeName": "SSD" }, "isStorageEncryption": false, "dataStorageSize": 10737418240, "cpuCount": 2, "memorySize": 4294967296, "createDate": "2026-06-04T17:40:59+0900" } ] } ], "requestId": "f6a7b8c9-d0e1-2345-fabc-678901234567", "returnCode": "0", "returnMessage": "success" } } ```