Skip to content

Retrieve database checkout settings for a project

Request

OPA roles:
  • resource_admin
  • security_admin
  • delegated_resource_admin
  • delegated_security_admin

Retrieves the checkout settings configured for a resource group project that's specific to the database account

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

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

Responses

OK

Bodyapplication/json
checkout_duration_in_secondsinteger, (int32), [ 900 .. 604800 ]

The duration in seconds for the checkout. If the checkout is enabled, the duration is the maximum time a user can access the resource before the checkout expires.

checkout_requiredbooleanrequired

Indicates whether a checkout is mandatory for accessing resources within the project. If true, checkout is enforced by default for all applicable resources. If false, checkout is not required, and resources are accessible without it.

exclude_listArray of strings

If provided, only the account identifiers listed are excluded from the checkout requirement. This list is only considered if checkout_required is set to true. Only one of include_list and exclude_list can be specified in a request since they are mutually exclusive.

include_listArray of strings

If provided, only the account identifiers listed are required to perform a checkout to access the resource. This list is only considered if checkout_required is set to true. Only one of include_list and exclude_list can be specified in a request since they are mutually exclusive.

Response
{ "checkout_duration_in_seconds": 900, "checkout_required": true, "exclude_list": [ "string" ], "include_list": [ "string" ] }