For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
Open sourceSupportFAQsDocs Home
DocumentationAPI ReferenceRelease notes
DocumentationAPI ReferenceRelease notes
  • Introduction
    • Overview
    • Authentication
  • Guides
    • Integration API routes
    • Operations Manager search APIs
    • Search API
    • URL query parameters
    • Use query parameters in API requests
  • Reference
        • POSTCreate a service account in the database
        • DELDelete a service account in the database
        • GETGet service accounts from the database
        • PATCHRegenerate client secret
        • POSTRetrieve a JWT from a client's credentials
        • PATCHUpdate a service account in the database
LogoLogo
Open sourceSupportFAQsDocs Home
ReferenceOAuth

Get service accounts from the database

GET
http://localhost:3000/oauth/serviceAccounts
GET
/oauth/serviceAccounts
$curl http://localhost:3000/oauth/serviceAccounts \
> -u "<username>:<password>"
1{
2 "results": [
3 {
4 "name": "ExampleName",
5 "description": "This is a service account for the external Example system",
6 "client_id": "5cb7b531d06cceb89fd21b1c",
7 "_meta": {
8 "created": "2018-08-02T15:56:12.912Z",
9 "createdBy": {
10 "_id": "5cb7b531d06cceb89fd21b1c",
11 "username": "username@itential"
12 },
13 "updated": "2018-08-02T15:56:12.912Z",
14 "updatedBy": {
15 "_id": "5cb7b531d06cceb89fd21b1c",
16 "username": "username@itential"
17 },
18 "secretUpdated": "2018-08-02T15:56:12.912Z"
19 }
20 }
21 ],
22 "total": 1
23}
Returns service accounts from the database.
Was this page helpful?
Previous

Regenerate client secret

Next
Built with

Authentication

AuthorizationBasic

Basic authentication of the form Basic <base64(username:password)>.

Query parameters

multiContainsobjectOptional
multiContains
multiEqualsobjectOptional
multiEquals
multiStartsWithobjectOptional
multiStartsWith
skipintegerOptional>=0Defaults to 0
skip
limitintegerOptional>=0Defaults to 25
limit
sortenumOptionalDefaults to name
sort
Allowed values:
orderenumOptionalDefaults to 1
order
Allowed values:

Response

The service accounts matching the specified query.
resultslist of objects
totalinteger>=0
The total number of documents

Errors

500
Internal Server Error