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

Prev Next

VPC環境で利用できます。

Cloud DB for MySQLインスタンスのイベント履歴リストを照会します。

構文

getCloudMysqlEventHistoryList構文は次の通りです。

./ncloud vmysql getCloudMysqlEventHistoryList \
    --cloudMysqlServerName <server-name> \
    --startDate <yyyy-MM-dd HH:mm:ss> \
    --endDate <yyyy-MM-dd HH:mm:ss> \
    [--pageNo <page-no>] \
    [--pageSize <page-size>] \
    [--regionCode <KR|SGN|JPN>] \
    [--output <json|xml>]

オプション

getCloudMysqlEventHistoryListの実行時に指定できるオプションについて説明します。

必須オプション

getCloudMysqlEventHistoryListの必須オプションです。

オプション タイプ 必須の有無 説明
--cloudMysqlServerName String Required Cloud DB for MySQLサーバ名
--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)のオプションを参照してください。

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"
  }
}