Update a dedicated read replica
Authorization
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 |
Authorizations
The access token received from the authorization server in the OAuth 2.0 flow.
- Authorization URL
- https://app.planetscale.com/oauth/authorize
- Token URL
- https://auth.planetscale.com/oauth/token
Path Parameters
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 dedicated read replica
Body
Response
Returns the updated dedicated read replica
The ID of the dedicated read replica
The name of the dedicated read replica
The state of the dedicated read replica: pending, ready, or deleting
The number of instances serving reads in this dedicated read replica
The SKU representing the cluster size of the dedicated read replica
The SKU representing the cluster size of the dedicated read replica, for display
The database connection host for the dedicated read replica
The private database connection host for the dedicated read replica
The service name to set up private connectivity for the dedicated read replica
The minimum storage size in bytes
The maximum storage size in bytes
Whether storage autoscaling is enabled
The storage type
gp3, io2, pd_ssd, hyperdisk_balanced, premium_v2_lrs The storage IOPS
The storage throughput in MiB/s
When volume modifications will be allowed again
When the dedicated read replica was created
When the dedicated read replica was last updated
When the dedicated read replica was ready to serve queries
Whether or not the dedicated read replica is ready to serve queries

