查询Znode节点数据
接口功能介绍
查询Zookeeper数据节点
接口约束
无
URI
POST /v1/zookeeper/znode/query
路径参数
无
Query参数
无
请求参数
请求头header参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
regionId | 是 | String | 资源池 ID | d8bbd132b53a11e9b0e40242ac110002 |
请求体body参数
参数 | 是否必填 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|---|
instanceId | 是 | String | 实例ID | abc36594d0c44fd3a252e56c8e57e6c6 | |
path | 是 | String | 路径 | /node | |
maxDepth | 否 | Integer | 查询深度 | 1 |
响应参数
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
statusCode | Integer | 返回状态码(2000成功,5000系统错误,18xxxx业务错误) | 1000 | |
error | String | 业务错误码,RCC_statusCode | RCC_1000 | |
message | String | 返回结果描述 | invalid param | |
returnObj | Object | 返回数据体 | returnObj |
表 returnObj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
path | String | 路径 | /node | |
content | String | 节点数据 | 1234 | |
children | Array of Objects | 子节点 | obj | |
currentDepth | String | 当前深度 | 1 | |
currentPath | String | 当前路径名 | node |
表 obj
参数 | 参数类型 | 说明 | 示例 | 下级对象 |
---|---|---|---|---|
path | String | 路径 | /node | |
content | String | 节点数据 | 1234 | |
currentDepth | String | 当前深度 | 1 | |
currentPath | String | 当前路径名 | node |
枚举参数
无
请求示例
请求url
无
请求头header
{"regionId": "d8bbd132b53a11e9b0e40242ac110002"}
请求体body
{"instanceId": "abc36594d0c44fd3a252e56c8e57e6c6","path": "/node8","maxDepth":1}
响应示例
{"returnObj": {"path": "/zookeeper/node1","content": "gerwg234","children": null,"currentDepth": 1,"currentPath": "node1"},"error": "","message": "SUCCESS","statusCode": 2000}