跳转到主要内容
POST
POST /admin/api/update/apply

授权

gproxy_session
string
cookie
必填

请求头

x-gproxy-admin-scope
string

Administrative scope selected by the caller.

查询参数

channel
string | null
source
string | null

响应

Success

The answer to an apply or a rollback.

changed
boolean
必填

Whether anything was actually replaced. false means the instance was already on that version and nothing was written.

restart
string
必填

What is about to happen to the process.

version
string | null
必填

The version now on disk.

None after a rollback: the executable that was put back carries its own version and nothing on disk records what it was. Reporting the calling process's version instead would be a guess that is wrong in exactly the common case — a console pressing rollback is talking to the binary that was installed.