Skip to content

List all database account rules

Request

OPA roles:
  • resource_admin

Lists all database account rules 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
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.

containsstring, [ 1 .. 255 ] characters

Filters for database account rules where the name contains the search string

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

Responses

Success

Bodyapplication/json
listArray of objects(DatabaseAccountRuleResponse)

List of database account rules

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