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.

Cloud DB for MySQL (VPC)の概要

Prev Next

VPC環境で利用できます。

Cloud DB for MySQLは世界的に一番多く使用される関係データベースである MySQLを利用した完全管理型クラウドデータベースサービスです。Cloud DB for MySQLでは、データベース管理機能関連の CLIをvmysqlコマンドとして提供します。

Cloud DB for MySQL(VPC)共通設定

Cloud DB for MySQL (VPC) CLIで共通して使用するコマンドとオプションの形式について説明します。

構文

vmysqlの構文は次の通りです。

./ncloud vmysql <subcommand> [options]

オプション

vmysqlで共通して使用できるオプションです。

オプション タイプ 必須の有無 説明
--regionCode String Optional リージョンコード
  • KR | SGN | JPN
  • デフォルト: getRegionList照会結果の最初のリージョン
--output String Optional レスポンス結果の形式
  • json(デフォルト) | xml

Cloud DB for MySQL (VPC)コマンド

vmysql配下で使用できるサブコマンドのリストです。

DB Server

DB Server関連のコマンドは次の通りです。

コマンド 説明
createCloudMysqlInstance Cloud DB for MySQLインスタンスを作成
getCloudMysqlInstanceList Cloud DB for MySQLインスタンスリストを照会
getCloudMysqlInstanceDetail Cloud DB for MySQLインスタンスの詳細情報を照会
createCloudMysqlSlaveInstance Cloud DB for MySQLインスタンスに Slaveサーバインスタンスを追加
getCloudMysqlRecoveryTime Cloud DB for MySQLインスタンスの復元が可能な時間を照会
createCloudMysqlRecoveryInstance Cloud DB for MySQLインスタンスに Recoveryサーバインスタンスを追加
changeCloudMysqlServerSpec Cloud DB for MySQLインスタンスの DBサーバスペックを変更
upgradeCloudMysqlDbEngineVersion Cloud DB for MySQLインスタンスの DBエンジンバージョンをアップグレード
rebootCloudMysqlServerInstance Cloud DB for MySQLサーバインスタンスを再起動
getCloudMysqlEventHistoryList Cloud DB for MySQLインスタンスのイベント履歴リストを照会
deleteCloudMysqlServerInstance Cloud DB for MySQLインスタンスの Slaveまたは Recoveryサーバインスタンスを削除
deleteCloudMysqlInstance Cloud DB for MySQLインスタンスを削除

Database

データベース関連のコマンドは次の通りです。

コマンド 説明
addCloudMysqlDatabaseList Cloud DB for MySQLインスタンスにデータベースを追加
getCloudMysqlDatabaseList Cloud DB for MySQLインスタンスのデータベースリストを照会
deleteCloudMysqlDatabaseList Cloud DB for MySQLインスタンスからデータベースを削除

DB User

DB User関連のコマンドは次の通りです。

コマンド 説明
addCloudMysqlUserList Cloud DB for MySQLインスタンスにユーザーを追加
getCloudMysqlUserList Cloud DB for MySQLインスタンスのユーザーリストを照会
changeCloudMysqlUserList Cloud DB for MySQLインスタンスのユーザー情報を変更
deleteCloudMysqlUserList Cloud DB for MySQLインスタンスからユーザーを削除

Backup

バックアップ関連のコマンドは次の通りです。

コマンド 説明
getCloudMysqlBackupList Cloud DB for MySQLインスタンスのバックアップリストを照会
getCloudMysqlBackupDetailList Cloud DB for MySQLインスタンスのバックアップ詳細情報リストを照会
exportBackupToObjectStorage Cloud DB for MySQLインスタンスのバックアップファイルを Object Storageに転送

DB Server Log

DB Serverログ関連のコマンドは次の通りです。

コマンド 説明
getDbServerLogList Cloud DB for MySQLインスタンスの DBサーバログリストを照会
exportDbServerLogToObjectStorage Cloud DB for MySQLインスタンスの DBサーバログファイルを Object Storageに転送

Common

リソース作成時に参照できる共通の照会コマンドは次の通りです。

コマンド 説明
getCloudMysqlImageProductList Cloud DB for MySQLイメージ商品コードリストを照会
getCloudMysqlProductList Cloud DB for MySQLサーバスペックコードリストを照会
getCloudMysqlTargetVpcList VPCリストを照会
getCloudMysqlTargetSubnetList Subnetリストを照会

Cloud DB for MySQL (VPC)関連リソース

Cloud DB for MySQL (VPC) CLIをより効果的に活用するために、さまざまな関連リソースを提供しています。