Skip to content

Retrieve a server account

Request

OPA roles:
  • resource_admin
  • delegated_resource_admin

Retrieves a server account from a project in a resource group

Security
bearerAuth
Path
team_namestringrequired

The name of your team

resource_group_idstringrequired

The UUID of a resource group

project_idstringrequired

The UUID of a project

server_account_idstringrequired

The UUID of a server account

curl -i -X GET \
  'https://{org_name}.pam.okta.com/v1/teams/{team_name}/resource_groups/{resource_group_id}/projects/{project_id}/server_accounts/{server_account_id}' \
  -H 'Authorization: Bearer <YOUR_JWT_HERE>'

Responses

OK

Bodyapplication/json
itemsobject(ServerAccounts)
Response
{ "items": { "created_at": "2019-08-24T14:15:22Z", "deleted_at": "2019-08-24T14:15:22Z", "hostname": "string", "id": "string", "last_password_change_error_metadata": "string", "last_password_change_error_report_timestamp": "2019-08-24T14:15:22Z", "last_password_change_error_system_timestamp": "2019-08-24T14:15:22Z", "last_password_change_error_type": "string", "last_password_change_success_report_timestamp": "2019-08-24T14:15:22Z", "last_password_change_system_timestamp": "2019-08-24T14:15:22Z", "login": "string", "managed": true, "project_id": "string", "secret_sync_status": "SYNCED", "server_id": "string", "team_id": "string" } }