Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Note

All operations on this page require an Authenticated Administrator

 

View All Tokens

reports the agents name, ID, build status and enabled/disabled stateLists all current tokens and their authorization.

GET /rest/agent/1.0/tokens/
Expand
Code Block
languagejs
titleResponse
[
  {
    "uuid": "d0ea6653-05e2-4d51-9d89-665cdfe86be6",
    "name": "readOnly",
    "read": true,
    "change": false
  },
  {
    "uuid": "7ba167aa-631c-4771-b197-fcb459cc7fd7",
    "name": "read and write",
    "read": true,
    "change": true
  }
]

 

Create Token

reports the agents name, ID, build status and enabled/disabled state As a file that can be consumed with a shells 'source' command.

...

Returns full details of the requested token, including assigned UUID.

POST /rest/agent/1.0/tokens

...