--- title: "getCloudMysqlEventHistoryList" slug: "cli-vmysql-getcloudmysqleventhistorylist" updated: 2026-09-17T10:11:06Z published: 2026-09-17T10:11:06Z canonical: "cli.ncloud-docs.com/cli-vmysql-getcloudmysqleventhistorylist" --- > ## 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. # getCloudMysqlEventHistoryList VPC環境で利用できます。 Cloud DB for MySQLインスタンスのイベント履歴リストを照会します。 ## 構文 `getCloudMysqlEventHistoryList`構文は次の通りです。 ``` ./ncloud vmysql getCloudMysqlEventHistoryList \ --cloudMysqlServerName \ --startDate \ --endDate \ [--pageNo ] \ [--pageSize ] \ [--regionCode ] \ [--output ] ``` ## オプション `getCloudMysqlEventHistoryList`の実行時に指定できるオプションについて説明します。 ### 必須オプション `getCloudMysqlEventHistoryList`の必須オプションです。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--cloudMysqlServerName` | String | Required | Cloud DB for MySQLサーバ名 - [getCloudMysqlInstanceList](/docs/ja/cli-vmysql-getcloudmysqlinstancelist)を参照 | | `--startDate` | String | Required | 照会開始日時 - `yyyy-MM-dd HH:mm:ss`形式 | | `--endDate` | String | Required | 照会終了日時 - `yyyy-MM-dd HH:mm:ss`形式 | | `--pageSize` | Integer | Conditional | ページごとの項目数 - `1`~N - `pageNo`入力時、必ず入力 | ### 任意オプション `getCloudMysqlEventHistoryList`の任意オプションです。指定しない場合、オプションにはデフォルト値が適用されます。 | オプション | タイプ | 必須の有無 | 説明 | | --- | --- | --- | --- | | `--pageNo` | Integer | Optional | ページ番号 - `0`~N | ### 共通オプション `vmysql`コマンドで共通して使用するオプションについては、[Cloud DB for MySQL (VPC)のオプション](/docs/ja/cli-vmysql#%EC%98%B5%EC%85%98)を参照してください。 ## 例 Cloud DB for MySQLイベント履歴リストの照会リクエストが成功すると、各イベントの発生時間、タイプ、内容が返されます。 ### コマンド コマンドの例は次の通りです。 ``` ./ncloud vmysql getCloudMysqlEventHistoryList \ --cloudMysqlServerName testmysql-001-97mj \ --startDate "2026-06-04 00:00:00" \ --endDate "2026-06-04 23:59:59" \ --pageNo 0 \ --pageSize 10 \ --regionCode KR \ --output json ``` ### 出力 出力の例は次の通りです。 ``` { "getCloudMysqlEventHistoryListResponse": { "totalRows": 1, "cloudMysqlEventHistoryList": [ { "cloudMysqlInstanceNo": "12345678", "cloudMysqlServerInstanceNo": "34567890", "cloudMysqlServerName": "testmysql-001-97mj", "eventTime": "2026-06-04 17:12:31", "eventType": "DB Server", "eventName": "DB", "eventContent": "MasterDB Install Completed", "clientIp": "10.0.0.1" } ], "requestId": "d0e1f2a3-b4c5-6789-defa-012345678901", "returnCode": "0", "returnMessage": "success" } } ```