Skip to content

Commit

Permalink
backport of commit e7e6ab9 (hashicorp#19965)
Browse files Browse the repository at this point in the history
Co-authored-by: Alain Chiasson <alain@chiasson.org>
  • Loading branch information
1 parent f88e683 commit 9540d75
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion website/content/api-docs/system/replication/replication-dr.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
```

Expand Down

0 comments on commit 9540d75

Please sign in to comment.