From 36cf85f2c868e04854b7134eddd2a9fdf2d4434a Mon Sep 17 00:00:00 2001 From: Brian Shumate Date: Fri, 5 Jul 2019 18:38:37 -0400 Subject: [PATCH] =?UTF-8?q?Update=20API=20docs=20for=20Create=20Token=20?= =?UTF-8?q?=E2=80=94=20resolves=20#7053=20(#7056)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Update sample `payload.json` - Update sample response --- website/source/api/auth/token/index.html.md | 30 +++++++++++++++++---- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/website/source/api/auth/token/index.html.md b/website/source/api/auth/token/index.html.md index 309d4749b7..5ffc0f33c5 100644 --- a/website/source/api/auth/token/index.html.md +++ b/website/source/api/auth/token/index.html.md @@ -115,7 +115,7 @@ during this call. "web", "stage" ], - "metadata": { + "meta": { "user": "armon" }, "ttl": "1h", @@ -137,17 +137,37 @@ $ curl \ ```json { + "request_id": "f00341c1-fad5-f6e6-13fd-235617f858a1", + "lease_id": "", + "renewable": false, + "lease_duration": 0, + "data": null, + "wrap_info": null, + "warnings": [ + "Policy \"stage\" does not exist", + "Policy \"web\" does not exist" + ], "auth": { - "client_token": "ABCD", + "client_token": "s.wOrq9dO9kzOcuvB06CMviJhZ", + "accessor": "B6oixijqmeR4bsLOJH88Ska9", "policies": [ - "web", - "stage" + "default", + "stage", + "web" + ], + "token_policies": [ + "default", + "stage", + "web" ], "metadata": { "user": "armon" }, "lease_duration": 3600, - "renewable": true + "renewable": true, + "entity_id": "", + "token_type": "service", + "orphan": false } } ```