- Retrieve a database account in a resource group project
- resource_admin
- security_admin
- delegated_resource_admin
- delegated_security_admin
Retrieves detailed information about a database account in a resource group project including:
- Account and connection information
- Rotation history (password changes, success/failure counts)
- Checkout status and history
- Next scheduled rotation time
- Resource group and project assignment
- Production serverhttps://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_groups/{resource_group_id}/projects/{project_id}/database_accounts/{database_account_id}
curl -i -X GET \
'https://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_groups/{resource_group_id}/projects/{project_id}/database_accounts/a747a818-a4c4-4446-8a87-704216495a08' \
-H 'Authorization: Bearer <YOUR_JWT_HERE>'OK
The authentication database the account belongs to. Present only for MongoDB integrations.
A UTC timestamp indicating when the database account was discovered
The UUID of the database account
The Oracle service name the account authenticates against. Present only for Oracle integrations.
A UTC timestamp indicating when the database account was last updated
The error message metadata reported during the most recent failure to change the account password
A timestamp indicating when the remote system last reported a failure to change to the account password
A timestamp reported from the remote system indicating when the remote system last failed to change the account password
The type of error message reported during the most recent failure to change the account password
A timestamp indicating when OPA last reported a change to the account password
A timestamp reported from the remote system indicating when the remote system last changed the account password
The number of times an account's password change resulted in failure
The number of times an account's password change failed after the last successful attempt
The number of times an account's password was successfully changed
A UTC timestamp that indicates when the database account was discovered and managed
Describes the detailed status of a service account
| Enum Value | Description |
|---|---|
| PENDING | The account is being created |
| CREATION_FAILED | The account can't be created |
| STAGED | The account is in the Okta Privileged Access resource assignment area |
| ROTATING | The account is assigned to a project in Okta Privileged Access. Credentials are currently being synced using Okta Lifecycle Management. |
| ROTATED | The account is assigned to a project in Okta Privileged Access. Password rotations are fulfilled by Okta Lifecycle Management. |
| ROTATION_FAILED | The account is assigned to a project in Okta Privileged Access. An error occurred while using Okta Lifecycle Management to rotate the password. |
| VAULTED | The account is assigned to a project in Okta Privileged Access. A manually managed password is assigned to the account. |
| MISSING_PASSWORD | The account is assigned to a project in Okta Privileged Access. A password isn't assigned to the account. |
| UNMANAGED | The account is assigned to a project in Okta Privileged Access. Initial password sync hasn't been attempted. |
| ROTATION_PENDING | The account is assigned to a project in Okta Privileged Access. A password rotation has been requested but has not yet started. |
| AVAILABLE | The account is assigned to a project in Okta Privileged Access. An admin has stored the password that is already in use on the account, so the account is ready for use without a rotation. |
The database account's exclusive checkout status
| Enum Value | Description |
|---|---|
Unknown lease status. | |
| none | No active lease exists for this resource. The resource is available. |
| checked_out | The resource is currently checked out by a user. |
| in_progress_checkin | A check-in operation is in progress |
| checkin_complete | The check-in has completed successfully. The resource is available. |
| checkin_failed | The check-in operation failed. |
The username of the user who last accessed the database account through exclusive checkout
A UTC timestamp that indicates when a user's exclusive access to the database account expires
A UTC timestamp that indicates when the next password rotation is scheduled
A description that indicates why the next password rotation is scheduled
{ "id": "d070d14b-d7f7-4779-bd1a-a37549718d3b", "account_name": "admin_user", "resource_group": { "id": "e181e25c-e8f8-4880-ae2b-b48650829e4c", "name": "Production Databases" }, "project": { "id": "f292f36d-f9f9-4991-af3c-c59761930f5d", "name": "Engineering" }, "created_at": "2024-01-15T10:30:00Z", "updated_at": "2024-01-15T10:30:00Z", "database_connection": { "id": "a747a818-a4c4-4446-8a87-704216495a08", "name": "Production PostgreSQL" }, "host": "db.example.com", "port": 5432, "brought_under_management_at": "2024-01-01T00:00:00Z", "account_status_detail": "ROTATED", "resource_status": "checked_out", "last_checked_out_by": "user@example.com", "checkout_expiry_at": "2024-01-15T12:00:00Z", "next_scheduled_password_rotation": "2024-01-22T10:30:00Z", "next_scheduled_password_rotation_reason": "periodic_rotation" }