open-vault/website/source/docs/http/sys-mounts.html.md
Jeff Mitchell ace611d56d Address items from feedback. Make MountConfig use values rather than
pointers and change how config is read to compensate.
2015-09-10 15:09:54 -04:00

3.5 KiB

layout page_title sidebar_current description
http HTTP API: /sys/mounts docs-http-mounts-mounts The '/sys/mounts' endpoint is used manage secret backends in Vault.

/sys/mounts

GET

Description
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.
Method
GET
URL
`/sys/mounts`
Parameters
None
Returns
```javascript
{
  "aws": {
    "type": "aws",
    "description": "AWS keys",
    "config": {
      "default_lease_ttl": 0,
      "max_lease_ttl": 0
    }
  },

  "sys": {
    "type": "system",
    "description": "system endpoint",
    "config": {
      "default_lease_ttl": 0,
      "max_lease_ttl": 0
    }
  }
}
```
Description
List the given secret backends configuration. `default_lease_ttl` or `max_lease_ttl` values of `0` mean that the system defaults are used by this backend.
Method
GET
URL
`/sys/mounts//tune`
Parameters
None
Returns
```javascript
{
  "default_lease_ttl": 0,
  "max_lease_ttl": 0
}
```

POST

Description
Mount a new secret backend to the mount point in the URL.
Method
POST
URL
`/sys/mounts/`
Parameters
  • type required The name of the backend type, such as "aws"
  • description optional A human-friendly description of the mount.
  • config optional 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.
Returns
`204` response code.
Description
Tune configuration parameters for a given mount point.
Method
POST
URL
`/sys/mounts//tune`
Parameters
  • default_lease_ttl optional The default time-to-live. If set on a specific mount, overrides the global default.
  • max_lease_ttl optional The maximum time-to-live. If set on a specific mount, overrides the global default.
Returns
`204` response code.

DELETE

Description
Unmount the mount point specified in the URL.
Method
DELETE
URL
`/sys/mounts/`
Parameters
None
Returns
`204` response code.