import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.sql.getDatabaseInstances({ * project: "test-project", * }); * ``` */ export declare function getDatabaseInstances(args?: GetDatabaseInstancesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabaseInstances. */ export interface GetDatabaseInstancesArgs { /** * To filter out the Cloud SQL instances which are of the specified database version. */ databaseVersion?: string; /** * The ID of the project in which the resources belong. If it is not provided, the provider project is used. */ project?: string; /** * To filter out the Cloud SQL instances which are located in the specified region. */ region?: 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`. */ state?: string; /** * To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances. */ tier?: 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. */ zone?: string; } /** * A collection of values returned by getDatabaseInstances. */ export interface GetDatabaseInstancesResult { readonly databaseVersion?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly instances: outputs.sql.GetDatabaseInstancesInstance[]; readonly project?: string; readonly region?: string; readonly state?: string; readonly tier?: string; readonly zone?: string; } /** * 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 * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as gcp from "@pulumi/gcp"; * * const qa = gcp.sql.getDatabaseInstances({ * project: "test-project", * }); * ``` */ export declare function getDatabaseInstancesOutput(args?: GetDatabaseInstancesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabaseInstances. */ export interface GetDatabaseInstancesOutputArgs { /** * To filter out the Cloud SQL instances which are of the specified database version. */ databaseVersion?: pulumi.Input; /** * The ID of the project in which the resources belong. If it is not provided, the provider project is used. */ project?: pulumi.Input; /** * To filter out the Cloud SQL instances which are located in the specified region. */ region?: pulumi.Input; /** * 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`. */ state?: pulumi.Input; /** * To filter out the Cloud SQL instances based on the tier(or machine type) of the database instances. */ tier?: pulumi.Input; /** * 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. */ zone?: pulumi.Input; }