Add create-orphan to documentation

This commit is contained in:
Jeff Mitchell 2015-11-03 15:15:33 -05:00
parent 4f6ad849b8
commit 73e3aa1d64
1 changed files with 6 additions and 3 deletions

View File

@ -40,21 +40,24 @@ of the header should be "X-Vault-Token" and the value should be the token.
## API
### /auth/token/create
### /auth/token/create[-orphan]
#### POST
<dl class="api">
<dt>Description</dt>
<dd>
Creates a new token. Certain options are only available to
when called by a root token.
when called by a root token. If used via the
`/auth/token/create-orphan` endpoint, a root token is not
required to create an orphan token (otherwise set with the
`no_parent` option).
</dd>
<dt>Method</dt>
<dd>POST</dd>
<dt>URL</dt>
<dd>`/auth/token/create`</dd>
<dd>`/auth/token/create[-orphan]`</dd>
<dt>Parameters</dt>
<dd>