2017-09-08 02:12:03 +00:00
|
|
|
---
|
2020-01-18 00:18:09 +00:00
|
|
|
layout: docs
|
|
|
|
page_title: secrets move - Command
|
2017-09-08 02:12:03 +00:00
|
|
|
description: |-
|
2022-03-04 22:38:15 +00:00
|
|
|
The "secrets move" command moves an existing secrets engine to a new path. All
|
|
|
|
leases from the old secrets engine are revoked, but all configurations
|
|
|
|
associated with the engine are preserved.
|
2017-09-08 02:12:03 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
# secrets move
|
|
|
|
|
|
|
|
The `secrets move` command moves an existing secrets engine to a new path. Any
|
|
|
|
leases from the old secrets engine are revoked, but all configuration associated
|
2022-03-04 22:38:15 +00:00
|
|
|
with the engine is preserved. The command can be issued for a move within or across
|
|
|
|
namespaces, using namespace prefixes in the arguments.
|
|
|
|
|
|
|
|
The command will trigger a remount operation and uses the returned migration ID to poll the
|
|
|
|
status of the operation until a terminal state of `success` or `failure` is reached.
|
2017-09-08 02:12:03 +00:00
|
|
|
|
|
|
|
**Moving an existing secrets engine will revoke any leases from the old
|
|
|
|
engine.**
|
|
|
|
|
|
|
|
## Examples
|
|
|
|
|
2022-03-04 22:38:15 +00:00
|
|
|
Move the existing secrets engine at ns1/secret/ to ns2/kv/:
|
2017-09-08 02:12:03 +00:00
|
|
|
|
2020-05-21 17:18:17 +00:00
|
|
|
```shell-session
|
2022-03-04 22:38:15 +00:00
|
|
|
$ vault secrets move ns1/secret/ ns2/kv/
|
2017-09-08 02:12:03 +00:00
|
|
|
```
|
|
|
|
|
|
|
|
## Usage
|
|
|
|
|
2023-01-26 00:12:15 +00:00
|
|
|
There are no flags beyond the [standard set of flags](/vault/docs/commands)
|
2017-09-08 02:12:03 +00:00
|
|
|
included on all commands.
|