From c98ec7a092eed795ea0aa232ec7da90d387e667a Mon Sep 17 00:00:00 2001 From: vishalnayak Date: Mon, 14 Mar 2016 19:36:53 -0400 Subject: [PATCH] Documentation to provide optional parameters to token store API --- website/source/docs/auth/token.html.md | 114 +++++++++++++++++++++---- 1 file changed, 96 insertions(+), 18 deletions(-) diff --git a/website/source/docs/auth/token.html.md b/website/source/docs/auth/token.html.md index a650bc2777..1bc488e4c0 100644 --- a/website/source/docs/auth/token.html.md +++ b/website/source/docs/auth/token.html.md @@ -179,7 +179,7 @@ of the header should be "X-Vault-Token" and the value should be the token. -### /auth/token/lookup/ +### /auth/token/lookup[/token] #### GET
@@ -218,6 +218,51 @@ of the header should be "X-Vault-Token" and the value should be the token.
+ +#### POST + +
+
Description
+
+ Returns information about the client token provided in the request body. +
+ +
Method
+
GET
+ +
URL
+
`/auth/token/lookup`
+ +
Parameters
+
+
    +
  • + token + required + Token to lookup. +
  • +
+
+ +
Returns
+
+ + ```javascript + { + "data": { + "id": "ClientToken", + "policies": ["web", "stage"], + "path": "auth/github/login", + "meta": {"user": "armon", "organization": "hashicorp"}, + "display_name": "github-armon", + "num_uses": 0, + } + } + ``` + +
+
+ ### /auth/token/renew-self #### POST @@ -265,7 +310,7 @@ of the header should be "X-Vault-Token" and the value should be the token. -### /auth/token/renew/ +### /auth/token/renew[/token] #### POST
@@ -280,9 +325,18 @@ of the header should be "X-Vault-Token" and the value should be the token.
POST
URL
-
`/auth/token/renew/`
+
`/auth/token/renew`
Parameters
+
+
    +
  • + token + required + Token to revoke. This can be part of the URL or the body. +
  • +
+
  • @@ -312,7 +366,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
-### /auth/token/revoke/ +### /auth/token/revoke[/token] #### POST
@@ -326,11 +380,17 @@ of the header should be "X-Vault-Token" and the value should be the token.
POST
URL
-
`/auth/token/revoke/`
+
`/auth/token/revoke`
Parameters
- None +
    +
  • + token + required + Token to revoke. This can be part of the URL or the body. +
  • +
Returns
@@ -365,7 +425,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
-### /auth/token/revoke-orphan/ +### /auth/token/revoke-orphan[/token] #### POST
@@ -381,11 +441,17 @@ of the header should be "X-Vault-Token" and the value should be the token.
POST
URL
-
`/auth/token/revoke-orphan/`
+
`/auth/token/revoke-orphan`
Parameters
- None +
    +
  • + token + required + Token to revoke. This can be part of the URL or the body. +
  • +
Returns
@@ -393,7 +459,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
-### /auth/token/revoke-prefix/ +### /auth/token/revoke-prefix[/prefix] #### POST
@@ -409,11 +475,17 @@ of the header should be "X-Vault-Token" and the value should be the token.
POST
URL
-
`/auth/token/revoke-prefix/`
+
`/auth/token/revoke-prefix`
Parameters
- None +
    +
  • + token + required + Token source prefix to revoke. This can be part of the URL or the body. +
  • +
Returns
@@ -584,7 +656,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
-### /auth/token/lookup-accessor +### /auth/token/lookup-accessor[/accessor] #### POST
@@ -599,7 +671,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
POST
URL
-
`/auth/token/lookup-accessor`
+
`/auth/token/lookup-accessor`
Parameters
@@ -607,7 +679,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
  • accessor required - Accessor of the token to lookup. + Accessor of the token to lookup. This can be part of the URL or the body.
  • @@ -639,7 +711,7 @@ of the header should be "X-Vault-Token" and the value should be the token.
    -### /auth/token/revoke-accessor/ +### /auth/token/revoke-accessor[/accessor] #### POST
    @@ -654,11 +726,17 @@ of the header should be "X-Vault-Token" and the value should be the token.
    POST
    URL
    -
    `/auth/token/revoke-accessor/`
    +
    `/auth/token/revoke-accessor`
    Parameters
    - None +
      +
    • + accessor + required + Accessor of the token. This can be part of the URL or the body. +
    • +
    Returns