Skip to content

List credential versions for a database account

Request

OPA roles:
  • end_user

Lists the credential versions for a database account that the end user has access to

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
database_account_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 account

Example:a747a818-a4c4-4446-8a87-704216495a08
Query
countinteger, (int32)

The number of objects per page

descendingboolean

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

offsetstring

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

prevboolean

The direction of paging

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

Responses

OK

Bodyapplication/json
listArray of objects(CredentialVersion)
Response
{ "list": [ { … }, { … }, { … }, { … } ] }