Skip to content

Commit 4ec00dd

Browse files
committed
admin_manual: Add doveadm obox user wait HTTP API call
1 parent 8b86b7e commit 4ec00dd

File tree

1 file changed

+80
-0
lines changed

1 file changed

+80
-0
lines changed

source/admin_manual/doveadm_http_api.rst

Lines changed: 80 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4375,6 +4375,86 @@ response::
43754375
is still open in another process.
43764376

43774377

4378+
doveadm obox user wait
4379+
======================
4380+
4381+
Wait until there are no more sessions (imap, lmtp, etc.) accessing the user. If there are still sessions after timeout is reached, fail with exit code 65.
4382+
4383+
parameters::
4384+
4385+
{
4386+
"command": "oboxUserWait",
4387+
"parameters": [
4388+
{
4389+
"name": "allUsers",
4390+
"type": "boolean"
4391+
},
4392+
{
4393+
"name": "socketPath",
4394+
"type": "string"
4395+
},
4396+
{
4397+
"name": "user",
4398+
"type": "string"
4399+
},
4400+
{
4401+
"name": "userFile",
4402+
"type": "string"
4403+
},
4404+
{
4405+
"name": "timeout",
4406+
"type": "integer"
4407+
},
4408+
]
4409+
}
4410+
4411+
4412+
+------------+---------+------------------------+---------------------------------+
4413+
| Parameter | Type | Description | example |
4414+
+============+=========+========================+=================================+
4415+
| socketPath | String | Path to doveadm socket | /var/run/dovecot/doveadm-server |
4416+
+------------+---------+------------------------+---------------------------------+
4417+
| timeout | Integer | Timeout (in seconds) | 30 |
4418+
+------------+---------+------------------------+---------------------------------+
4419+
4420+
4421+
example::
4422+
4423+
[
4424+
[
4425+
"oboxUserWait",
4426+
{
4427+
"allUsers": false,
4428+
"socketPath": "",
4429+
"user": "testuser003",
4430+
"userFile": ""
4431+
},
4432+
"tag1"
4433+
]
4434+
]
4435+
4436+
.. code::
4437+
4438+
curl -v -u doveadm:secretpassword -X POST -H "Content-Type: application/json" -d '[["oboxUserWait", {"allUsers":false,"user":"testuser003"}, "tag1"]] ' http://localhost:8080/doveadm/v1
4439+
4440+
4441+
response::
4442+
4443+
[
4444+
[
4445+
"doveadmResponse",
4446+
[],
4447+
"tag1"
4448+
]
4449+
]
4450+
4451+
.. note::
4452+
4453+
.. versionadded:: 2.3.17 This command returns a specific exit code (65)
4454+
in the failure response, if sessions could not be kicked within the
4455+
timeout interval.
4456+
4457+
43784458
doveadm penalty
43794459
===============
43804460

0 commit comments

Comments
 (0)