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 Managed Databases in Oracle Cloud Infrastructure Database Management service. * * Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment. * Managed Databases can be filtered based on the name parameter. Only one of the parameters, ID or name * should be provided. If neither of these parameters is provided, all the Managed Databases in the compartment * are listed. Managed Databases can also be filtered based on the deployment type and management option. * If the deployment type is not specified or if it is `ONPREMISE`, then the management option is not * considered and Managed Databases with `ADVANCED` management option are listed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabases = oci.databasemanagement.getManagedDatabases({ * compartmentId: compartmentId, * deploymentType: managedDatabaseDeploymentType, * externalExadataInfrastructureId: testExternalExadataInfrastructure.id, * id: managedDatabaseId, * managementOption: managedDatabaseManagementOption, * name: managedDatabaseName, * }); * ``` */ export declare function getManagedDatabases(args: GetManagedDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabases. */ export interface GetManagedDatabasesArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; /** * A filter to return Managed Databases of the specified deployment type. */ deploymentType?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. */ externalExadataInfrastructureId?: string; filters?: inputs.DatabaseManagement.GetManagedDatabasesFilter[]; /** * The identifier of the resource. */ id?: string; /** * A filter to return Managed Databases with the specified management option. */ managementOption?: string; /** * A filter to return only resources that match the entire name. */ name?: string; } /** * A collection of values returned by getManagedDatabases. */ export interface GetManagedDatabasesResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the Managed Database Group resides. */ readonly compartmentId: string; /** * The infrastructure used to deploy the Oracle Database. */ readonly deploymentType?: string; readonly externalExadataInfrastructureId?: string; readonly filters?: outputs.DatabaseManagement.GetManagedDatabasesFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database Group. */ readonly id?: string; /** * The list of managed_database_collection. */ readonly managedDatabaseCollections: outputs.DatabaseManagement.GetManagedDatabasesManagedDatabaseCollection[]; /** * The management option used when enabling Database Management. */ readonly managementOption?: string; /** * The name of the Managed Database. */ readonly name?: string; } /** * This data source provides the list of Managed Databases in Oracle Cloud Infrastructure Database Management service. * * Gets the Managed Database for a specific ID or the list of Managed Databases in a specific compartment. * Managed Databases can be filtered based on the name parameter. Only one of the parameters, ID or name * should be provided. If neither of these parameters is provided, all the Managed Databases in the compartment * are listed. Managed Databases can also be filtered based on the deployment type and management option. * If the deployment type is not specified or if it is `ONPREMISE`, then the management option is not * considered and Managed Databases with `ADVANCED` management option are listed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabases = oci.databasemanagement.getManagedDatabases({ * compartmentId: compartmentId, * deploymentType: managedDatabaseDeploymentType, * externalExadataInfrastructureId: testExternalExadataInfrastructure.id, * id: managedDatabaseId, * managementOption: managedDatabaseManagementOption, * name: managedDatabaseName, * }); * ``` */ export declare function getManagedDatabasesOutput(args: GetManagedDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabases. */ export interface GetManagedDatabasesOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; /** * A filter to return Managed Databases of the specified deployment type. */ deploymentType?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Exadata infrastructure. */ externalExadataInfrastructureId?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The identifier of the resource. */ id?: pulumi.Input; /** * A filter to return Managed Databases with the specified management option. */ managementOption?: pulumi.Input; /** * A filter to return only resources that match the entire name. */ name?: pulumi.Input; } //# sourceMappingURL=getManagedDatabases.d.ts.map