From 9540d75a056a90406421966653bc9b852352e68a Mon Sep 17 00:00:00 2001 From: hc-github-team-secure-vault-core <82990506+hc-github-team-secure-vault-core@users.noreply.github.com> Date: Mon, 3 Apr 2023 23:42:51 -0400 Subject: [PATCH] backport of commit e7e6ab9e0f74be81e6e2f944e4e886e187761157 (#19965) Co-authored-by: Alain Chiasson --- .../api-docs/system/replication/replication-dr.mdx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/website/content/api-docs/system/replication/replication-dr.mdx b/website/content/api-docs/system/replication/replication-dr.mdx index 1f63c8bbb5d8..ba9e299c7289 100644 --- a/website/content/api-docs/system/replication/replication-dr.mdx +++ b/website/content/api-docs/system/replication/replication-dr.mdx @@ -406,6 +406,8 @@ $ curl \ This endpoint disables DR replication entirely on the cluster. The cluster will no longer be able to connect to the DR primary. +This endpoint requires a DR Operation Token to be provided as means of authorization. See the DR Operation Token API docs for more information. + !> Re-enabling this node as a DR primary or secondary will change its cluster ID; in the secondary case this means a wipe of the underlying storage when connected to a primary, and in the primary case, secondaries connecting back to the @@ -416,12 +418,20 @@ underlying storage. | :----- | :-------------------------------------- | | `POST` | `/sys/replication/dr/secondary/disable` | +### Sample Payload + +```json +{ + "dr_operation_token": "...", +} +``` + ### Sample Request ```shell-session $ curl \ - --header "X-Vault-Token: ..." \ --request POST \ + --data @payload.json \ http://127.0.0.1:8200/v1/sys/replication/dr/secondary/disable ```