Skip to content

List all discovered database accounts

Request

OPA roles:
  • resource_admin

Lists all discovered database accounts for the specified database connection

Security
bearerAuth
Path
team_namestringrequired

The name of your team

database_connection_idstring, (regex)(UUID)^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-5][0-9a-fA-...read-onlyrequired

The UUID of the database connection

Example:a747a818-a4c4-4446-8a87-704216495a08
Query
containsstring

Only returns results that include the specified value in account name.

countinteger, (int32)

The number of objects per page

prevboolean

The direction of paging

offsetstring

The offset value for pagination. The rel="next" and rel="prev" Link headers define the offset for subsequent or previous pages.

descendingboolean

If true, results are listed in descending order. By default, results are listed in ascending order.

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/connections/databases/a747a818-a4c4-4446-8a87-704216495a08/accounts?contains=string&count=0&prev=true&offset=string&descending=true' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

Success

Bodyapplication/json
listArray of objects(DatabaseAccountResponse)

Array of discovered database accounts

Response
{ "list": [ { … }, { … } ] }