SDK reference / Models / Databases
PostgresCluster
Kind: class
Namespace: Egulu.Sdk.Models.Databases
A managed PostgreSQL 18 cluster in one location of a project.
Properties
| Name | Type | JSON name | Description |
|---|---|---|---|
Annotations | Models.Databases.PostgresCluster_annotations? | annotations | At most 256 KiB in all; never policy input. |
CreateTime | DateTimeOffset? | createTime | The createTime property |
DeleteTime | DateTimeOffset? | deleteTime | The deleteTime property |
DisplayName | string? | displayName | Up to 63 characters. |
EnabledExtensions | List<string>? | enabledExtensions | Curated PostgreSQL extensions enabled on the cluster (allowlist: pgvector, postgis, uuid-ossp, pg_stat_statements, citext, pgcrypto, btree_gist, pg_trgm). |
Endpoint | string? | endpoint | In-cell PostgreSQL endpoint when provisioned. |
Etag | string? | etag | "{generation}"; send it back in If-Match. |
HighAvailability | bool? | highAvailability | The 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. |
Labels | Models.Databases.PostgresCluster_labels? | labels | At most 64. |
MaintenanceWindow | Models.Databases.PostgresMaintenanceWindow? | maintenanceWindow | The window planned restarts wait for. Without one the platform restarts at once when a change needs it. |
MaxClientConnections | int? | maxClientConnections | Clients the pooler takes at once (PgBouncer max_client_conn), 10 to 5000; 250 when not set. |
MaxConnections | int? | maxConnections | Maximum concurrent client connections enforced by the cluster pooler/router (5 for FREE, 50 for DEV, 200 for STANDARD). |
Name | string? | name | The resource name, for example projects/p/locations/l/instances/i. |
Parameters | Models.Databases.PostgresCluster_parameters? | parameters | Engine parameters set on the cluster, from an allow-list (see `:listParameters`); a value is text, as in postgresql.conf. |
PodEnvironment | Models.Databases.PostgresCluster_podEnvironment? | podEnvironment | Optional non-secret pod environment variables; static password keys (PGPASSWORD, POSTGRES_PASSWORD, etc.) are rejected with 400 invalid-argument (ADR-0505). |
PoolMode | Models.Databases.PostgresCluster_poolMode? | poolMode | The pooler's mode when one runs. |
PoolSize | int? | poolSize | Server connections the pooler holds per database and role (PgBouncer default_pool_size), 1 to 100; 25 when not set. |
PoolerEnabled | bool? | poolerEnabled | Whether a PgBouncer pooler fronts the cluster (STANDARD only). |
PoolerEndpoint | string? | poolerEndpoint | The pooler's own address when one runs (the main address reaches the primary directly). |
PostgresVersion | int? | postgresVersion | Major PostgreSQL version (18). |
PublicAddress | string? | publicAddress | The public address when the public endpoint is on and ready. |
PublicEndpoint | Models.Databases.PostgresPublicEndpoint? | publicEndpoint | The public endpoint choice; off unless the owner turns it on. |
PurgeTime | DateTimeOffset? | purgeTime | The purgeTime property |
ReadOnlyEndpoint | string? | readOnlyEndpoint | Read-only address for the replicas when any run. |
Reconciling | bool? | reconciling | True while the platform works toward the spec. |
ReplicaLagAlertSeconds | int? | replicaLagAlertSeconds | The replica lag, in seconds, above which the console raises an alert, 1 to 3600; 30 when not set. |
Replicas | int? | replicas | Read replicas besides the primary, 0 to 2 (0 on FREE, 0 to 1 on DEV). |
RestartRequired | bool? | restartRequired | True when a parameter or size change waits for a restart (inside the maintenance window when one is set). |
RestoreWindowEarliest | DateTimeOffset? | restoreWindowEarliest | Earliest restorable WAL timestamp (PITR window start, ADR-0504). |
RestoreWindowLatest | DateTimeOffset? | restoreWindowLatest | Latest restorable WAL timestamp flushed to object storage (PITR window end, ADR-0504). |
State | Models.Databases.PostgresCluster_state? | state | Lifecycle state: PROVISIONING, READY, SLEEPING, HIBERNATED_CAP, or DELETING. |
StorageGib | int? | storageGib | Storage in GiB: grows, never shrinks. Defaults to the tier's size (FREE 1, DEV 5, STANDARD 20). |
SuspendReason | string? | suspendReason | Why the cluster is suspended (for example spend-cap when HIBERNATED_CAP). |
Tier | Models.Databases.PostgresCluster_tier? | tier | FREE (SLEEPING initial state, maxConnections=5, 5-min statement-idle auto-sleep), DEV (maxConnections=50), or STANDARD (maxConnections=200). |
Uid | string? | uid | UUIDv7, never reused. |
UpdateTime | DateTimeOffset? | updateTime | The updateTime property |