Dynamic Configuration
Get
GET /values
Query Parameters
Name
Type
Description
keys
String[]
Configuration key, empty return all
- Body `object` Configurations- Body
- **message** `string`GET /values HTTP/1.1
Host: api-x.kainonly.com:8443
# Response
HTTP/1.1 200 OK
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertz
{"Cloud":"tencent",...,"TencentSecretKey":"*"}GET /values?keys=IpLoginFailures&keys=LoginFailures HTTP/1.1
Host: api-x.kainonly.com:8443
# Response
HTTP/1.1 200 OK
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertz
{"IpLoginFailures":10,"LoginFailures":5}Set
PATCH /values
Request Body
Name
Type
Description
update*
Object
keyValue data
- Body
- **message** `string`PATCH /values HTTP/1.1
Host: api-x.kainonly.com:8443
Content-Type: application/json
{
"update": {
"mytest": "hi"
}
}
# Response
HTTP/1.1 204 No Content
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertzRemove
DELETE /values/:key
Path Parameters
Name
Type
Description
key*
String
Configuration key
- Body
- **message** `string`DELETE /values/mytest HTTP/1.1
Host: api-x.kainonly.com:8443
# Response
HTTP/1.1 204 No Content
Alt-Svc: h3=":8443"; ma=2592000,h3-29=":8443"; ma=2592000
Server: hertzLast updated
Was this helpful?