Suspends the specified PostgreSQL compute endpoint in the specified project of a Neon Database
server via the POST /projects/{project_id}/endpoints/{endpoint_id}/suspend API endpoint.
Usage
suspend_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(),
wake_endpoint()