Config groups
Create and query config groups.
Create and query config groups.
Default Base URL: http://127.0.0.1:8090. Management APIs require Authorization (token from login).
Config groups
Config group CRUD. Write bodies are usually ConfigFileGroup arrays (Enrich may show a single object).
/config/v1/groupsAuth requiredList config groups
Search by namespace / group / fileName.
Parameters
- Authorizationheader · stringrequired
Token from login.
- namespacequery · stringoptional
Namespace; empty means all.
- groupquery · stringoptional
Group name, fuzzy.
- fileNamequery · stringoptional
File name, fuzzy.
- offsetquery · integeroptional
Offset, default 0.
- limitquery · integerrequired
Page size, max 100, default 100.
curl -sS 'http://127.0.0.1:8090/config/v1/groups?namespace=default&limit=20' \
-H "Authorization: $TOKEN"{
"code": 200000,
"info": "execute success",
"configFileGroups": [{ "name": "docs-multi-gray" }]
}/config/v1/groupsAuth requiredCreate config groups
Write bodies are usually protobuf message arrays; fields below are per-object (see specification).
Parameters
- Authorizationheader · stringrequired
Token from login.
- (body)body · ConfigFileGroup[]required
Request body is a JSON array of ConfigFileGroup: [{...}, ...]. Fields below are the full per-item schema (including nested).
- idbody · stringoptional
id
- namebody · stringrequired
name
- namespacebody · stringrequired
namespace
- commentbody · stringoptional
comment
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
Response fields
- codebody · uint32required
Business code; success is usually 200000.
- infobody · stringoptional
Info message.
- configFileGroupbody · ConfigFileGroupoptional
ConfigFileGroup entity fields (batch APIs nest under responses[]).
- idbody · stringoptional
id
- namebody · stringoptional
name
- namespacebody · stringoptional
namespace
- commentbody · stringoptional
comment
- ctimebody · stringoptional
ctime
- mtimebody · stringoptional
mtime
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
- file_countbody · uint64optional
file_count
- editablebody · booloptional
删除操作标志位
- deleteablebody · booloptional
deleteable
curl -sS -X POST 'http://127.0.0.1:8090/config/v1/groups' \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '[{"name":"docs-multi-gray","namespace":"default"}]'{
"code": 200000,
"info": "execute success",
"amount": 1
}/config/v1/groupsAuth requiredUpdate config groups
Update groups; body is an array.
Parameters
- Authorizationheader · stringrequired
Token from login.
- (body)body · ConfigFileGroup[]required
Request body is a JSON array of ConfigFileGroup: [{...}, ...]. Fields below are the full per-item schema (including nested).
- idbody · stringoptional
id
- namebody · stringoptional
name
- namespacebody · stringoptional
namespace
- commentbody · stringoptional
comment
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
Response fields
- codebody · uint32required
Business code; success is usually 200000.
- infobody · stringoptional
Info message.
- configFileGroupbody · ConfigFileGroupoptional
ConfigFileGroup entity fields (batch APIs nest under responses[]).
- idbody · stringoptional
id
- namebody · stringoptional
name
- namespacebody · stringoptional
namespace
- commentbody · stringoptional
comment
- ctimebody · stringoptional
ctime
- mtimebody · stringoptional
mtime
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
- file_countbody · uint64optional
file_count
- editablebody · booloptional
删除操作标志位
- deleteablebody · booloptional
deleteable
curl -sS -X PUT 'http://127.0.0.1:8090/config/v1/groups' \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '[{"name":"docs-multi-gray","namespace":"default","comment":"updated"}]'{
"code": 200000,
"info": "execute success",
"amount": 1
}/config/v1/groups/deletteAuth requiredDelete config groups
Note: control-plane path is delette (historical typo).
Parameters
- Authorizationheader · stringrequired
Token from login.
- (body)body · ConfigFileGroup[]required
JSON array of ConfigFileGroup; fields below are per-item.
- idbody · stringoptional
id
- namebody · stringoptional
name
- namespacebody · stringoptional
namespace
- commentbody · stringoptional
comment
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
Response fields
- codebody · uint32required
Business code.
- infobody · stringoptional
Info.
- ConfigFileGroupbody · ConfigFileGroupoptional
Entity fields.
- idbody · stringoptional
id
- namebody · stringoptional
name
- namespacebody · stringoptional
namespace
- commentbody · stringoptional
comment
- ctimebody · stringoptional
ctime
- mtimebody · stringoptional
mtime
- businessbody · stringoptional
business
- departmentbody · stringoptional
department
- metadatabody · map<string,string>optional
metadata
- file_countbody · uint64optional
file_count
- editablebody · booloptional
editable
- deleteablebody · booloptional
deleteable
curl -sS -X POST 'http://127.0.0.1:8090/config/v1/groups/delette' \
-H "Authorization: $TOKEN" \
-H 'Content-Type: application/json' \
-d '[]'{
"code": 200000,
"info": "execute success"
}