Vault
/sys/plugins/reload
Reload plugin
The /sys/plugins/reload/:type/:name endpoint reloads a named plugin across all
namespaces. It is only available in the root namespace. All instances of the plugin
will be killed, and any newly pinned version of the plugin will be started in
their place.
| Method | Path |
|---|---|
POST | /sys/plugins/reload/:type/:name |
Parameters
type(string: <required>)– The type of the plugin, as registered in the plugin catalog. One of "auth", "secret", "database", or "unknown". If "unknown", all plugin types with the provided name will be reloaded.name(string: <required>)– The name of the plugin to reload, as registered in the plugin catalog.scope(string: "")- The scope of the reload. If omitted, reloads the plugin or mounts on this Vault instance. If 'global', will begin reloading the plugin on all instances of a cluster.
Sample payload
{
"scope": "global"
}
Sample request
$ curl \
--header "X-Vault-Token: ..." \
--request POST \
--data @payload.json \
http://127.0.0.1:8200/v1/sys/plugins/reload/auth/mock-plugin