import * as pulumi from "@pulumi/pulumi"; import * as inputs from "../types/input"; import * as outputs from "../types/output"; /** * This data source provides the list of Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of the databases in the specified Database Home. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDatabases = oci.database.getDatabases({ * compartmentId: compartmentId, * dbHomeId: testDbHome.id, * dbName: databaseDbName, * failoverTargets: databaseFailoverTargets, * managedAutoFailover: databaseManagedAutoFailover, * state: databaseState, * systemId: testSystem.id, * }); * ``` */ export declare function getDatabases(args: GetDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getDatabases. */ export interface GetDatabasesArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: string; /** * A Database Home [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). *Note: Either `dbHomeId` or `systemId` is required to make the LIST API call. */ dbHomeId?: string; /** * A filter to return only resources that match the entire database name given. The match is not case sensitive. */ dbName?: string; /** * Filter the databases by failoverTargets param. */ failoverTargets?: string; filters?: inputs.Database.GetDatabasesFilter[]; /** * Filter the databases by managed auto failover param. */ managedAutoFailover?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata DB system that you want to filter the database results by. Applies only to Exadata DB systems. */ systemId?: string; } /** * A collection of values returned by getDatabases. */ export interface GetDatabasesResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId: string; /** * The list of databases. */ readonly databases: outputs.Database.GetDatabasesDatabase[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Database Home. */ readonly dbHomeId?: string; /** * The database name. */ readonly dbName?: string; readonly failoverTargets?: string; readonly filters?: outputs.Database.GetDatabasesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly managedAutoFailover?: string; /** * The current state of the database. */ readonly state?: string; readonly systemId?: string; } /** * This data source provides the list of Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of the databases in the specified Database Home. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testDatabases = oci.database.getDatabases({ * compartmentId: compartmentId, * dbHomeId: testDbHome.id, * dbName: databaseDbName, * failoverTargets: databaseFailoverTargets, * managedAutoFailover: databaseManagedAutoFailover, * state: databaseState, * systemId: testSystem.id, * }); * ``` */ export declare function getDatabasesOutput(args: GetDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getDatabases. */ export interface GetDatabasesOutputArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId: pulumi.Input; /** * A Database Home [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). *Note: Either `dbHomeId` or `systemId` is required to make the LIST API call. */ dbHomeId?: pulumi.Input; /** * A filter to return only resources that match the entire database name given. The match is not case sensitive. */ dbName?: pulumi.Input; /** * Filter the databases by failoverTargets param. */ failoverTargets?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * Filter the databases by managed auto failover param. */ managedAutoFailover?: pulumi.Input; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata DB system that you want to filter the database results by. Applies only to Exadata DB systems. */ systemId?: pulumi.Input; } //# sourceMappingURL=getDatabases.d.ts.map