文档
测试

新增/编辑

POST
http://113.204.181.78:18081/apin/sync/logConfig/saveOrUpdate

请求参数

参数名
类型
描述
必填
topic
string
主题
必填
host
string
服务ip
必填
serverId
string
服务ID
必填
agent
string
agent名
必填
fileContent
string
配置详情
必填

响应参数

参数名
类型
描述
必填
code
int
响应参数 1请求成功
必填
result
string
响应结果
必填

说明 / 示例

请求示例: { "topic": "cs",//主题 "host": "192.168.121.129",//服务ip "serverId": "123",//服务ID "agent": "a1",//agent名 "fileContent": "a1.sources = r1\na1.sinks = k1\na1.channels = c1\n\n# Describe/configure the source\n"//配置详情 } 返回示例: { "code": 1, "result": "success" }