2015-04-18 21:34:47 +00:00
|
|
|
---
|
|
|
|
layout: "http"
|
|
|
|
page_title: "HTTP API: /sys/mounts"
|
|
|
|
sidebar_current: "docs-http-mounts-mounts"
|
|
|
|
description: |-
|
|
|
|
The '/sys/mounts' endpoint is used manage secret backends in Vault.
|
|
|
|
---
|
|
|
|
|
|
|
|
# /sys/mounts
|
|
|
|
|
|
|
|
## GET
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
2015-09-01 22:29:30 +00:00
|
|
|
Lists all the mounted secret backends. `default_lease_ttl`
|
|
|
|
or `max_lease_ttl` values of `0` mean that the system
|
|
|
|
defaults are used by this backend.
|
2015-04-22 23:47:11 +00:00
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>GET</dd>
|
|
|
|
|
2015-09-02 19:56:58 +00:00
|
|
|
<dt>URL</dt>
|
|
|
|
<dd>`/sys/mounts`</dd>
|
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
None
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
|
|
|
"aws": {
|
|
|
|
"type": "aws",
|
2015-09-01 22:29:30 +00:00
|
|
|
"description": "AWS keys",
|
|
|
|
"config": {
|
|
|
|
"default_lease_ttl": 0,
|
|
|
|
"max_lease_ttl": 0
|
|
|
|
}
|
2015-04-22 23:47:11 +00:00
|
|
|
},
|
|
|
|
|
|
|
|
"sys": {
|
|
|
|
"type": "system",
|
2015-09-01 22:29:30 +00:00
|
|
|
"description": "system endpoint",
|
|
|
|
"config": {
|
|
|
|
"default_lease_ttl": 0,
|
|
|
|
"max_lease_ttl": 0
|
|
|
|
}
|
2015-04-22 23:47:11 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
</dl>
|
|
|
|
|
2015-09-02 19:56:58 +00:00
|
|
|
<dl>
|
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
2015-09-25 13:46:20 +00:00
|
|
|
List the given mount's configuration. Unlike the `mounts`
|
|
|
|
endpoint, this will return the current time in seconds for each
|
|
|
|
TTL, which may be the system default or a mount-specific value.
|
2015-09-02 19:56:58 +00:00
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>GET</dd>
|
|
|
|
|
|
|
|
<dt>URL</dt>
|
|
|
|
<dd>`/sys/mounts/<mount point>/tune`</dd>
|
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
None
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>
|
|
|
|
|
|
|
|
```javascript
|
|
|
|
{
|
2015-09-25 13:46:20 +00:00
|
|
|
"default_lease_ttl": 3600,
|
|
|
|
"max_lease_ttl": 7200
|
2015-09-02 19:56:58 +00:00
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2015-04-18 21:34:47 +00:00
|
|
|
## POST
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Mount a new secret backend to the mount point in the URL.
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>POST</dd>
|
|
|
|
|
|
|
|
<dt>URL</dt>
|
|
|
|
<dd>`/sys/mounts/<mount point>`</dd>
|
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li>
|
|
|
|
<span class="param">type</span>
|
|
|
|
<span class="param-flags">required</span>
|
|
|
|
The name of the backend type, such as "aws"
|
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span class="param">description</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
A human-friendly description of the mount.
|
|
|
|
</li>
|
2015-09-01 22:29:30 +00:00
|
|
|
<li>
|
|
|
|
<span class="param">config</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
Config options for this mount. This is an object with
|
|
|
|
two possible values: `default_lease_ttl` and
|
|
|
|
`max_lease_ttl`. These control the default and
|
|
|
|
maximum lease time-to-live, respectively. If set
|
|
|
|
on a specific mount, this overrides the global
|
|
|
|
defaults.
|
|
|
|
</li>
|
2015-04-22 23:47:11 +00:00
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>`204` response code.
|
|
|
|
</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
</dl>
|
|
|
|
|
2015-09-02 19:56:58 +00:00
|
|
|
<dl>
|
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Tune configuration parameters for a given mount point.
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>POST</dd>
|
|
|
|
|
|
|
|
<dt>URL</dt>
|
|
|
|
<dd>`/sys/mounts/<mount point>/tune`</dd>
|
|
|
|
|
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>
|
|
|
|
<ul>
|
|
|
|
<li>
|
2015-09-09 19:24:45 +00:00
|
|
|
<span class="param">default_lease_ttl</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
The default time-to-live. If set on a specific mount,
|
2015-09-25 13:46:20 +00:00
|
|
|
overrides the global default. A value of "system" or "0"
|
|
|
|
are equivalent and set to the system default TTL.
|
2015-09-09 19:24:45 +00:00
|
|
|
</li>
|
|
|
|
<li>
|
|
|
|
<span class="param">max_lease_ttl</span>
|
|
|
|
<span class="param-flags">optional</span>
|
|
|
|
The maximum time-to-live. If set on a specific mount,
|
2015-09-25 13:46:20 +00:00
|
|
|
overrides the global default. A value of "system" or "0"
|
|
|
|
are equivalent and set to the system max TTL.
|
2015-09-02 19:56:58 +00:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>`204` response code.
|
|
|
|
</dd>
|
|
|
|
</dl>
|
|
|
|
|
2015-04-18 21:34:47 +00:00
|
|
|
## DELETE
|
|
|
|
|
|
|
|
<dl>
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Description</dt>
|
|
|
|
<dd>
|
|
|
|
Unmount the mount point specified in the URL.
|
|
|
|
</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Method</dt>
|
|
|
|
<dd>DELETE</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>URL</dt>
|
|
|
|
<dd>`/sys/mounts/<mount point>`</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Parameters</dt>
|
|
|
|
<dd>None
|
|
|
|
</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
|
2015-04-22 23:47:11 +00:00
|
|
|
<dt>Returns</dt>
|
|
|
|
<dd>`204` response code.
|
|
|
|
</dd>
|
2015-04-18 21:34:47 +00:00
|
|
|
</dl>
|