---
title: "获取 binlog 的开始和结束时间"
method: POST
path: "/mysql/parse-binlog-time"
tags: ["mysql"]
---

# 获取 binlog 的开始和结束时间

`POST /mysql/parse-binlog-time`

获取 binlog FileDescriptionFormat 和 RotateEvent 事件

## Request body

- DbmServicesMysqlDbToolsDbactuatorPkgComponentsMysqlBinlogTimeComp
  - `extend` DbmServicesMysqlDbToolsDbactuatorPkgComponentsMysqlBinlogTimeParam
    - `binlog_dir` string, required
    - `binlog_files` string[], required
    - `format` '' | 'json' | 'dump'

---

[API](https://skmtc.net/tencentblueking/apis/dbactuator-api.md) · [All operations](https://skmtc.net/tencentblueking/apis/dbactuator-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tencentblueking/dbactuator-api/versions/dc22dd49fd50/schema)
