From deae315dce638e05522c7e149f31af1cb9909ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Tue, 5 May 2020 08:17:25 +0300 Subject: [PATCH] Correct PUT /server documentation The stale state was nonsensical and the drain state was missing. --- Documentation/REST-API/Resources-Server.md | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/Documentation/REST-API/Resources-Server.md b/Documentation/REST-API/Resources-Server.md index 7bf0f1f1b..6397a977d 100644 --- a/Documentation/REST-API/Resources-Server.md +++ b/Documentation/REST-API/Resources-Server.md @@ -563,14 +563,14 @@ The _:name_ in the URI must map to a server name with all whitespace replaced with hyphens. This endpoint requires that the `state` parameter is passed with the request. The value of `state` must be one of the following values. -|Value | State Description | -|-----------|--------------------------------| -|master | Server is a Master | -|slave | Server is a Slave | -|maintenance| Server is put into maintenance | -|running | Server is up and running | -|synced | Server is a Galera node | -|stale | Server is a stale Master | +|Value | State Description | +|-----------|----------------------------------| +|master | Server is a Master | +|slave | Server is a Slave | +|maintenance| Server is put into maintenance | +|running | Server is up and running | +|synced | Server is a Galera node | +|drain | Server is drained of connections | For example, to set the server _db-server-1_ into maintenance mode, a request to the following URL must be made: