From 0cb45b246ea4aebe33a418061bc933f055523fd9 Mon Sep 17 00:00:00 2001 From: Rachel Elledge Date: Wed, 4 Sep 2024 16:27:10 -0500 Subject: [PATCH] DOC-4156 RS: Add change_master to /cluster/actions REST API reference --- .../references/rest-api/requests/cluster/actions.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/content/operate/rs/references/rest-api/requests/cluster/actions.md b/content/operate/rs/references/rest-api/requests/cluster/actions.md index 509c33f70c..feb130bdaa 100644 --- a/content/operate/rs/references/rest-api/requests/cluster/actions.md +++ b/content/operate/rs/references/rest-api/requests/cluster/actions.md @@ -138,6 +138,17 @@ removed as soon as the new one is submitted. |-------|------|-------------| | action | string | The name of the action required. | +Supported cluster actions: + +- `change_master`: Promotes a specified node to become the primary node of the cluster, which coordinates cluster-wide operations. Include the `node_uid` of the node you want to promote in the request body. + + ```sh + POST /v1/cluster/actions/change_master + { + "node_uid": "2" + } + ``` + ### Response {#post-response} The body content may provide additional action details. Currently, it is not used.