SqlFunctions

Functions

Link copied to clipboard

Use this data source to get information about a Cloud SQL instance backup run.

suspend fun getBackupRun(backupId: Int? = null, instance: String, mostRecent: Boolean? = null, project: String? = null): GetBackupRunResult
Link copied to clipboard

Get all of the trusted Certificate Authorities (CAs) for the specified SQL database instance. For more information see the official documentation and API.

suspend fun getCaCerts(argument: suspend GetCaCertsPlainArgsBuilder.() -> Unit): GetCaCertsResult
suspend fun getCaCerts(instance: String, project: String? = null): GetCaCertsResult
Link copied to clipboard

Use this data source to get information about a database in a Cloud SQL instance.

suspend fun getDatabase(argument: suspend GetDatabasePlainArgsBuilder.() -> Unit): GetDatabaseResult
suspend fun getDatabase(instance: String, name: String, project: String? = null): GetDatabaseResult
Link copied to clipboard

Use this data source to get information about a Cloud SQL instance.

suspend fun getDatabaseInstance(name: String, project: String? = null): GetDatabaseInstanceResult
Link copied to clipboard

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.

suspend fun getDatabaseInstances(databaseVersion: String? = null, project: String? = null, region: String? = null, state: String? = null, tier: String? = null, zone: String? = null): GetDatabaseInstancesResult
Link copied to clipboard

Use this data source to get information about a list of databases in a Cloud SQL instance.

suspend fun getDatabases(instance: String, project: String? = null): GetDatabasesResult
Link copied to clipboard
suspend fun getTiers(argument: GetTiersPlainArgs): GetTiersResult

Get all available machine types (tiers) for a project, for example, db-custom-1-3840. For more information see the official documentation and API.

suspend fun getTiers(project: String? = null): GetTiersResult
suspend fun getTiers(argument: suspend GetTiersPlainArgsBuilder.() -> Unit): GetTiersResult