Google Cloud v8.21.0 published on Wednesday, Mar 5, 2025 by Pulumi
gcp.sql.getDatabaseInstances
Explore with Pulumi AI
Use this data source to get information about a list of Cloud SQL instances in a project. You can also apply some filters over this list to get a more filtered list of Cloud SQL instances.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as gcp from "@pulumi/gcp";
const qa = gcp.sql.getDatabaseInstances({
    project: "test-project",
});
import pulumi
import pulumi_gcp as gcp
qa = gcp.sql.get_database_instances(project="test-project")
package main
import (
	"github.com/pulumi/pulumi-gcp/sdk/v8/go/gcp/sql"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sql.GetDatabaseInstances(ctx, &sql.GetDatabaseInstancesArgs{
			Project: pulumi.StringRef("test-project"),
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Gcp = Pulumi.Gcp;
return await Deployment.RunAsync(() => 
{
    var qa = Gcp.Sql.GetDatabaseInstances.Invoke(new()
    {
        Project = "test-project",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.gcp.sql.SqlFunctions;
import com.pulumi.gcp.sql.inputs.GetDatabaseInstancesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }
    public static void stack(Context ctx) {
        final var qa = SqlFunctions.getDatabaseInstances(GetDatabaseInstancesArgs.builder()
            .project("test-project")
            .build());
    }
}
variables:
  qa:
    fn::invoke:
      function: gcp:sql:getDatabaseInstances
      arguments:
        project: test-project
Using getDatabaseInstances
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getDatabaseInstances(args: GetDatabaseInstancesArgs, opts?: InvokeOptions): Promise<GetDatabaseInstancesResult>
function getDatabaseInstancesOutput(args: GetDatabaseInstancesOutputArgs, opts?: InvokeOptions): Output<GetDatabaseInstancesResult>def get_database_instances(database_version: Optional[str] = None,
                           project: Optional[str] = None,
                           region: Optional[str] = None,
                           state: Optional[str] = None,
                           tier: Optional[str] = None,
                           zone: Optional[str] = None,
                           opts: Optional[InvokeOptions] = None) -> GetDatabaseInstancesResult
def get_database_instances_output(database_version: Optional[pulumi.Input[str]] = None,
                           project: Optional[pulumi.Input[str]] = None,
                           region: Optional[pulumi.Input[str]] = None,
                           state: Optional[pulumi.Input[str]] = None,
                           tier: Optional[pulumi.Input[str]] = None,
                           zone: Optional[pulumi.Input[str]] = None,
                           opts: Optional[InvokeOptions] = None) -> Output[GetDatabaseInstancesResult]func GetDatabaseInstances(ctx *Context, args *GetDatabaseInstancesArgs, opts ...InvokeOption) (*GetDatabaseInstancesResult, error)
func GetDatabaseInstancesOutput(ctx *Context, args *GetDatabaseInstancesOutputArgs, opts ...InvokeOption) GetDatabaseInstancesResultOutput> Note: This function is named GetDatabaseInstances in the Go SDK.
public static class GetDatabaseInstances 
{
    public static Task<GetDatabaseInstancesResult> InvokeAsync(GetDatabaseInstancesArgs args, InvokeOptions? opts = null)
    public static Output<GetDatabaseInstancesResult> Invoke(GetDatabaseInstancesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetDatabaseInstancesResult> getDatabaseInstances(GetDatabaseInstancesArgs args, InvokeOptions options)
public static Output<GetDatabaseInstancesResult> getDatabaseInstances(GetDatabaseInstancesArgs args, InvokeOptions options)
fn::invoke:
  function: gcp:sql/getDatabaseInstances:getDatabaseInstances
  arguments:
    # arguments dictionaryThe following arguments are supported:
- DatabaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- Region string
- To filter out the Cloud SQL instances which are located in the specified region.
- State string
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- Tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- Zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- DatabaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- Region string
- To filter out the Cloud SQL instances which are located in the specified region.
- State string
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- Tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- Zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- databaseVersion String
- To filter out the Cloud SQL instances which are of the specified database version.
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- region String
- To filter out the Cloud SQL instances which are located in the specified region.
- state String
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- tier String
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- zone String
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- databaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- region string
- To filter out the Cloud SQL instances which are located in the specified region.
- state string
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- database_version str
- To filter out the Cloud SQL instances which are of the specified database version.
- project str
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- region str
- To filter out the Cloud SQL instances which are located in the specified region.
- state str
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- tier str
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- zone str
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- databaseVersion String
- To filter out the Cloud SQL instances which are of the specified database version.
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- region String
- To filter out the Cloud SQL instances which are located in the specified region.
- state String
- To filter out the Cloud SQL instances based on the current serving state of the database instance. Supported values include SQL_INSTANCE_STATE_UNSPECIFIED,RUNNABLE,SUSPENDED,PENDING_DELETE,PENDING_CREATE,MAINTENANCE,FAILED.
- tier String
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- zone String
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
getDatabaseInstances Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
List<GetDatabase Instances Instance> 
- DatabaseVersion string
- Project string
- Region string
- State string
- Tier string
- Zone string
- Id string
- The provider-assigned unique ID for this managed resource.
- Instances
[]GetDatabase Instances Instance 
- DatabaseVersion string
- Project string
- Region string
- State string
- Tier string
- Zone string
- id String
- The provider-assigned unique ID for this managed resource.
- instances
List<GetDatabase Instances Instance> 
- databaseVersion String
- project String
- region String
- state String
- tier String
- zone String
- id string
- The provider-assigned unique ID for this managed resource.
- instances
GetDatabase Instances Instance[] 
- databaseVersion string
- project string
- region string
- state string
- tier string
- zone string
- id str
- The provider-assigned unique ID for this managed resource.
- instances
Sequence[GetDatabase Instances Instance] 
- database_version str
- project str
- region str
- state str
- tier str
- zone str
- id String
- The provider-assigned unique ID for this managed resource.
- instances List<Property Map>
- databaseVersion String
- project String
- region String
- state String
- tier String
- zone String
Supporting Types
GetDatabaseInstancesInstance   
- AvailableMaintenance List<string>Versions 
- Available Maintenance versions.
- Clones
List<GetDatabase Instances Instance Clone> 
- Configuration for creating a new instance as a clone of another instance.
- ConnectionName string
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- DatabaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- DeletionProtection bool
- DnsName string
- The dns name of the instance.
- EncryptionKey stringName 
- FirstIp stringAddress 
- InstanceType string
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- IpAddresses List<GetDatabase Instances Instance Ip Address> 
- MaintenanceVersion string
- Maintenance version.
- MasterInstance stringName 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- Name string
- PrivateIp stringAddress 
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- PscService stringAttachment Link 
- The link to service attachment of PSC instance.
- PublicIp stringAddress 
- Region string
- To filter out the Cloud SQL instances which are located in the specified region.
- ReplicaConfigurations List<GetDatabase Instances Instance Replica Configuration> 
- The configuration for replication.
- ReplicaNames List<string>
- The replicas of the instance.
- ReplicationClusters List<GetDatabase Instances Instance Replication Cluster> 
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- RestoreBackup List<GetContexts Database Instances Instance Restore Backup Context> 
- RootPassword string
- Initial root password. Required for MS SQL Server.
- SelfLink string
- The URI of the created resource.
- ServerCa List<GetCerts Database Instances Instance Server Ca Cert> 
- ServiceAccount stringEmail Address 
- The service account email address assigned to the instance.
- Settings
List<GetDatabase Instances Instance Setting> 
- The settings to use for the database. The configuration is detailed below.
- AvailableMaintenance []stringVersions 
- Available Maintenance versions.
- Clones
[]GetDatabase Instances Instance Clone 
- Configuration for creating a new instance as a clone of another instance.
- ConnectionName string
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- DatabaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- DeletionProtection bool
- DnsName string
- The dns name of the instance.
- EncryptionKey stringName 
- FirstIp stringAddress 
- InstanceType string
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- IpAddresses []GetDatabase Instances Instance Ip Address 
- MaintenanceVersion string
- Maintenance version.
- MasterInstance stringName 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- Name string
- PrivateIp stringAddress 
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- PscService stringAttachment Link 
- The link to service attachment of PSC instance.
- PublicIp stringAddress 
- Region string
- To filter out the Cloud SQL instances which are located in the specified region.
- ReplicaConfigurations []GetDatabase Instances Instance Replica Configuration 
- The configuration for replication.
- ReplicaNames []string
- The replicas of the instance.
- ReplicationClusters []GetDatabase Instances Instance Replication Cluster 
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- RestoreBackup []GetContexts Database Instances Instance Restore Backup Context 
- RootPassword string
- Initial root password. Required for MS SQL Server.
- SelfLink string
- The URI of the created resource.
- ServerCa []GetCerts Database Instances Instance Server Ca Cert 
- ServiceAccount stringEmail Address 
- The service account email address assigned to the instance.
- Settings
[]GetDatabase Instances Instance Setting 
- The settings to use for the database. The configuration is detailed below.
- availableMaintenance List<String>Versions 
- Available Maintenance versions.
- clones
List<GetDatabase Instances Instance Clone> 
- Configuration for creating a new instance as a clone of another instance.
- connectionName String
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- databaseVersion String
- To filter out the Cloud SQL instances which are of the specified database version.
- deletionProtection Boolean
- dnsName String
- The dns name of the instance.
- encryptionKey StringName 
- firstIp StringAddress 
- instanceType String
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- ipAddresses List<GetDatabase Instances Instance Ip Address> 
- maintenanceVersion String
- Maintenance version.
- masterInstance StringName 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- name String
- privateIp StringAddress 
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- pscService StringAttachment Link 
- The link to service attachment of PSC instance.
- publicIp StringAddress 
- region String
- To filter out the Cloud SQL instances which are located in the specified region.
- replicaConfigurations List<GetDatabase Instances Instance Replica Configuration> 
- The configuration for replication.
- replicaNames List<String>
- The replicas of the instance.
- replicationClusters List<GetDatabase Instances Instance Replication Cluster> 
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- restoreBackup List<GetContexts Database Instances Instance Restore Backup Context> 
- rootPassword String
- Initial root password. Required for MS SQL Server.
- selfLink String
- The URI of the created resource.
- serverCa List<GetCerts Database Instances Instance Server Ca Cert> 
- serviceAccount StringEmail Address 
- The service account email address assigned to the instance.
- settings
List<GetDatabase Instances Instance Setting> 
- The settings to use for the database. The configuration is detailed below.
- availableMaintenance string[]Versions 
- Available Maintenance versions.
- clones
GetDatabase Instances Instance Clone[] 
- Configuration for creating a new instance as a clone of another instance.
- connectionName string
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- databaseVersion string
- To filter out the Cloud SQL instances which are of the specified database version.
- deletionProtection boolean
- dnsName string
- The dns name of the instance.
- encryptionKey stringName 
- firstIp stringAddress 
- instanceType string
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- ipAddresses GetDatabase Instances Instance Ip Address[] 
- maintenanceVersion string
- Maintenance version.
- masterInstance stringName 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- name string
- privateIp stringAddress 
- project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- pscService stringAttachment Link 
- The link to service attachment of PSC instance.
- publicIp stringAddress 
- region string
- To filter out the Cloud SQL instances which are located in the specified region.
- replicaConfigurations GetDatabase Instances Instance Replica Configuration[] 
- The configuration for replication.
- replicaNames string[]
- The replicas of the instance.
- replicationClusters GetDatabase Instances Instance Replication Cluster[] 
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- restoreBackup GetContexts Database Instances Instance Restore Backup Context[] 
- rootPassword string
- Initial root password. Required for MS SQL Server.
- selfLink string
- The URI of the created resource.
- serverCa GetCerts Database Instances Instance Server Ca Cert[] 
- serviceAccount stringEmail Address 
- The service account email address assigned to the instance.
- settings
GetDatabase Instances Instance Setting[] 
- The settings to use for the database. The configuration is detailed below.
- available_maintenance_ Sequence[str]versions 
- Available Maintenance versions.
- clones
Sequence[GetDatabase Instances Instance Clone] 
- Configuration for creating a new instance as a clone of another instance.
- connection_name str
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- database_version str
- To filter out the Cloud SQL instances which are of the specified database version.
- deletion_protection bool
- dns_name str
- The dns name of the instance.
- encryption_key_ strname 
- first_ip_ straddress 
- instance_type str
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- ip_addresses Sequence[GetDatabase Instances Instance Ip Address] 
- maintenance_version str
- Maintenance version.
- master_instance_ strname 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- name str
- private_ip_ straddress 
- project str
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- psc_service_ strattachment_ link 
- The link to service attachment of PSC instance.
- public_ip_ straddress 
- region str
- To filter out the Cloud SQL instances which are located in the specified region.
- replica_configurations Sequence[GetDatabase Instances Instance Replica Configuration] 
- The configuration for replication.
- replica_names Sequence[str]
- The replicas of the instance.
- replication_clusters Sequence[GetDatabase Instances Instance Replication Cluster] 
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- restore_backup_ Sequence[Getcontexts Database Instances Instance Restore Backup Context] 
- root_password str
- Initial root password. Required for MS SQL Server.
- self_link str
- The URI of the created resource.
- server_ca_ Sequence[Getcerts Database Instances Instance Server Ca Cert] 
- service_account_ stremail_ address 
- The service account email address assigned to the instance.
- settings
Sequence[GetDatabase Instances Instance Setting] 
- The settings to use for the database. The configuration is detailed below.
- availableMaintenance List<String>Versions 
- Available Maintenance versions.
- clones List<Property Map>
- Configuration for creating a new instance as a clone of another instance.
- connectionName String
- The connection name of the instance to be used in connection strings. For example, when connecting with Cloud SQL Proxy.
- databaseVersion String
- To filter out the Cloud SQL instances which are of the specified database version.
- deletionProtection Boolean
- dnsName String
- The dns name of the instance.
- encryptionKey StringName 
- firstIp StringAddress 
- instanceType String
- The type of the instance. The valid values are:- 'SQL_INSTANCE_TYPE_UNSPECIFIED', 'CLOUD_SQL_INSTANCE', 'ON_PREMISES_INSTANCE' and 'READ_REPLICA_INSTANCE'.
- ipAddresses List<Property Map>
- maintenanceVersion String
- Maintenance version.
- masterInstance StringName 
- The name of the instance that will act as the master in the replication setup. Note, this requires the master to have binary_log_enabled set, as well as existing backups.
- name String
- privateIp StringAddress 
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- pscService StringAttachment Link 
- The link to service attachment of PSC instance.
- publicIp StringAddress 
- region String
- To filter out the Cloud SQL instances which are located in the specified region.
- replicaConfigurations List<Property Map>
- The configuration for replication.
- replicaNames List<String>
- The replicas of the instance.
- replicationClusters List<Property Map>
- A primary instance and disaster recovery replica pair. Applicable to MySQL and PostgreSQL. This field can be set only after both the primary and replica are created.
- restoreBackup List<Property Map>Contexts 
- rootPassword String
- Initial root password. Required for MS SQL Server.
- selfLink String
- The URI of the created resource.
- serverCa List<Property Map>Certs 
- serviceAccount StringEmail Address 
- The service account email address assigned to the instance.
- settings List<Property Map>
- The settings to use for the database. The configuration is detailed below.
GetDatabaseInstancesInstanceClone    
- AllocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- DatabaseNames List<string>
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- PointIn stringTime 
- The timestamp of the point in time that should be restored.
- PreferredZone string
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- SourceInstance stringName 
- The name of the instance from which the point in time should be restored.
- AllocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- DatabaseNames []string
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- PointIn stringTime 
- The timestamp of the point in time that should be restored.
- PreferredZone string
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- SourceInstance stringName 
- The name of the instance from which the point in time should be restored.
- allocatedIp StringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- databaseNames List<String>
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- pointIn StringTime 
- The timestamp of the point in time that should be restored.
- preferredZone String
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- sourceInstance StringName 
- The name of the instance from which the point in time should be restored.
- allocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- databaseNames string[]
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- pointIn stringTime 
- The timestamp of the point in time that should be restored.
- preferredZone string
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- sourceInstance stringName 
- The name of the instance from which the point in time should be restored.
- allocated_ip_ strrange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- database_names Sequence[str]
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- point_in_ strtime 
- The timestamp of the point in time that should be restored.
- preferred_zone str
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- source_instance_ strname 
- The name of the instance from which the point in time should be restored.
- allocatedIp StringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the cloned instance ip 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?.
- databaseNames List<String>
- (SQL Server only, use with point_in_time) clone only the specified databases from the source instance. Clone all databases if empty.
- pointIn StringTime 
- The timestamp of the point in time that should be restored.
- preferredZone String
- (Point-in-time recovery for PostgreSQL only) Clone to an instance in the specified zone. If no zone is specified, clone to the same zone as the source instance.
- sourceInstance StringName 
- The name of the instance from which the point in time should be restored.
GetDatabaseInstancesInstanceIpAddress     
- IpAddress string
- TimeTo stringRetire 
- Type string
- IpAddress string
- TimeTo stringRetire 
- Type string
- ipAddress String
- timeTo StringRetire 
- type String
- ipAddress string
- timeTo stringRetire 
- type string
- ip_address str
- time_to_ strretire 
- type str
- ipAddress String
- timeTo StringRetire 
- type String
GetDatabaseInstancesInstanceReplicaConfiguration     
- CaCertificate string
- PEM representation of the trusted CA's x509 certificate.
- CascadableReplica bool
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- ClientCertificate string
- PEM representation of the replica's x509 certificate.
- ClientKey string
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- ConnectRetry intInterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- DumpFile stringPath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- FailoverTarget bool
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- MasterHeartbeat intPeriod 
- Time in ms between replication heartbeats.
- Password string
- Password for the replication connection.
- SslCipher string
- Permissible ciphers for use in SSL encryption.
- Username string
- Username for replication connection.
- VerifyServer boolCertificate 
- True if the master's common name value is checked during the SSL handshake.
- CaCertificate string
- PEM representation of the trusted CA's x509 certificate.
- CascadableReplica bool
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- ClientCertificate string
- PEM representation of the replica's x509 certificate.
- ClientKey string
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- ConnectRetry intInterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- DumpFile stringPath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- FailoverTarget bool
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- MasterHeartbeat intPeriod 
- Time in ms between replication heartbeats.
- Password string
- Password for the replication connection.
- SslCipher string
- Permissible ciphers for use in SSL encryption.
- Username string
- Username for replication connection.
- VerifyServer boolCertificate 
- True if the master's common name value is checked during the SSL handshake.
- caCertificate String
- PEM representation of the trusted CA's x509 certificate.
- cascadableReplica Boolean
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- clientCertificate String
- PEM representation of the replica's x509 certificate.
- clientKey String
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- connectRetry IntegerInterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- dumpFile StringPath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- failoverTarget Boolean
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- masterHeartbeat IntegerPeriod 
- Time in ms between replication heartbeats.
- password String
- Password for the replication connection.
- sslCipher String
- Permissible ciphers for use in SSL encryption.
- username String
- Username for replication connection.
- verifyServer BooleanCertificate 
- True if the master's common name value is checked during the SSL handshake.
- caCertificate string
- PEM representation of the trusted CA's x509 certificate.
- cascadableReplica boolean
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- clientCertificate string
- PEM representation of the replica's x509 certificate.
- clientKey string
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- connectRetry numberInterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- dumpFile stringPath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- failoverTarget boolean
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- masterHeartbeat numberPeriod 
- Time in ms between replication heartbeats.
- password string
- Password for the replication connection.
- sslCipher string
- Permissible ciphers for use in SSL encryption.
- username string
- Username for replication connection.
- verifyServer booleanCertificate 
- True if the master's common name value is checked during the SSL handshake.
- ca_certificate str
- PEM representation of the trusted CA's x509 certificate.
- cascadable_replica bool
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- client_certificate str
- PEM representation of the replica's x509 certificate.
- client_key str
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- connect_retry_ intinterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- dump_file_ strpath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- failover_target bool
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- master_heartbeat_ intperiod 
- Time in ms between replication heartbeats.
- password str
- Password for the replication connection.
- ssl_cipher str
- Permissible ciphers for use in SSL encryption.
- username str
- Username for replication connection.
- verify_server_ boolcertificate 
- True if the master's common name value is checked during the SSL handshake.
- caCertificate String
- PEM representation of the trusted CA's x509 certificate.
- cascadableReplica Boolean
- Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
- clientCertificate String
- PEM representation of the replica's x509 certificate.
- clientKey String
- PEM representation of the replica's private key. The corresponding public key in encoded in the client_certificate.
- connectRetry NumberInterval 
- The number of seconds between connect retries. MySQL's default is 60 seconds.
- dumpFile StringPath 
- Path to a SQL file in Google Cloud Storage from which replica instances are created. Format is gs://bucket/filename.
- failoverTarget Boolean
- Specifies if the replica is the failover target. If the field is set to true the replica will be designated as a failover replica. If the master instance fails, the replica instance will be promoted as the new master instance. Not supported for Postgres
- masterHeartbeat NumberPeriod 
- Time in ms between replication heartbeats.
- password String
- Password for the replication connection.
- sslCipher String
- Permissible ciphers for use in SSL encryption.
- username String
- Username for replication connection.
- verifyServer BooleanCertificate 
- True if the master's common name value is checked during the SSL handshake.
GetDatabaseInstancesInstanceReplicationCluster     
- DrReplica bool
- Read-only field that indicates whether the replica is a DR replica.
- FailoverDr stringReplica Name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
- DrReplica bool
- Read-only field that indicates whether the replica is a DR replica.
- FailoverDr stringReplica Name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
- drReplica Boolean
- Read-only field that indicates whether the replica is a DR replica.
- failoverDr StringReplica Name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
- drReplica boolean
- Read-only field that indicates whether the replica is a DR replica.
- failoverDr stringReplica Name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
- dr_replica bool
- Read-only field that indicates whether the replica is a DR replica.
- failover_dr_ strreplica_ name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
- drReplica Boolean
- Read-only field that indicates whether the replica is a DR replica.
- failoverDr StringReplica Name 
- If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. The standard format of this field is "your-project:your-instance". You can also set this field to "your-instance", but cloud SQL backend will convert it to the aforementioned standard format.
GetDatabaseInstancesInstanceRestoreBackupContext      
- BackupRun intId 
- The ID of the backup run to restore from.
- InstanceId string
- The ID of the instance that the backup was taken from.
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- BackupRun intId 
- The ID of the backup run to restore from.
- InstanceId string
- The ID of the instance that the backup was taken from.
- Project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- backupRun IntegerId 
- The ID of the backup run to restore from.
- instanceId String
- The ID of the instance that the backup was taken from.
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- backupRun numberId 
- The ID of the backup run to restore from.
- instanceId string
- The ID of the instance that the backup was taken from.
- project string
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- backup_run_ intid 
- The ID of the backup run to restore from.
- instance_id str
- The ID of the instance that the backup was taken from.
- project str
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
- backupRun NumberId 
- The ID of the backup run to restore from.
- instanceId String
- The ID of the instance that the backup was taken from.
- project String
- The ID of the project in which the resources belong. If it is not provided, the provider project is used.
GetDatabaseInstancesInstanceServerCaCert      
- Cert string
- The CA Certificate used to connect to the SQL Instance via SSL.
- CommonName string
- The CN valid for the CA Cert.
- CreateTime string
- Creation time of the CA Cert.
- ExpirationTime string
- Expiration time of the CA Cert.
- Sha1Fingerprint string
- SHA Fingerprint of the CA Cert.
- Cert string
- The CA Certificate used to connect to the SQL Instance via SSL.
- CommonName string
- The CN valid for the CA Cert.
- CreateTime string
- Creation time of the CA Cert.
- ExpirationTime string
- Expiration time of the CA Cert.
- Sha1Fingerprint string
- SHA Fingerprint of the CA Cert.
- cert String
- The CA Certificate used to connect to the SQL Instance via SSL.
- commonName String
- The CN valid for the CA Cert.
- createTime String
- Creation time of the CA Cert.
- expirationTime String
- Expiration time of the CA Cert.
- sha1Fingerprint String
- SHA Fingerprint of the CA Cert.
- cert string
- The CA Certificate used to connect to the SQL Instance via SSL.
- commonName string
- The CN valid for the CA Cert.
- createTime string
- Creation time of the CA Cert.
- expirationTime string
- Expiration time of the CA Cert.
- sha1Fingerprint string
- SHA Fingerprint of the CA Cert.
- cert str
- The CA Certificate used to connect to the SQL Instance via SSL.
- common_name str
- The CN valid for the CA Cert.
- create_time str
- Creation time of the CA Cert.
- expiration_time str
- Expiration time of the CA Cert.
- sha1_fingerprint str
- SHA Fingerprint of the CA Cert.
- cert String
- The CA Certificate used to connect to the SQL Instance via SSL.
- commonName String
- The CN valid for the CA Cert.
- createTime String
- Creation time of the CA Cert.
- expirationTime String
- Expiration time of the CA Cert.
- sha1Fingerprint String
- SHA Fingerprint of the CA Cert.
GetDatabaseInstancesInstanceSetting    
- ActivationPolicy string
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- ActiveDirectory List<GetConfigs Database Instances Instance Setting Active Directory Config> 
- AdvancedMachine List<GetFeatures Database Instances Instance Setting Advanced Machine Feature> 
- AvailabilityType string
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- BackupConfigurations List<GetDatabase Instances Instance Setting Backup Configuration> 
- Collation string
- The name of server instance collation.
- ConnectorEnforcement string
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- DataCache List<GetConfigs Database Instances Instance Setting Data Cache Config> 
- Data cache configurations.
- DatabaseFlags List<GetDatabase Instances Instance Setting Database Flag> 
- DeletionProtection boolEnabled 
- Configuration to protect against accidental instance deletion.
- DenyMaintenance List<GetPeriods Database Instances Instance Setting Deny Maintenance Period> 
- DiskAutoresize bool
- Enables auto-resizing of the storage size. Defaults to true.
- DiskAutoresize intLimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- DiskSize int
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- DiskType string
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- Edition string
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- EnableDataplex boolIntegration 
- Enables Dataplex Integration.
- EnableGoogle boolMl Integration 
- Enables Vertex AI Integration.
- InsightsConfigs List<GetDatabase Instances Instance Setting Insights Config> 
- Configuration of Query Insights.
- IpConfigurations List<GetDatabase Instances Instance Setting Ip Configuration> 
- LocationPreferences List<GetDatabase Instances Instance Setting Location Preference> 
- MaintenanceWindows List<GetDatabase Instances Instance Setting Maintenance Window> 
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- PasswordValidation List<GetPolicies Database Instances Instance Setting Password Validation Policy> 
- PricingPlan string
- Pricing plan for this instance, can only be PER_USE.
- SqlServer List<GetAudit Configs Database Instances Instance Setting Sql Server Audit Config> 
- Tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- TimeZone string
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- UserLabels Dictionary<string, string>
- A set of key/value user label pairs to assign to the instance.
- Version int
- Used to make sure changes to the settings block are atomic.
- ActivationPolicy string
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- ActiveDirectory []GetConfigs Database Instances Instance Setting Active Directory Config 
- AdvancedMachine []GetFeatures Database Instances Instance Setting Advanced Machine Feature 
- AvailabilityType string
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- BackupConfigurations []GetDatabase Instances Instance Setting Backup Configuration 
- Collation string
- The name of server instance collation.
- ConnectorEnforcement string
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- DataCache []GetConfigs Database Instances Instance Setting Data Cache Config 
- Data cache configurations.
- DatabaseFlags []GetDatabase Instances Instance Setting Database Flag 
- DeletionProtection boolEnabled 
- Configuration to protect against accidental instance deletion.
- DenyMaintenance []GetPeriods Database Instances Instance Setting Deny Maintenance Period 
- DiskAutoresize bool
- Enables auto-resizing of the storage size. Defaults to true.
- DiskAutoresize intLimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- DiskSize int
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- DiskType string
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- Edition string
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- EnableDataplex boolIntegration 
- Enables Dataplex Integration.
- EnableGoogle boolMl Integration 
- Enables Vertex AI Integration.
- InsightsConfigs []GetDatabase Instances Instance Setting Insights Config 
- Configuration of Query Insights.
- IpConfigurations []GetDatabase Instances Instance Setting Ip Configuration 
- LocationPreferences []GetDatabase Instances Instance Setting Location Preference 
- MaintenanceWindows []GetDatabase Instances Instance Setting Maintenance Window 
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- PasswordValidation []GetPolicies Database Instances Instance Setting Password Validation Policy 
- PricingPlan string
- Pricing plan for this instance, can only be PER_USE.
- SqlServer []GetAudit Configs Database Instances Instance Setting Sql Server Audit Config 
- Tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- TimeZone string
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- UserLabels map[string]string
- A set of key/value user label pairs to assign to the instance.
- Version int
- Used to make sure changes to the settings block are atomic.
- activationPolicy String
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- activeDirectory List<GetConfigs Database Instances Instance Setting Active Directory Config> 
- advancedMachine List<GetFeatures Database Instances Instance Setting Advanced Machine Feature> 
- availabilityType String
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- backupConfigurations List<GetDatabase Instances Instance Setting Backup Configuration> 
- collation String
- The name of server instance collation.
- connectorEnforcement String
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- dataCache List<GetConfigs Database Instances Instance Setting Data Cache Config> 
- Data cache configurations.
- databaseFlags List<GetDatabase Instances Instance Setting Database Flag> 
- deletionProtection BooleanEnabled 
- Configuration to protect against accidental instance deletion.
- denyMaintenance List<GetPeriods Database Instances Instance Setting Deny Maintenance Period> 
- diskAutoresize Boolean
- Enables auto-resizing of the storage size. Defaults to true.
- diskAutoresize IntegerLimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- diskSize Integer
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- diskType String
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- edition String
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- enableDataplex BooleanIntegration 
- Enables Dataplex Integration.
- enableGoogle BooleanMl Integration 
- Enables Vertex AI Integration.
- insightsConfigs List<GetDatabase Instances Instance Setting Insights Config> 
- Configuration of Query Insights.
- ipConfigurations List<GetDatabase Instances Instance Setting Ip Configuration> 
- locationPreferences List<GetDatabase Instances Instance Setting Location Preference> 
- maintenanceWindows List<GetDatabase Instances Instance Setting Maintenance Window> 
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- passwordValidation List<GetPolicies Database Instances Instance Setting Password Validation Policy> 
- pricingPlan String
- Pricing plan for this instance, can only be PER_USE.
- sqlServer List<GetAudit Configs Database Instances Instance Setting Sql Server Audit Config> 
- tier String
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- timeZone String
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- userLabels Map<String,String>
- A set of key/value user label pairs to assign to the instance.
- version Integer
- Used to make sure changes to the settings block are atomic.
- activationPolicy string
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- activeDirectory GetConfigs Database Instances Instance Setting Active Directory Config[] 
- advancedMachine GetFeatures Database Instances Instance Setting Advanced Machine Feature[] 
- availabilityType string
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- backupConfigurations GetDatabase Instances Instance Setting Backup Configuration[] 
- collation string
- The name of server instance collation.
- connectorEnforcement string
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- dataCache GetConfigs Database Instances Instance Setting Data Cache Config[] 
- Data cache configurations.
- databaseFlags GetDatabase Instances Instance Setting Database Flag[] 
- deletionProtection booleanEnabled 
- Configuration to protect against accidental instance deletion.
- denyMaintenance GetPeriods Database Instances Instance Setting Deny Maintenance Period[] 
- diskAutoresize boolean
- Enables auto-resizing of the storage size. Defaults to true.
- diskAutoresize numberLimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- diskSize number
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- diskType string
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- edition string
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- enableDataplex booleanIntegration 
- Enables Dataplex Integration.
- enableGoogle booleanMl Integration 
- Enables Vertex AI Integration.
- insightsConfigs GetDatabase Instances Instance Setting Insights Config[] 
- Configuration of Query Insights.
- ipConfigurations GetDatabase Instances Instance Setting Ip Configuration[] 
- locationPreferences GetDatabase Instances Instance Setting Location Preference[] 
- maintenanceWindows GetDatabase Instances Instance Setting Maintenance Window[] 
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- passwordValidation GetPolicies Database Instances Instance Setting Password Validation Policy[] 
- pricingPlan string
- Pricing plan for this instance, can only be PER_USE.
- sqlServer GetAudit Configs Database Instances Instance Setting Sql Server Audit Config[] 
- tier string
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- timeZone string
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- userLabels {[key: string]: string}
- A set of key/value user label pairs to assign to the instance.
- version number
- Used to make sure changes to the settings block are atomic.
- activation_policy str
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- active_directory_ Sequence[Getconfigs Database Instances Instance Setting Active Directory Config] 
- advanced_machine_ Sequence[Getfeatures Database Instances Instance Setting Advanced Machine Feature] 
- availability_type str
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- backup_configurations Sequence[GetDatabase Instances Instance Setting Backup Configuration] 
- collation str
- The name of server instance collation.
- connector_enforcement str
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- data_cache_ Sequence[Getconfigs Database Instances Instance Setting Data Cache Config] 
- Data cache configurations.
- database_flags Sequence[GetDatabase Instances Instance Setting Database Flag] 
- deletion_protection_ boolenabled 
- Configuration to protect against accidental instance deletion.
- deny_maintenance_ Sequence[Getperiods Database Instances Instance Setting Deny Maintenance Period] 
- disk_autoresize bool
- Enables auto-resizing of the storage size. Defaults to true.
- disk_autoresize_ intlimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- disk_size int
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- disk_type str
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- edition str
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- enable_dataplex_ boolintegration 
- Enables Dataplex Integration.
- enable_google_ boolml_ integration 
- Enables Vertex AI Integration.
- insights_configs Sequence[GetDatabase Instances Instance Setting Insights Config] 
- Configuration of Query Insights.
- ip_configurations Sequence[GetDatabase Instances Instance Setting Ip Configuration] 
- location_preferences Sequence[GetDatabase Instances Instance Setting Location Preference] 
- maintenance_windows Sequence[GetDatabase Instances Instance Setting Maintenance Window] 
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- password_validation_ Sequence[Getpolicies Database Instances Instance Setting Password Validation Policy] 
- pricing_plan str
- Pricing plan for this instance, can only be PER_USE.
- sql_server_ Sequence[Getaudit_ configs Database Instances Instance Setting Sql Server Audit Config] 
- tier str
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- time_zone str
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- user_labels Mapping[str, str]
- A set of key/value user label pairs to assign to the instance.
- version int
- Used to make sure changes to the settings block are atomic.
- activationPolicy String
- This specifies when the instance should be active. Can be either ALWAYS, NEVER or ON_DEMAND.
- activeDirectory List<Property Map>Configs 
- advancedMachine List<Property Map>Features 
- availabilityType String
- The availability type of the Cloud SQL instance, high availability (REGIONAL) or single zone (ZONAL). For all instances, ensure that settings.backup_configuration.enabled is set to true. For MySQL instances, ensure that settings.backup_configuration.binary_log_enabled is set to true. For Postgres instances, ensure that settings.backup_configuration.point_in_time_recovery_enabled is set to true. Defaults to ZONAL.
- backupConfigurations List<Property Map>
- collation String
- The name of server instance collation.
- connectorEnforcement String
- Enables the enforcement of Cloud SQL Auth Proxy or Cloud SQL connectors for all the connections. If enabled, all the direct connections are rejected.
- dataCache List<Property Map>Configs 
- Data cache configurations.
- databaseFlags List<Property Map>
- deletionProtection BooleanEnabled 
- Configuration to protect against accidental instance deletion.
- denyMaintenance List<Property Map>Periods 
- diskAutoresize Boolean
- Enables auto-resizing of the storage size. Defaults to true.
- diskAutoresize NumberLimit 
- The maximum size, in GB, to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
- diskSize Number
- The size of data disk, in GB. Size of a running instance cannot be reduced but can be increased. The minimum value is 10GB.
- diskType String
- The type of data disk: PD_SSD or PD_HDD. Defaults to PD_SSD.
- edition String
- The edition of the instance, can be ENTERPRISE or ENTERPRISE_PLUS.
- enableDataplex BooleanIntegration 
- Enables Dataplex Integration.
- enableGoogle BooleanMl Integration 
- Enables Vertex AI Integration.
- insightsConfigs List<Property Map>
- Configuration of Query Insights.
- ipConfigurations List<Property Map>
- locationPreferences List<Property Map>
- maintenanceWindows List<Property Map>
- Declares a one-hour maintenance window when an Instance can automatically restart to apply updates. The maintenance window is specified in UTC time.
- passwordValidation List<Property Map>Policies 
- pricingPlan String
- Pricing plan for this instance, can only be PER_USE.
- sqlServer List<Property Map>Audit Configs 
- tier String
- To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances.
- timeZone String
- The time_zone to be used by the database engine (supported only for SQL Server), in SQL Server timezone format.
- userLabels Map<String>
- A set of key/value user label pairs to assign to the instance.
- version Number
- Used to make sure changes to the settings block are atomic.
GetDatabaseInstancesInstanceSettingActiveDirectoryConfig       
- Domain string
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
- Domain string
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
- domain String
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
- domain string
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
- domain str
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
- domain String
- Domain name of the Active Directory for SQL Server (e.g., mydomain.com).
GetDatabaseInstancesInstanceSettingAdvancedMachineFeature       
- ThreadsPer intCore 
- The number of threads per physical core. Can be 1 or 2.
- ThreadsPer intCore 
- The number of threads per physical core. Can be 1 or 2.
- threadsPer IntegerCore 
- The number of threads per physical core. Can be 1 or 2.
- threadsPer numberCore 
- The number of threads per physical core. Can be 1 or 2.
- threads_per_ intcore 
- The number of threads per physical core. Can be 1 or 2.
- threadsPer NumberCore 
- The number of threads per physical core. Can be 1 or 2.
GetDatabaseInstancesInstanceSettingBackupConfiguration      
- BackupRetention List<GetSettings Database Instances Instance Setting Backup Configuration Backup Retention Setting> 
- BinaryLog boolEnabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- Enabled bool
- True if backup configuration is enabled.
- Location string
- Location of the backup configuration.
- PointIn boolTime Recovery Enabled 
- True if Point-in-time recovery is enabled.
- StartTime string
- HH:MM format time indicating when backup configuration starts.
- TransactionLog intRetention Days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
- BackupRetention []GetSettings Database Instances Instance Setting Backup Configuration Backup Retention Setting 
- BinaryLog boolEnabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- Enabled bool
- True if backup configuration is enabled.
- Location string
- Location of the backup configuration.
- PointIn boolTime Recovery Enabled 
- True if Point-in-time recovery is enabled.
- StartTime string
- HH:MM format time indicating when backup configuration starts.
- TransactionLog intRetention Days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
- backupRetention List<GetSettings Database Instances Instance Setting Backup Configuration Backup Retention Setting> 
- binaryLog BooleanEnabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- enabled Boolean
- True if backup configuration is enabled.
- location String
- Location of the backup configuration.
- pointIn BooleanTime Recovery Enabled 
- True if Point-in-time recovery is enabled.
- startTime String
- HH:MM format time indicating when backup configuration starts.
- transactionLog IntegerRetention Days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
- backupRetention GetSettings Database Instances Instance Setting Backup Configuration Backup Retention Setting[] 
- binaryLog booleanEnabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- enabled boolean
- True if backup configuration is enabled.
- location string
- Location of the backup configuration.
- pointIn booleanTime Recovery Enabled 
- True if Point-in-time recovery is enabled.
- startTime string
- HH:MM format time indicating when backup configuration starts.
- transactionLog numberRetention Days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
- backup_retention_ Sequence[Getsettings Database Instances Instance Setting Backup Configuration Backup Retention Setting] 
- binary_log_ boolenabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- enabled bool
- True if backup configuration is enabled.
- location str
- Location of the backup configuration.
- point_in_ booltime_ recovery_ enabled 
- True if Point-in-time recovery is enabled.
- start_time str
- HH:MM format time indicating when backup configuration starts.
- transaction_log_ intretention_ days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
- backupRetention List<Property Map>Settings 
- binaryLog BooleanEnabled 
- True if binary logging is enabled. If settings.backup_configuration.enabled is false, this must be as well. Can only be used with MySQL.
- enabled Boolean
- True if backup configuration is enabled.
- location String
- Location of the backup configuration.
- pointIn BooleanTime Recovery Enabled 
- True if Point-in-time recovery is enabled.
- startTime String
- HH:MM format time indicating when backup configuration starts.
- transactionLog NumberRetention Days 
- The number of days of transaction logs we retain for point in time restore, from 1-7. (For PostgreSQL Enterprise Plus instances, from 1 to 35.)
GetDatabaseInstancesInstanceSettingBackupConfigurationBackupRetentionSetting         
- RetainedBackups int
- Number of backups to retain.
- RetentionUnit string
- The unit that 'retainedBackups' represents. Defaults to COUNT
- RetainedBackups int
- Number of backups to retain.
- RetentionUnit string
- The unit that 'retainedBackups' represents. Defaults to COUNT
- retainedBackups Integer
- Number of backups to retain.
- retentionUnit String
- The unit that 'retainedBackups' represents. Defaults to COUNT
- retainedBackups number
- Number of backups to retain.
- retentionUnit string
- The unit that 'retainedBackups' represents. Defaults to COUNT
- retained_backups int
- Number of backups to retain.
- retention_unit str
- The unit that 'retainedBackups' represents. Defaults to COUNT
- retainedBackups Number
- Number of backups to retain.
- retentionUnit String
- The unit that 'retainedBackups' represents. Defaults to COUNT
GetDatabaseInstancesInstanceSettingDataCacheConfig       
- DataCache boolEnabled 
- Whether data cache is enabled for the instance.
- DataCache boolEnabled 
- Whether data cache is enabled for the instance.
- dataCache BooleanEnabled 
- Whether data cache is enabled for the instance.
- dataCache booleanEnabled 
- Whether data cache is enabled for the instance.
- data_cache_ boolenabled 
- Whether data cache is enabled for the instance.
- dataCache BooleanEnabled 
- Whether data cache is enabled for the instance.
GetDatabaseInstancesInstanceSettingDatabaseFlag      
GetDatabaseInstancesInstanceSettingDenyMaintenancePeriod       
- EndDate string
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- StartDate string
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- Time string
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
- EndDate string
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- StartDate string
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- Time string
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
- endDate String
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- startDate String
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- time String
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
- endDate string
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- startDate string
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- time string
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
- end_date str
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- start_date str
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- time str
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
- endDate String
- End date before which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- startDate String
- Start date after which maintenance will not take place. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
- time String
- Time in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
GetDatabaseInstancesInstanceSettingInsightsConfig      
- QueryInsights boolEnabled 
- True if Query Insights feature is enabled.
- QueryPlans intPer Minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- QueryString intLength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- bool
- True if Query Insights will record application tags from query when enabled.
- RecordClient boolAddress 
- True if Query Insights will record client address when enabled.
- QueryInsights boolEnabled 
- True if Query Insights feature is enabled.
- QueryPlans intPer Minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- QueryString intLength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- bool
- True if Query Insights will record application tags from query when enabled.
- RecordClient boolAddress 
- True if Query Insights will record client address when enabled.
- queryInsights BooleanEnabled 
- True if Query Insights feature is enabled.
- queryPlans IntegerPer Minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- queryString IntegerLength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- Boolean
- True if Query Insights will record application tags from query when enabled.
- recordClient BooleanAddress 
- True if Query Insights will record client address when enabled.
- queryInsights booleanEnabled 
- True if Query Insights feature is enabled.
- queryPlans numberPer Minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- queryString numberLength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- boolean
- True if Query Insights will record application tags from query when enabled.
- recordClient booleanAddress 
- True if Query Insights will record client address when enabled.
- query_insights_ boolenabled 
- True if Query Insights feature is enabled.
- query_plans_ intper_ minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- query_string_ intlength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- bool
- True if Query Insights will record application tags from query when enabled.
- record_client_ booladdress 
- True if Query Insights will record client address when enabled.
- queryInsights BooleanEnabled 
- True if Query Insights feature is enabled.
- queryPlans NumberPer Minute 
- Number of query execution plans captured by Insights per minute for all queries combined. Between 0 and 20. Default to 5.
- queryString NumberLength 
- Maximum query length stored in bytes. Between 256 and 4500. Default to 1024.
- Boolean
- True if Query Insights will record application tags from query when enabled.
- recordClient BooleanAddress 
- True if Query Insights will record client address when enabled.
GetDatabaseInstancesInstanceSettingIpConfiguration      
- AllocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- 
List<GetDatabase Instances Instance Setting Ip Configuration Authorized Network> 
- EnablePrivate boolPath For Google Cloud Services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- Ipv4Enabled bool
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- PrivateNetwork string
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- PscConfigs List<GetDatabase Instances Instance Setting Ip Configuration Psc Config> 
- PSC settings for a Cloud SQL instance.
- ServerCa stringMode 
- Specify how the server certificate's Certificate Authority is hosted.
- ServerCa stringPool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- SslMode string
- Specify how SSL connection should be enforced in DB connections.
- AllocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- 
[]GetDatabase Instances Instance Setting Ip Configuration Authorized Network 
- EnablePrivate boolPath For Google Cloud Services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- Ipv4Enabled bool
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- PrivateNetwork string
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- PscConfigs []GetDatabase Instances Instance Setting Ip Configuration Psc Config 
- PSC settings for a Cloud SQL instance.
- ServerCa stringMode 
- Specify how the server certificate's Certificate Authority is hosted.
- ServerCa stringPool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- SslMode string
- Specify how SSL connection should be enforced in DB connections.
- allocatedIp StringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- 
List<GetDatabase Instances Instance Setting Ip Configuration Authorized Network> 
- enablePrivate BooleanPath For Google Cloud Services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- ipv4Enabled Boolean
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- privateNetwork String
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- pscConfigs List<GetDatabase Instances Instance Setting Ip Configuration Psc Config> 
- PSC settings for a Cloud SQL instance.
- serverCa StringMode 
- Specify how the server certificate's Certificate Authority is hosted.
- serverCa StringPool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- sslMode String
- Specify how SSL connection should be enforced in DB connections.
- allocatedIp stringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- 
GetDatabase Instances Instance Setting Ip Configuration Authorized Network[] 
- enablePrivate booleanPath For Google Cloud Services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- ipv4Enabled boolean
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- privateNetwork string
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- pscConfigs GetDatabase Instances Instance Setting Ip Configuration Psc Config[] 
- PSC settings for a Cloud SQL instance.
- serverCa stringMode 
- Specify how the server certificate's Certificate Authority is hosted.
- serverCa stringPool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- sslMode string
- Specify how SSL connection should be enforced in DB connections.
- allocated_ip_ strrange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- 
Sequence[GetDatabase Instances Instance Setting Ip Configuration Authorized Network] 
- enable_private_ boolpath_ for_ google_ cloud_ services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- ipv4_enabled bool
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- private_network str
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- psc_configs Sequence[GetDatabase Instances Instance Setting Ip Configuration Psc Config] 
- PSC settings for a Cloud SQL instance.
- server_ca_ strmode 
- Specify how the server certificate's Certificate Authority is hosted.
- server_ca_ strpool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- ssl_mode str
- Specify how SSL connection should be enforced in DB connections.
- allocatedIp StringRange 
- The name of the allocated ip range for the private ip CloudSQL instance. For example: "google-managed-services-default". If set, the instance ip 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?.
- List<Property Map>
- enablePrivate BooleanPath For Google Cloud Services 
- Whether Google Cloud services such as BigQuery are allowed to access data in this Cloud SQL instance over a private IP connection. SQLSERVER database type is not supported.
- ipv4Enabled Boolean
- Whether this Cloud SQL instance should be assigned a public IPV4 address. At least ipv4_enabled must be enabled or a private_network must be configured.
- privateNetwork String
- The VPC network from which the Cloud SQL instance is accessible for private IP. For example, projects/myProject/global/networks/default. Specifying a network enables private IP. At least ipv4_enabled must be enabled or a private_network must be configured. This setting can be updated, but it cannot be removed after it is set.
- pscConfigs List<Property Map>
- PSC settings for a Cloud SQL instance.
- serverCa StringMode 
- Specify how the server certificate's Certificate Authority is hosted.
- serverCa StringPool 
- The resource name of the server CA pool for an instance with "CUSTOMER_MANAGED_CAS_CA" as the "server_ca_mode".
- sslMode String
- Specify how SSL connection should be enforced in DB connections.
GetDatabaseInstancesInstanceSettingIpConfigurationAuthorizedNetwork        
- ExpirationTime string
- Name string
- Value string
- ExpirationTime string
- Name string
- Value string
- expirationTime String
- name String
- value String
- expirationTime string
- name string
- value string
- expiration_time str
- name str
- value str
- expirationTime String
- name String
- value String
GetDatabaseInstancesInstanceSettingIpConfigurationPscConfig        
- AllowedConsumer List<string>Projects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- PscAuto List<GetConnections Database Instances Instance Setting Ip Configuration Psc Config Psc Auto Connection> 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- PscEnabled bool
- Whether PSC connectivity is enabled for this instance.
- AllowedConsumer []stringProjects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- PscAuto []GetConnections Database Instances Instance Setting Ip Configuration Psc Config Psc Auto Connection 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- PscEnabled bool
- Whether PSC connectivity is enabled for this instance.
- allowedConsumer List<String>Projects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- pscAuto List<GetConnections Database Instances Instance Setting Ip Configuration Psc Config Psc Auto Connection> 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- pscEnabled Boolean
- Whether PSC connectivity is enabled for this instance.
- allowedConsumer string[]Projects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- pscAuto GetConnections Database Instances Instance Setting Ip Configuration Psc Config Psc Auto Connection[] 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- pscEnabled boolean
- Whether PSC connectivity is enabled for this instance.
- allowed_consumer_ Sequence[str]projects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- psc_auto_ Sequence[Getconnections Database Instances Instance Setting Ip Configuration Psc Config Psc Auto Connection] 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- psc_enabled bool
- Whether PSC connectivity is enabled for this instance.
- allowedConsumer List<String>Projects 
- List of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects. Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
- pscAuto List<Property Map>Connections 
- A comma-separated list of networks or a comma-separated list of network-project pairs. Each project in this list is represented by a project number (numeric) or by a project ID (alphanumeric). This allows Private Service Connect connections to be created automatically for the specified networks.
- pscEnabled Boolean
- Whether PSC connectivity is enabled for this instance.
GetDatabaseInstancesInstanceSettingIpConfigurationPscConfigPscAutoConnection           
- ConsumerNetwork string
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- ConsumerService stringProject Id 
- The project ID of consumer service project of this consumer endpoint.
- ConsumerNetwork string
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- ConsumerService stringProject Id 
- The project ID of consumer service project of this consumer endpoint.
- consumerNetwork String
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- consumerService StringProject Id 
- The project ID of consumer service project of this consumer endpoint.
- consumerNetwork string
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- consumerService stringProject Id 
- The project ID of consumer service project of this consumer endpoint.
- consumer_network str
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- consumer_service_ strproject_ id 
- The project ID of consumer service project of this consumer endpoint.
- consumerNetwork String
- The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name. The consumer host project of this network might be different from the consumer service project.
- consumerService StringProject Id 
- The project ID of consumer service project of this consumer endpoint.
GetDatabaseInstancesInstanceSettingLocationPreference      
- FollowGae stringApplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- SecondaryZone string
- The preferred Compute Engine zone for the secondary/failover
- Zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- FollowGae stringApplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- SecondaryZone string
- The preferred Compute Engine zone for the secondary/failover
- Zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- followGae StringApplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- secondaryZone String
- The preferred Compute Engine zone for the secondary/failover
- zone String
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- followGae stringApplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- secondaryZone string
- The preferred Compute Engine zone for the secondary/failover
- zone string
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- follow_gae_ strapplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- secondary_zone str
- The preferred Compute Engine zone for the secondary/failover
- zone str
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
- followGae StringApplication 
- A Google App Engine application whose zone to remain in. Must be in the same region as this instance.
- secondaryZone String
- The preferred Compute Engine zone for the secondary/failover
- zone String
- To filter out the Cloud SQL instances which are located in the specified zone. This zone refers to the Compute Engine zone that the instance is currently serving from.
GetDatabaseInstancesInstanceSettingMaintenanceWindow      
- Day int
- Day of week (1-7), starting on Monday
- Hour int
- Hour of day (0-23), ignored if day not set
- UpdateTrack string
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
- Day int
- Day of week (1-7), starting on Monday
- Hour int
- Hour of day (0-23), ignored if day not set
- UpdateTrack string
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
- day Integer
- Day of week (1-7), starting on Monday
- hour Integer
- Hour of day (0-23), ignored if day not set
- updateTrack String
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
- day number
- Day of week (1-7), starting on Monday
- hour number
- Hour of day (0-23), ignored if day not set
- updateTrack string
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
- day int
- Day of week (1-7), starting on Monday
- hour int
- Hour of day (0-23), ignored if day not set
- update_track str
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
- day Number
- Day of week (1-7), starting on Monday
- hour Number
- Hour of day (0-23), ignored if day not set
- updateTrack String
- Receive updates after one week (canary) or after two weeks (stable) or after five weeks (week5) of notification.
GetDatabaseInstancesInstanceSettingPasswordValidationPolicy       
- Complexity string
- Password complexity.
- DisallowUsername boolSubstring 
- Disallow username as a part of the password.
- EnablePassword boolPolicy 
- Whether the password policy is enabled or not.
- MinLength int
- Minimum number of characters allowed.
- PasswordChange stringInterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- ReuseInterval int
- Number of previous passwords that cannot be reused.
- Complexity string
- Password complexity.
- DisallowUsername boolSubstring 
- Disallow username as a part of the password.
- EnablePassword boolPolicy 
- Whether the password policy is enabled or not.
- MinLength int
- Minimum number of characters allowed.
- PasswordChange stringInterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- ReuseInterval int
- Number of previous passwords that cannot be reused.
- complexity String
- Password complexity.
- disallowUsername BooleanSubstring 
- Disallow username as a part of the password.
- enablePassword BooleanPolicy 
- Whether the password policy is enabled or not.
- minLength Integer
- Minimum number of characters allowed.
- passwordChange StringInterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- reuseInterval Integer
- Number of previous passwords that cannot be reused.
- complexity string
- Password complexity.
- disallowUsername booleanSubstring 
- Disallow username as a part of the password.
- enablePassword booleanPolicy 
- Whether the password policy is enabled or not.
- minLength number
- Minimum number of characters allowed.
- passwordChange stringInterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- reuseInterval number
- Number of previous passwords that cannot be reused.
- complexity str
- Password complexity.
- disallow_username_ boolsubstring 
- Disallow username as a part of the password.
- enable_password_ boolpolicy 
- Whether the password policy is enabled or not.
- min_length int
- Minimum number of characters allowed.
- password_change_ strinterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- reuse_interval int
- Number of previous passwords that cannot be reused.
- complexity String
- Password complexity.
- disallowUsername BooleanSubstring 
- Disallow username as a part of the password.
- enablePassword BooleanPolicy 
- Whether the password policy is enabled or not.
- minLength Number
- Minimum number of characters allowed.
- passwordChange StringInterval 
- Minimum interval after which the password can be changed. This flag is only supported for PostgresSQL.
- reuseInterval Number
- Number of previous passwords that cannot be reused.
GetDatabaseInstancesInstanceSettingSqlServerAuditConfig        
- Bucket string
- The name of the destination bucket (e.g., gs://mybucket).
- RetentionInterval string
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- UploadInterval string
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- Bucket string
- The name of the destination bucket (e.g., gs://mybucket).
- RetentionInterval string
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- UploadInterval string
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- bucket String
- The name of the destination bucket (e.g., gs://mybucket).
- retentionInterval String
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- uploadInterval String
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- bucket string
- The name of the destination bucket (e.g., gs://mybucket).
- retentionInterval string
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- uploadInterval string
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- bucket str
- The name of the destination bucket (e.g., gs://mybucket).
- retention_interval str
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- upload_interval str
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
- bucket String
- The name of the destination bucket (e.g., gs://mybucket).
- retentionInterval String
- How long to keep generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s"..
- uploadInterval String
- How often to upload generated audit files. A duration in seconds with up to nine fractional digits, terminated by 's'. Example: "3.5s".
Package Details
- Repository
- Google Cloud (GCP) Classic pulumi/pulumi-gcp
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the google-betaTerraform Provider.