Starts the specified PostgreSQL compute endpoint in the specified project of
a Neon Database server if necessary and waits until it is ready (state "active"
).
Usage
wake_endpoint(
endpoint_id = funky::config_val("endpoint_id"),
project_id = funky::config_val("project_id"),
origin = funky::config_val("origin"),
api_key = funky::config_val("api_key"),
max_tries = 3L
)
Arguments
- endpoint_id
character(1)
Neon compute endpoint identifier.- project_id
character(1)
Neon project identifier.- origin
character(1)
Neon server origin.- api_key
character(1)
API key with sufficient access to the Neonproject_id
.- max_tries
Maximum number of request attempts in case of an HTTP error. An integerish scalar. Retries are performed using exponential backoff and jitter, see
httr2::req_retry()
for details.
See also
Other functions to manage Neon's compute endpoints:
endpoint()
,
endpoints()
,
restart_endpoint()
,
start_endpoint()
,
suspend_endpoint()