mirror of
https://github.com/puppetlabs/vmpooler.git
synced 2026-01-26 01:58:41 -05:00
(QENG-2995) Display associated VMs in GET /token/:token endpoint
This commit is contained in:
parent
12da1e07d2
commit
e0356968df
3 changed files with 33 additions and 8 deletions
11
API.md
11
API.md
|
|
@ -40,7 +40,7 @@ Enter host password for user 'jdoe':
|
|||
|
||||
##### GET /token/<token>
|
||||
|
||||
Get information about an existing token.
|
||||
Get information about an existing token (including associated VMs).
|
||||
|
||||
```
|
||||
$ curl -u jdoe --url vmpooler.company.com/api/v1/token/utpg2i2xswor6h8ttjhu3d47z53yy47y
|
||||
|
|
@ -51,7 +51,14 @@ Enter host password for user 'jdoe':
|
|||
"ok": true,
|
||||
"utpg2i2xswor6h8ttjhu3d47z53yy47y": {
|
||||
"user": "jdoe",
|
||||
"timestamp": "2015-04-28 19:17:47 -0700"
|
||||
"created": "2015-04-28 19:17:47 -0700",
|
||||
"last": "2015-11-04 12:28:37 -0700",
|
||||
"vms": {
|
||||
"running": [
|
||||
"dqs4914g2wjyy5w",
|
||||
"hul7ib0ssr0f4o0"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue