Services
Manage services and their associated actions.
List All Services
Create a Service
Get a Service
Delete a Service
Start a Service
Stop a Service
Attach Service to VPC
Detach Service from VPC
Resize a Service
Enable Connection Pooler for a Service
Disable Connection Pooler for a Service
Fork a Service
Update Service Password
Set Environment for a Service
Get service logs
Change HA configuration for a Service
Rename a Service
Enable Data Tiering for a Service
ModelsExpand Collapse
Service object { created, name, project_id, 16 more } A database service and its current configuration.
A database service and its current configuration.
service_type: "TIMESCALEDB" or "POSTGRES" or "VECTOR"The type of the service:
- TIMESCALEDB: a TimescaleDB service (PostgreSQL with the TimescaleDB extension)
- POSTGRES: a standard PostgreSQL service
VECTOR is deprecated and should not be used.
The type of the service:
- TIMESCALEDB: a TimescaleDB service (PostgreSQL with the TimescaleDB extension)
- POSTGRES: a standard PostgreSQL service
VECTOR is deprecated and should not be used.
status: "QUEUED" or "DELETING" or "CONFIGURING" or 8 moreThe current deployment status of the service:
- QUEUED: the create request has been submitted and is queued
- DELETING: the service is being deleted
- CONFIGURING: the service is up but still completing configuration
- READY: fully configured and serving traffic
- DELETED: the service has been deleted
- UNSTABLE: the service was ready but is not currently reachable
- PAUSING: the service is being paused
- PAUSED: the service is paused (temporarily shut down)
- RESUMING: the service is resuming after being paused
- UPGRADING: the service is being updated
OPTIMIZING is deprecated and should not be used.
The current deployment status of the service:
- QUEUED: the create request has been submitted and is queued
- DELETING: the service is being deleted
- CONFIGURING: the service is up but still completing configuration
- READY: fully configured and serving traffic
- DELETED: the service has been deleted
- UNSTABLE: the service was ready but is not currently reachable
- PAUSING: the service is being paused
- PAUSED: the service is paused (temporarily shut down)
- RESUMING: the service is resuming after being paused
- UPGRADING: the service is being updated
OPTIMIZING is deprecated and should not be used.
forked_from: optional object { is_standby, project_id, service_id } The service this service was forked from.
The service this service was forked from.
ha_replicas: optional object { replica_count, sync_replica_count } High-availability replica configuration for a service.
High-availability replica configuration for a service.
metrics: optional object { memory_mb, milli_cpu, storage_mb } Resource usage metrics for the service.
Resource usage metrics for the service.
The read replica sets attached to the service.
The read replica sets attached to the service.
status: "creating" or "active" or "resizing" or 2 moreThe current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
The current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
vpc_endpoint: optional object { host, port, vpc_id } VPC endpoint configuration for connecting to a service over VPC peering.
VPC endpoint configuration for connecting to a service over VPC peering.
service_type: "TIMESCALEDB" or "POSTGRES" or "VECTOR"The type of the service:
- TIMESCALEDB: a TimescaleDB service (PostgreSQL with the TimescaleDB extension)
- POSTGRES: a standard PostgreSQL service
VECTOR is deprecated and should not be used.
The type of the service:
- TIMESCALEDB: a TimescaleDB service (PostgreSQL with the TimescaleDB extension)
- POSTGRES: a standard PostgreSQL service
VECTOR is deprecated and should not be used.
status: "QUEUED" or "DELETING" or "CONFIGURING" or 8 moreThe current deployment status of the service:
- QUEUED: the create request has been submitted and is queued
- DELETING: the service is being deleted
- CONFIGURING: the service is up but still completing configuration
- READY: fully configured and serving traffic
- DELETED: the service has been deleted
- UNSTABLE: the service was ready but is not currently reachable
- PAUSING: the service is being paused
- PAUSED: the service is paused (temporarily shut down)
- RESUMING: the service is resuming after being paused
- UPGRADING: the service is being updated
OPTIMIZING is deprecated and should not be used.
The current deployment status of the service:
- QUEUED: the create request has been submitted and is queued
- DELETING: the service is being deleted
- CONFIGURING: the service is up but still completing configuration
- READY: fully configured and serving traffic
- DELETED: the service has been deleted
- UNSTABLE: the service was ready but is not currently reachable
- PAUSING: the service is being paused
- PAUSED: the service is paused (temporarily shut down)
- RESUMING: the service is resuming after being paused
- UPGRADING: the service is being updated
OPTIMIZING is deprecated and should not be used.
forked_from: optional object { is_standby, project_id, service_id } The service this service was forked from.
The service this service was forked from.
ha_replicas: optional object { replica_count, sync_replica_count } High-availability replica configuration for a service.
High-availability replica configuration for a service.
metrics: optional object { memory_mb, milli_cpu, storage_mb } Resource usage metrics for the service.
Resource usage metrics for the service.
The read replica sets attached to the service.
The read replica sets attached to the service.
status: "creating" or "active" or "resizing" or 2 moreThe current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
The current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
vpc_endpoint: optional object { host, port, vpc_id } VPC endpoint configuration for connecting to a service over VPC peering.
VPC endpoint configuration for connecting to a service over VPC peering.
ServiceLogsResponse object { logs, entries, last_cursor, lastCursor } The logs for a service.
The logs for a service.
entries: optional array of object { message, severity, timestamp } Structured log entries with timestamp and severity metadata.
Entries are in the same order as logs and can be used in place of it
by callers that need structured data.
Structured log entries with timestamp and severity metadata. Entries are in the same order as logs and can be used in place of it by callers that need structured data.
ServicesReplica Sets
Manage read replica sets and their associated actions.
Get Read Replica Sets
Create a Read Replica Set
Delete a Read Replica Set
Resize a Read Replica Set
Enable Connection Pooler for a Read Replica
Disable Connection Pooler for a Read Replica
Set Environment for a Read Replica
ModelsExpand Collapse
ReadReplicaSet object { id, cpu_millis, memory_gbs, 7 more } A set of read replicas for a service.
A set of read replicas for a service.
status: "creating" or "active" or "resizing" or 2 moreThe current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
The current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
ReplicaSetRetrieveReplicaSetsResponse = array of ReadReplicaSet { id, cpu_millis, memory_gbs, 7 more }
status: "creating" or "active" or "resizing" or 2 moreThe current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
The current status of the read replica set:
- creating: the replica set is being provisioned
- active: the replica set is provisioned and serving traffic
- resizing: the replica set is being resized
- deleting: the replica set is being deleted
- error: the replica set is in an error state
ServicesMetrics
Manage services and their associated actions.
List available metric series
Get a metric series
ServicesMetricsDetails
Manage services and their associated actions.
Get details about a metric
ModelsExpand Collapse
DetailRetrieveResponse object { default_agg, description, labels, 2 more } Descriptive metadata for a metric series — what it is, not its
data. Some series don’t have full metadata yet: type and
default_agg may be null and description/labels may be empty, but
every field below is always present in the response.
Descriptive metadata for a metric series — what it is, not its data. Some series don’t have full metadata yet: type and default_agg may be null and description/labels may be empty, but every field below is always present in the response.
default_agg: "RATE" or "INCREASE" or "SUM" or 10 moreAggregation function applied to raw/pre-aggregated samples when
collapsing them into one value per output bucket.
RATE: counter-reset-aware per-second rate of change.
INCREASE: counter-reset-aware total increase over the bucket.
SUM: sum of samples in the bucket.
AVG: mean of samples in the bucket.
MIN: minimum sample in the bucket.
MAX: maximum sample in the bucket.
MIN_TOTAL / MAX_TOTAL: minimum/maximum of the bucket’s samples
added together across every series first — for a metric with
labels (e.g. one series per database) where the combined total,
not any single series’ own extremum, is the meaningful quantity
(e.g. peak of total connections across all databases). MIN/MAX
give the single most extreme individual series instead, which is
the right answer when the metric is itself an extremum or a
timestamp (e.g. longest-running transaction).
COUNT: number of samples in the bucket.
P50 / P90 / P99: approximate percentiles.
LAST: the most recent sample in the bucket.
Aggregation function applied to raw/pre-aggregated samples when collapsing them into one value per output bucket.
RATE: counter-reset-aware per-second rate of change.INCREASE: counter-reset-aware total increase over the bucket.SUM: sum of samples in the bucket.AVG: mean of samples in the bucket.MIN: minimum sample in the bucket.MAX: maximum sample in the bucket.MIN_TOTAL/MAX_TOTAL: minimum/maximum of the bucket’s samples added together across every series first — for a metric with labels (e.g. one series per database) where the combined total, not any single series’ own extremum, is the meaningful quantity (e.g. peak of total connections across all databases).MIN/MAXgive the single most extreme individual series instead, which is the right answer when the metric is itself an extremum or a timestamp (e.g. longest-running transaction).COUNT: number of samples in the bucket.P50/P90/P99: approximate percentiles.LAST: the most recent sample in the bucket.
labels: array of object { description, name } All labels this metric can be filtered or grouped by: its own
labels (e.g. datname on pg_stat_database_*) plus the
region/role/ordinal labels most metrics also carry. Some
metrics only attach a subset of those — e.g.
pgbouncer-sourced metrics only get region, not role/ordinal.
All labels this metric can be filtered or grouped by: its own labels (e.g. datname on pg_stat_database_*) plus the region/role/ordinal labels most metrics also carry. Some metrics only attach a subset of those — e.g. pgbouncer-sourced metrics only get region, not role/ordinal.
type: "GAUGE" or "COUNTER" or "HISTOGRAM" or "SUMMARY"The shape of a metric’s underlying data.
GAUGE: a value that can go up or down (e.g. a current connection count).
COUNTER: a value that only increases until it resets (e.g. total queries run).
HISTOGRAM: a distribution of observed values grouped into ranges.
SUMMARY: a distribution of observed values summarized by quantile.
The shape of a metric’s underlying data.
GAUGE: a value that can go up or down (e.g. a current connection count).COUNTER: a value that only increases until it resets (e.g. total queries run).HISTOGRAM: a distribution of observed values grouped into ranges.SUMMARY: a distribution of observed values summarized by quantile.