@swamp/gcp/alloydb
v2026.04.23.1
Google Cloud alloydb infrastructure models
Repository
https://github.com/systeminit/swamp-extensions
Labels
gcpgoogle-cloudalloydbcloudinfrastructure
Contents
Quality score
Verified by SwampHow well-documented and verifiable this extension is.
Grade A
- Has README or module doc2/2earned
- README has a code example1/1earned
- README is substantive1/1earned
- Most symbols documented1/1earned
- No slow types1/1earned
- Has description1/1earned
- At least one platform tag (or universal)1/1earned
- Two or more platform tags (or universal)1/1earned
- License declared1/1earned
- Verified public repository2/2earned
Install
$ swamp extension pull @swamp/gcp/alloydbclusters_instances.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| activationPolicy? | enum | Optional. Specifies whether an instance needs to spin up. Once the instance is active, the activation policy can be updated to the `NEVER` to stop the instance. Likewise, the activation policy can be updated to `ALWAYS` to start the instance. There are restrictions around when an instance can/cannot be activated (for example, a read pool instance should be stopped before stopping primary etc.). Please refer to the API documentation for more details. |
| annotations? | record | Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 |
| availabilityType? | enum | Availability type of an Instance. If empty, defaults to REGIONAL for primary instances. For read pools, availability_type is always UNSPECIFIED. Instances in the read pools are evenly distributed across available zones within the region (i.e. read pools with more than one node will have a node in at least two zones). |
| clientConnectionConfig? | object | Optional. Configuration to enforce connectors only (ex: AuthProxy) connections to the database. |
| connectionPoolConfig? | object | Optional. Whether to enable Managed Connection Pool (MCP). |
| dataApiAccess? | enum | Optional. Controls whether the Data API is enabled for this instance. When enabled, this allows authorized users to connect to the instance from the public internet using the `executeSql` API, even for private IP instances. If this is not specified, the data API is enabled by default for Google internal services like AlloyDB Studio. Disable it explicitly to disallow Google internal services as well. |
| databaseFlags? | record | Database flags. Set at the instance level. They are copied from the primary instance on secondary instance creation. Flags that have restrictions default to the value at primary instance on read instances during creation. Read instances can set new flags or override existing flags that are relevant for reads, for example, for enabling columnar cache on a read instance. Flags set on read instance might or might not be present on the primary instance. This is a list of "key": "value" pairs. "key": The name of the flag. These flags are passed at instance setup time, so include both server options and system variables for Postgres. Flags are specified with underscores, not hyphens. "value": The value of the flag. Booleans are set to **on** for true and **off** for false. This field must be omitted if the flag doesn\'t take a value. |
| displayName? | string | User-settable and human-readable display name for the Instance. |
| gceZone? | string | The Compute Engine zone that the instance should serve from, per https://cloud.google.com/compute/docs/regions-zones This can ONLY be specified for ZONAL instances. If present for a REGIONAL instance, an error will be thrown. If this is absent for a ZONAL instance, instance is created in a random zone with available capacity. |
| instanceType? | enum | Required. The type of the instance. Specified at creation time. |
| labels? | record | Labels as key value pairs |
| machineConfig? | object | The number of CPU's in the VM instance. |
| networkConfig? | object | Optional. Name of the allocated IP range for the private IP AlloyDB instance, for example: "google-managed-services-default". If set, the instance IPs will be created from this allocated range and will override the IP range used by the parent cluster. The range name must comply with [RFC 1035](https://datatracker.ietf.org/doc/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. |
| observabilityConfig? | object | Observability feature status for an instance. This flag is turned "off" by default. |
| pscInstanceConfig? | object | Optional. List of consumer projects that are allowed to create PSC endpoints to service-attachments to this instance. |
| queryInsightsConfig? | object | Number of query execution plans captured by Insights per minute for all queries combined. The default value is 5. Any integer between 0 and 20 is considered valid. |
| readPoolConfig? | object | Read capacity, i.e. number of nodes in a read pool instance. |
| writableNode? | object | Output only. The identifier of the VM e.g. "test-read-0601-407e52be-ms3l". |
| instanceId? | string | Required. ID of the requesting object. |
| requestId? | string | Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a instances
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
getGet a instances
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the instances |
updateUpdate instances attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
deleteDelete the instances
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the instances |
syncSync instances state from GCP
createsecondarycreatesecondary
| Argument | Type | Description |
|---|---|---|
| activationPolicy? | any | |
| annotations? | any | |
| availabilityType? | any | |
| clientConnectionConfig? | any | |
| connectionPoolConfig? | any | |
| createTime? | any | |
| dataApiAccess? | any | |
| databaseFlags? | any | |
| deleteTime? | any | |
| displayName? | any | |
| etag? | any | |
| gceZone? | any | |
| instanceType? | any | |
| ipAddress? | any | |
| labels? | any | |
| machineConfig? | any | |
| maintenanceVersionName? | any | |
| name? | any | |
| networkConfig? | any | |
| nodes? | any | |
| observabilityConfig? | any | |
| outboundPublicIpAddresses? | any | |
| pscInstanceConfig? | any | |
| publicIpAddress? | any | |
| queryInsightsConfig? | any | |
| readPoolConfig? | any | |
| reconciling? | any | |
| satisfiesPzs? | any | |
| state? | any | |
| uid? | any | |
| updateTime? | any | |
| writableNode? | any |
failoverfailover
| Argument | Type | Description |
|---|---|---|
| requestId? | any | |
| validateOnly? | any |
get_connection_infoget connection info
inject_faultinject fault
| Argument | Type | Description |
|---|---|---|
| faultType? | any | |
| requestId? | any | |
| validateOnly? | any |
restartrestart
| Argument | Type | Description |
|---|---|---|
| nodeIds? | any | |
| requestId? | any | |
| validateOnly? | any |
clusters_users.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| databaseRoles? | array | Optional. List of database roles this user has. The database role strings are subject to the PostgreSQL naming conventions. |
| keepExtraRoles? | boolean | Input only. If the user already exists and it has additional roles, keep them granted. |
| password? | string | Input only. Password for the user. |
| userType? | enum | Optional. Type of this user. |
| requestId? | string | Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
| userId? | string | Required. ID of the requesting object. |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a users
getGet a users
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the users |
updateUpdate users attributes
deleteDelete the users
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the users |
syncSync users state from GCP
clusters.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| annotations? | record | Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 |
| automatedBackupPolicy? | object | The length of the time window during which a backup can be taken. If a backup does not succeed within this time window, it will be canceled and considered failed. The backup window must be at least 5 minutes long. There is no upper bound on the window. If not set, it defaults to 1 hour. |
| backupSource? | object | Required. The name of the backup resource with the format: * projects/{project}/locations/{region}/backups/{backup_id} |
| backupdrBackupSource? | object | Required. The name of the backup resource with the format: * projects/{project}/locations/{location}/backupVaults/{backupvault_id}/dataSources/{datasource_id}/backups/{backup_id} |
| backupdrInfo? | object | Whether automated backup was previously enabled prior to enabling BackupDR protection for this cluster. |
| cloudsqlBackupRunSource? | object | Required. The CloudSQL backup run ID. |
| continuousBackupConfig? | object | Whether ContinuousBackup is enabled. |
| continuousBackupInfo? | object | Output only. The earliest restorable time that can be restored to. If continuous backups and recovery was recently enabled, the earliest restorable time is the creation time of the earliest eligible backup within this cluster\'s continuous backup recovery window. After a cluster has had continuous backups enabled for the duration of its recovery window, the earliest restorable time becomes "now minus the recovery window". For example, assuming a point in time recovery is attempted at 04/16/2025 3:23:00PM with a 14d recovery window, the earliest restorable time would be 04/02/2025 3:23:00PM. This field is only visible if the CLUSTER_VIEW_CONTINUOUS_BACKUP cluster view is provided. |
| databaseVersion? | enum | Optional. The database engine major version. This is an optional field and it is populated at the Cluster creation time. If a database version is not supplied at cluster creation time, then a default database version will be used. |
| dataplexConfig? | object | Dataplex is enabled by default for resources such as clusters and instances. This flag controls the integration of AlloyDB PG resources (like databases, schemas, and tables) with Dataplex." |
| displayName? | string | User-settable and human-readable display name for the Cluster. |
| encryptionConfig? | object | The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] |
| encryptionInfo? | object | Output only. Type of encryption. |
| initialUser? | object | The initial password for the user. |
| labels? | record | Labels as key value pairs |
| maintenanceSchedule? | object | Output only. The scheduled start time for the maintenance. |
| maintenanceUpdatePolicy? | object | Day of a month. Must be from 1 to 31 and valid for the year and month, or 0 to specify a year by itself or a year and month where the day isn't significant. |
| maintenanceVersionSelectionPolicy? | enum | Input only. Policy to use to automatically select the maintenance version to which to update the cluster's instances. |
| migrationSource? | object | Output only. The host and port of the on-premises instance in host:port format |
| networkConfig? | object | Optional. Name of the allocated IP range for the private IP AlloyDB cluster, for example: "google-managed-services-default". If set, the instance IPs for this cluster will be created in the allocated range. The range name must comply with RFC 1035. Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`. Field name is intended to be consistent with Cloud SQL. |
| primaryConfig? | object | Output only. Names of the clusters that are replicating from this cluster. |
| pscConfig? | object | Optional. Create an instance that allows connections from Private Service Connect endpoints to the instance. |
| secondaryConfig? | object | The name of the primary cluster name with the format: * projects/{project}/locations/{region}/clusters/{cluster_id} |
| sslConfig? | object | Optional. Certificate Authority (CA) source. Only CA_SOURCE_MANAGED is supported currently, and is the default value. |
| subscriptionType? | enum | Optional. Subscription type of the cluster. |
| tags? | record | Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ` "123/environment": "production", "123/costCenter": "marketing" ` |
| trialMetadata? | object | End time of the trial cluster. |
| clusterId? | string | Required. ID of the requesting object. |
| requestId? | string | Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a clusters
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
getGet a clusters
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the clusters |
updateUpdate clusters attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
deleteDelete the clusters
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the clusters |
syncSync clusters state from GCP
createsecondarycreatesecondary
| Argument | Type | Description |
|---|---|---|
| annotations? | any | |
| automatedBackupPolicy? | any | |
| backupSource? | any | |
| backupdrBackupSource? | any | |
| backupdrInfo? | any | |
| cloudsqlBackupRunSource? | any | |
| clusterType? | any | |
| continuousBackupConfig? | any | |
| continuousBackupInfo? | any | |
| createTime? | any | |
| databaseVersion? | any | |
| dataplexConfig? | any | |
| deleteTime? | any | |
| displayName? | any | |
| encryptionConfig? | any | |
| encryptionInfo? | any | |
| etag? | any | |
| initialUser? | any | |
| labels? | any | |
| maintenanceSchedule? | any | |
| maintenanceUpdatePolicy? | any | |
| maintenanceVersionSelectionPolicy? | any | |
| migrationSource? | any | |
| name? | any | |
| network? | any | |
| networkConfig? | any | |
| primaryConfig? | any | |
| pscConfig? | any | |
| reconciling? | any | |
| satisfiesPzs? | any | |
| secondaryConfig? | any | |
| sslConfig? | any | |
| state? | any | |
| subscriptionType? | any | |
| tags? | any | |
| trialMetadata? | any | |
| uid? | any | |
| updateTime? | any |
exportexport
| Argument | Type | Description |
|---|---|---|
| csvExportOptions? | any | |
| database? | any | |
| gcsDestination? | any | |
| sqlExportOptions? | any |
importimport
| Argument | Type | Description |
|---|---|---|
| csvImportOptions? | any | |
| database? | any | |
| gcsUri? | any | |
| sqlImportOptions? | any | |
| user? | any |
promotepromote
| Argument | Type | Description |
|---|---|---|
| etag? | any | |
| requestId? | any | |
| validateOnly? | any |
restorerestore
| Argument | Type | Description |
|---|---|---|
| backupSource? | any | |
| backupdrBackupSource? | any | |
| backupdrPitrSource? | any | |
| cluster? | any | |
| clusterId? | any | |
| continuousBackupSource? | any | |
| requestId? | any | |
| validateOnly? | any |
restore_from_cloud_sqlrestore from cloud sql
| Argument | Type | Description |
|---|---|---|
| cloudsqlBackupRunSource? | any | |
| cluster? | any | |
| clusterId? | any |
switchoverswitchover
| Argument | Type | Description |
|---|---|---|
| requestId? | any | |
| validateOnly? | any |
upgradeupgrade
| Argument | Type | Description |
|---|---|---|
| etag? | any | |
| requestId? | any | |
| validateOnly? | any | |
| version? | any |
locations.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
getGet a locations
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the locations |
syncSync locations state from GCP
backups.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| annotations? | record | Annotations to allow client tools to store small amount of arbitrary data. This is distinct from labels. https://google.aip.dev/128 |
| clusterName? | string | Required. The full resource name of the backup source cluster (e.g., projects/{project}/locations/{region}/clusters/{cluster_id}). |
| description? | string | User-provided description of the backup. |
| displayName? | string | User-settable and human-readable display name for the Backup. |
| encryptionConfig? | object | The fully-qualified resource name of the KMS key. Each Cloud KMS key is regionalized and has the following format: projects/[PROJECT]/locations/[REGION]/keyRings/[RING]/cryptoKeys/[KEY_NAME] |
| encryptionInfo? | object | Output only. Type of encryption. |
| expiryQuantity? | object | Output only. The backup's position among its backups with the same source cluster and type, by descending chronological order create time(i.e. newest first). |
| labels? | record | Labels as key value pairs |
| tags? | record | Optional. Input only. Immutable. Tag keys/values directly bound to this resource. For example: ` "123/environment": "production", "123/costCenter": "marketing" ` |
| type? | enum | The backup type, which suggests the trigger for the backup. |
| backupId? | string | Required. ID of the requesting object. |
| requestId? | string | Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server ignores the request if it has already been completed. The server guarantees that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if the original operation with the same request ID was received, and if so, ignores the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000). |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
createCreate a backups
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after creation (default: true) |
getGet a backups
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the backups |
updateUpdate backups attributes
| Argument | Type | Description |
|---|---|---|
| waitForReady? | boolean | Wait for the resource to reach a ready state after update (default: true) |
deleteDelete the backups
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the backups |
syncSync backups state from GCP
supporteddatabaseflags.tsv2026.04.23.1
Global Arguments
| Argument | Type | Description |
|---|---|---|
| name | string | Instance name for this resource (used as the unique identifier in the factory pattern) |
| location? | string | The location for this resource (e.g., 'us', 'us-central1', 'europe-west1') |
getGet a supportedDatabaseFlags
| Argument | Type | Description |
|---|---|---|
| identifier | string | The name of the supportedDatabaseFlags |
syncSync supportedDatabaseFlags state from GCP
2026.04.03.362.4 KBApr 3, 2026
Google Cloud alloydb infrastructure models
Release Notes
- Updated: locations, backups, clusters, clusters_instances, clusters_users, supporteddatabaseflags
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudalloydbcloudinfrastructure
2026.04.03.161.9 KBApr 3, 2026
Google Cloud alloydb infrastructure models
Release Notes
- Updated: locations, backups, clusters, clusters_instances, clusters_users, supporteddatabaseflags
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudalloydbcloudinfrastructure
2026.04.02.261.8 KBApr 2, 2026
Google Cloud alloydb infrastructure models
Release Notes
- Updated: clusters_instances
Changelog
Models
~methods: +createsecondary, +export, +import, +promote, +restore, +restore_from_cloud_sql, +switchover, +upgrade
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudalloydbcloudinfrastructure
2026.03.27.164.9 KBMar 27, 2026
Google Cloud alloydb infrastructure models
Release Notes
- Added: locations, backups, clusters, clusters_instances, clusters_users, supporteddatabaseflags
linux-x86_64linux-aarch64darwin-x86_64darwin-aarch64
gcpgoogle-cloudalloydbcloudinfrastructure