A service token or OAuth token must have at least one of the following access or scopes in order to use this API endpoint:
Service Token Accesses
write_database
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | write_databases |
| Database | write_database |
The access token received from the authorization server in the OAuth 2.0 flow.
Organization name slug from list_organizations. Example: acme.
Database name slug from list_databases. Example: app-db.
Branch name from list_branches. Example: main.
The name of the bouncer
The bouncer size SKU name (e.g., 'PGB_5', 'PGB_10', 'PGB_20', 'PGB_40', 'PGB_80', 'PGB_160'). Defaults to 'PGB_5'.
The number of PgBouncers per availability zone. Defaults to 1.
Bouncer configuration parameters nested by namespace (e.g., {"pgbouncer": {"default_pool_size": "100"}}). Use the 'List cluster parameters' endpoint to retrieve available parameters. Only parameters with namespace 'pgbouncer' can be updated.
Returns bouncer resize request
The ID of the bouncer resize
The state of the bouncer resize
pending, resizing, canceled, completed The number of replicas per cell for the bouncer after the resize
The bouncer parameters
The number of replicas per cell for the bouncer before the resize
The previous bouncer parameters
The time the bouncer resize started
The time the bouncer resize completed
The time the bouncer resize was created
The time the bouncer resize was last updated