Nacos API
  1. 配置管理
Nacos API
  • 概述
    • Nacos 简介
    • 概念
    • 架构
  • 配置管理
    • 获取配置
      GET
    • 监听配置
      POST
    • 发布配置
      POST
    • 删除配置
      DELETE
    • 查历史版本
      GET
    • 查询历史版本详情
      GET
    • 查询配置上一版本信息
      GET
  • 服务发现
    • 注销实例
      DELETE
    • 注册实例
      POST
    • 修改实例
      PUT
    • 查询实例列表
      GET
    • 查询实例详情
      GET
    • 发送实例心跳
      PUT
    • 创建服务
      POST
    • 删除服务
      DELETE
    • 修改服务
      PUT
    • 查询服务
      GET
    • 查询服务列表
      GET
    • 查询系统开关
      GET
    • 修改系统开关
      PUT
    • 查看系统当前数据指标
      GET
    • 查看当前集群Server列表
      GET
    • 查看当前集群leader
      GET
    • 更新实例的健康状态
      PUT
    • 批量更新实例元数据(Beta)
      PUT
    • 批量删除实例元数据(Beta)
      DELETE
  • 命名空间
    • 查询命名空间列表
    • 创建命名空间
    • 修改命名空间
    • 删除命名空间
  1. 配置管理

查历史版本

GET
/nacos/v1/cs/history
查询配置项历史版本。
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET 'http://127.0.0.1:8848/nacos/v1/cs/history?dataId={{dataId}}&group={{group}}'
Response Response Example
{
    "totalCount": 1,
    "pageNumber": 1,
    "pagesAvailable": 1,
    "pageItems": [
        {
            "id": "203",
            "lastId": -1,
            "dataId": "nacos.example",
            "group": "com.alibaba.nacos",
            "tenant": "",
            "appName": "",
            "md5": null,
            "content": null,
            "srcIp": "0:0:0:0:0:0:0:1",
            "srcUser": null,
            "opType": "I         ",
            "createdTime": "2010-05-04T16:00:00.000+0000",
            "lastModifiedTime": "2020-12-05T01:48:03.380+0000"
        }
    ]
}

Request

Query Params
tenant
string 
optional
租户信息,对应 Naocs 的命名空间ID
dataId
string 
required
配置 ID
Example:
{{dataId}}
group
string 
required
配置分组
Example:
{{group}}
pageNo
string 
optional
当前页码
pageSize
string 
optional
分页条数(默认100条,最大为500)
search
string 
optional
Example:
accurate

Responses

🟢200成功
application/json
Body
totalCount
integer 
required
pageNumber
integer 
required
pagesAvailable
integer 
required
pageItems
array [object {13}] 
required
id
string 
optional
lastId
integer 
optional
dataId
string 
optional
group
string 
optional
tenant
string 
optional
appName
string 
optional
md5
null 
optional
content
null 
optional
srcIp
string 
optional
srcUser
null 
optional
opType
string 
optional
createdTime
string 
optional
lastModifiedTime
string 
optional
Previous
删除配置
Next
查询历史版本详情
Built with