curl --request GET \
--url https://api.planetscale.com/v1/organizations/{organization}/databases/{database}/branches/{branch}/bouncers \
--header 'Authorization: <api-key>'{
"current_page": 123,
"next_page": 123,
"next_page_url": "<string>",
"prev_page": 123,
"prev_page_url": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"sku": {
"name": "<string>",
"display_name": "<string>",
"cpu": "<string>",
"ram": 123,
"sort_order": 123
},
"target": "primary",
"replicas_per_cell": 123,
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>",
"actor": {
"id": "<string>",
"display_name": "<string>",
"avatar_url": "<string>"
},
"branch": {
"id": "<string>",
"name": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"parameters": [
{
"id": "<string>",
"namespace": "pgbouncer",
"name": "<string>",
"display_name": "<string>",
"category": "<string>",
"description": "<string>",
"parameter_type": "array",
"default_value": "<string>",
"value": "<string>",
"required": true,
"created_at": "<string>",
"updated_at": "<string>",
"restart": true,
"max": 123,
"min": 123,
"step": 123,
"url": "<string>",
"options": [
"<string>"
],
"actor": {
"id": "<string>",
"display_name": "<string>",
"avatar_url": "<string>"
}
}
]
}
]
}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
read_branch, delete_branch, create_branch, connect_production_branch, connect_branch
OAuth Scopes
| Resource | Scopes |
|---|---|
| Organization | read_branches |
| Database | read_branches |
| Branch | read_branch |
curl --request GET \
--url https://api.planetscale.com/v1/organizations/{organization}/databases/{database}/branches/{branch}/bouncers \
--header 'Authorization: <api-key>'{
"current_page": 123,
"next_page": 123,
"next_page_url": "<string>",
"prev_page": 123,
"prev_page_url": "<string>",
"data": [
{
"id": "<string>",
"name": "<string>",
"sku": {
"name": "<string>",
"display_name": "<string>",
"cpu": "<string>",
"ram": 123,
"sort_order": 123
},
"target": "primary",
"replicas_per_cell": 123,
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>",
"actor": {
"id": "<string>",
"display_name": "<string>",
"avatar_url": "<string>"
},
"branch": {
"id": "<string>",
"name": "<string>",
"created_at": "<string>",
"updated_at": "<string>",
"deleted_at": "<string>"
},
"parameters": [
{
"id": "<string>",
"namespace": "pgbouncer",
"name": "<string>",
"display_name": "<string>",
"category": "<string>",
"description": "<string>",
"parameter_type": "array",
"default_value": "<string>",
"value": "<string>",
"required": true,
"created_at": "<string>",
"updated_at": "<string>",
"restart": true,
"max": 123,
"min": 123,
"step": 123,
"url": "<string>",
"options": [
"<string>"
],
"actor": {
"id": "<string>",
"display_name": "<string>",
"avatar_url": "<string>"
}
}
]
}
]
}The name of the organization that owns this resource
The name of the database that owns this resource
The name of the branch that owns this resource
If provided, specifies the page offset of returned results
If provided, specifies the number of returned results
Returns bouncers
The current page number
The next page number
The next page of results
The previous page number
The previous page of results
Show child attributes
The ID of the bouncer
The name of the bouncer
Show child attributes
The instance type the bouncer targets
primary, replica, replica_az_affinity The count of replicas in each cell
When the bouncer was created
When the bouncer was updated
When the bouncer was deleted
Show child attributes
The ID for the resource
The name for the resource
When the resource was created
When the resource was last updated
When the resource was deleted, if deleted
Show child attributes
The ID of the parameter
The namespace of the parameter
pgbouncer The name of the parameter
The display name of the parameter
The category of the parameter
The description of the parameter
The type of the parameter
array, boolean, bytes, float, integer, internal, seconds, select, string, time The default value of the parameter
The configured value of the parameter
Whether the parameter is required
When the parameter was created
When the parameter was last updated
True if processes require a server restart on change
The maximum value of the parameter
The minimum value of the parameter
The step change of the parameter
The URL of the parameter
Valid options for the parameter value
Was this page helpful?