nacos_get_config_history
Retrieve the full configuration content of a specific historical change from Nacos by providing the history record ID (nid) and data ID. Use it to inspect exact config versions from past changes.
Instructions
查询某次历史变更记录。
对应 Nacos OpenAPI:
v1:GET /nacos/v1/cs/history
v2:GET /nacos/v2/cs/history
v3:GET /v3/console/cs/history(Console API)
按历史记录 ID(nid)返回该次变更的完整配置内容。
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| nid | Yes | 历史版本 ID(nid),必填 | |
| data_id | Yes | 配置 ID | |
| group_name | No | 配置分组,默认 DEFAULT_GROUP | DEFAULT_GROUP |
| namespace_id | No | 命名空间 ID,可选 |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | ||
| content | No | ||
| data_id | No | ||
| op_type | No | ||
| operator | No | ||
| group_name | No | ||
| namespace_id | No | ||
| publish_time | No |