ncloud_export_mysql_log
Exports Cloud DB for MySQL server logs to Object Storage for archival or external analysis. First list available log files to select the correct log type and file name.
Instructions
Export a Cloud DB for MySQL server log file to Object Storage. Use ncloud_list_mysql_logs to get available log files.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"cloudMysqlServerInstanceNo": "<cloudMysqlServerInstanceNo>",
"logType": "<logType>",
"fileName": "<fileName>",
"bucketName": "<bucketName>"
},
"name": "ncloud_export_mysql_log"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| logType | Yes | Log type to export: BINARY (binlog), ERROR (error log), SLOW (slow query log), GENERAL (general log), AUDIT (audit log) | |
| fileName | Yes | Log file name to export (getDbServerLogList) | |
| bucketName | Yes | Object Storage bucket name to export to | |
| folderPath | No | Folder path within the bucket (e.g. 'mysql-logs/error'). If omitted, exports to bucket root. | |
| regionCode | No | Region code (default: first region) | |
| cloudMysqlServerInstanceNo | Yes | Cloud MySQL server instance number |