SDK reference / Models / Databases

PostgresCluster

Kind: class

Namespace: Egulu.Sdk.Models.Databases

A managed PostgreSQL 18 cluster in one location of a project.

Properties

NameTypeJSON nameDescription
AnnotationsModels.Databases.PostgresCluster_annotations?annotationsAt most 256 KiB in all; never policy input.
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
DisplayNamestring?displayNameUp to 63 characters.
EnabledExtensionsList<string>?enabledExtensionsCurated PostgreSQL extensions enabled on the cluster (allowlist: pgvector, postgis, uuid-ossp, pg_stat_statements, citext, pgcrypto, btree_gist, pg_trgm).
Endpointstring?endpointIn-cell PostgreSQL endpoint when provisioned.
Etagstring?etag"{generation}"; send it back in If-Match.
HighAvailabilitybool?highAvailabilityThe HA tier (DB-7, STANDARD only): the primary and two replicas, quorum synchronous replication (ANY 1, data durability required), a failover that loses no acknowledged write. It bills three servers.
LabelsModels.Databases.PostgresCluster_labels?labelsAt most 64.
MaintenanceWindowModels.Databases.PostgresMaintenanceWindow?maintenanceWindowThe window planned restarts wait for. Without one the platform restarts at once when a change needs it.
MaxClientConnectionsint?maxClientConnectionsClients the pooler takes at once (PgBouncer max_client_conn), 10 to 5000; 250 when not set.
MaxConnectionsint?maxConnectionsMaximum concurrent client connections enforced by the cluster pooler/router (5 for FREE, 50 for DEV, 200 for STANDARD).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
ParametersModels.Databases.PostgresCluster_parameters?parametersEngine parameters set on the cluster, from an allow-list (see `:listParameters`); a value is text, as in postgresql.conf.
PodEnvironmentModels.Databases.PostgresCluster_podEnvironment?podEnvironmentOptional non-secret pod environment variables; static password keys (PGPASSWORD, POSTGRES_PASSWORD, etc.) are rejected with 400 invalid-argument (ADR-0505).
PoolModeModels.Databases.PostgresCluster_poolMode?poolModeThe pooler's mode when one runs.
PoolSizeint?poolSizeServer connections the pooler holds per database and role (PgBouncer default_pool_size), 1 to 100; 25 when not set.
PoolerEnabledbool?poolerEnabledWhether a PgBouncer pooler fronts the cluster (STANDARD only).
PoolerEndpointstring?poolerEndpointThe pooler's own address when one runs (the main address reaches the primary directly).
PostgresVersionint?postgresVersionMajor PostgreSQL version (18).
PublicAddressstring?publicAddressThe public address when the public endpoint is on and ready.
PublicEndpointModels.Databases.PostgresPublicEndpoint?publicEndpointThe public endpoint choice; off unless the owner turns it on.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
ReadOnlyEndpointstring?readOnlyEndpointRead-only address for the replicas when any run.
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
ReplicaLagAlertSecondsint?replicaLagAlertSecondsThe replica lag, in seconds, above which the console raises an alert, 1 to 3600; 30 when not set.
Replicasint?replicasRead replicas besides the primary, 0 to 2 (0 on FREE, 0 to 1 on DEV).
RestartRequiredbool?restartRequiredTrue when a parameter or size change waits for a restart (inside the maintenance window when one is set).
RestoreWindowEarliestDateTimeOffset?restoreWindowEarliestEarliest restorable WAL timestamp (PITR window start, ADR-0504).
RestoreWindowLatestDateTimeOffset?restoreWindowLatestLatest restorable WAL timestamp flushed to object storage (PITR window end, ADR-0504).
StateModels.Databases.PostgresCluster_state?stateLifecycle state: PROVISIONING, READY, SLEEPING, HIBERNATED_CAP, or DELETING.
StorageGibint?storageGibStorage in GiB: grows, never shrinks. Defaults to the tier's size (FREE 1, DEV 5, STANDARD 20).
SuspendReasonstring?suspendReasonWhy the cluster is suspended (for example spend-cap when HIBERNATED_CAP).
TierModels.Databases.PostgresCluster_tier?tierFREE (SLEEPING initial state, maxConnections=5, 5-min statement-idle auto-sleep), DEV (maxConnections=50), or STANDARD (maxConnections=200).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property