Dynamic Configuration

Get

GET /values

Query Parameters

NameTypeDescription

keys

String[]

Configuration key, empty return all

- Body `object` Configurations
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":"*"}

Set

PATCH /values

Request Body

NameTypeDescription

update*

Object

keyValue data

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: hertz

Remove

DELETE /values/:key

Path Parameters

NameTypeDescription

key*

String

Configuration key

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: hertz

Last updated