mirror of
https://github.com/hashicorp/vault.git
synced 2025-08-31 03:21:11 +02:00
1.6 KiB
1.6 KiB
layout, page_title, sidebar_current, description
layout | page_title | sidebar_current | description |
---|---|---|---|
http | HTTP API: /sys/auth | docs-http-auth-auth | The `/sys/auth` endpoint is used to manage auth backends in Vault. |
/sys/auth
GET
- Description
- Lists all the enabled auth backends.
<dt>Method</dt>
<dd>GET</dd>
<dt>Parameters</dt>
<dd>
None
</dd>
<dt>Returns</dt>
<dd>
{
"github": {
"type": "github",
"description": "GitHub auth"
}
}
</dd>
POST
- Description
- Enable a new auth backend. The auth backend can be accessed and configured via the mount point specified in the URL. This mount point will be exposed under the `auth` prefix. For example, enabling with the `/sys/auth/foo` URL will make the backend available at `/auth/foo`.
<dt>Method</dt>
<dd>POST</dd>
<dt>URL</dt>
<dd>`/sys/auth/<mount point>`</dd>
<dt>Parameters</dt>
<dd>
<ul>
<li>
<span class="param">type</span>
<span class="param-flags">required</span>
The name of the auth backend type, such as "github"
</li>
<li>
<span class="param">description</span>
<span class="param-flags">optional</span>
A human-friendly description of the auth backend.
</li>
</ul>
</dd>
<dt>Returns</dt>
<dd>`204` response code.
</dd>
DELETE
- Description
- Disable the auth backend at the given mount point.
<dt>Method</dt>
<dd>DELETE</dd>
<dt>URL</dt>
<dd>`/sys/auth/<mount point>`</dd>
<dt>Parameters</dt>
<dd>None
</dd>
<dt>Returns</dt>
<dd>`204` response code.
</dd>