--- title: "getCloudMysqlDatabaseList" slug: "cli-vmysql-getcloudmysqldatabaselist" updated: 2026-09-17T10:11:06Z published: 2026-09-17T10:11:06Z canonical: "cli.ncloud-docs.com/cli-vmysql-getcloudmysqldatabaselist" --- > ## 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. # getCloudMysqlDatabaseList VPC環境で利用できます。 Cloud DB for MySQLインスタンスのデータベースリストを照会します。 ## 構文 `getCloudMysqlDatabaseList`構文は次の通りです。 ``` ./ncloud vmysql getCloudMysqlDatabaseList \ --cloudMysqlInstanceNo \ --pageNo \ --pageSize \ [--regionCode ] \ [--output ] ``` ## オプション `getCloudMysqlDatabaseList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getCloudMysqlDatabaseList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMysqlInstanceNo` | String | Required | Cloud DB for MySQLインスタンス番号 - [getCloudMysqlInstanceList](/docs/ja/cli-vmysql-getcloudmysqlinstancelist)を参照 | | `--pageNo` | Integer | Required | ページ番号 - `0`~N | | `--pageSize` | Integer | Required | ページごとの項目数 - `1`~N | ### 共通オプション `vmysql`コマンドで共通して使用するオプションについては、[Cloud DB for MySQL (VPC)のオプション](/docs/ja/cli-vmysql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 Cloud DB for MySQLデータベースリストの照会リクエストが成功すると、各データベースの名前が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vmysql getCloudMysqlDatabaseList \ --cloudMysqlInstanceNo 12345678 \ --pageNo 0 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getCloudMysqlDatabaseListResponse": { "totalRows": 3, "cloudMysqlDatabaseList": [ { "databaseName": "mysql_test1" }, { "databaseName": "mysql_test2" }, { "databaseName": "testdb" } ], "requestId": "b2c3d4e5-f6a7-8901-bcde-f23456789012", "returnCode": "0", "returnMessage": "success" } } ```