Available in VPC
Get the event history list for a Cloud DB for MySQL instance.
Syntax
The getCloudMysqlEventHistoryList syntax is as follows:
./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>]
Options
This section describes the options available when running getCloudMysqlEventHistoryList.
Required options
The following options are required for getCloudMysqlEventHistoryList.
| Options | Type | Required | Description |
|---|---|---|---|
--cloudMysqlServerName |
String | Required | Cloud DB for MySQL server name |
--startDate |
String | Required | Query start date and time
|
--endDate |
String | Required | Query end date and time
|
--pageSize |
Integer | Conditional | Number of items per page
|
Optional options
These are the optional options for getCloudMysqlEventHistoryList. Options that are not specified will use their default values.
| Options | Type | Required | Description |
|---|---|---|---|
--pageNo |
Integer | Optional | Page number
|
Common options
For information about the options common to all vmysql subcommands, see Cloud DB for MySQL (VPC) options.
Examples
If the request to retrieve the list of event history records in Cloud DB for MySQL is successful, the occurrence time, type, and content of each event are returned.
Command
The command example is as follows:
./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
Output
The output example is as follows:
{
"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"
}
}