Update API docs for Create Token — resolves #7053 (#7056)

- Update sample `payload.json`
- Update sample response
This commit is contained in:
Brian Shumate 2019-07-05 18:38:37 -04:00 committed by Becca Petrin
parent a5e762d36a
commit 39676b0b74

View file

@ -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
}
}
```