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 Database Groups in Oracle Cloud Infrastructure Database Management service. * * Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in * a specific compartment. Managed Database Groups can also be filtered based on the name parameter. * Only one of the parameters, ID or name should be provided. If none of these parameters is provided, * all the Managed Database Groups in the compartment are listed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseGroups = oci.databasemanagement.getManagedDatabaseGroups({ * compartmentId: compartmentId, * id: managedDatabaseGroupId, * name: managedDatabaseGroupName, * state: managedDatabaseGroupState, * }); * ``` */ export declare function getManagedDatabaseGroups(args: GetManagedDatabaseGroupsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getManagedDatabaseGroups. */ export interface GetManagedDatabaseGroupsArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: string; filters?: inputs.DatabaseManagement.GetManagedDatabaseGroupsFilter[]; /** * The identifier of the resource. Only one of the parameters, id or name should be provided. */ id?: string; /** * A filter to return only resources that match the entire name. Only one of the parameters, id or name should be provided */ name?: string; /** * The lifecycle state of a resource. */ state?: string; } /** * A collection of values returned by getManagedDatabaseGroups. */ export interface GetManagedDatabaseGroupsResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment in which the Managed Database resides. */ readonly compartmentId: string; readonly filters?: outputs.DatabaseManagement.GetManagedDatabaseGroupsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the Managed Database. */ readonly id?: string; /** * The list of managed_database_group_collection. */ readonly managedDatabaseGroupCollections: outputs.DatabaseManagement.GetManagedDatabaseGroupsManagedDatabaseGroupCollection[]; /** * The name of the Managed Database Group. */ readonly name?: string; /** * The current lifecycle state of the Managed Database Group. */ readonly state?: string; } /** * This data source provides the list of Managed Database Groups in Oracle Cloud Infrastructure Database Management service. * * Gets the Managed Database Group for a specific ID or the list of Managed Database Groups in * a specific compartment. Managed Database Groups can also be filtered based on the name parameter. * Only one of the parameters, ID or name should be provided. If none of these parameters is provided, * all the Managed Database Groups in the compartment are listed. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testManagedDatabaseGroups = oci.databasemanagement.getManagedDatabaseGroups({ * compartmentId: compartmentId, * id: managedDatabaseGroupId, * name: managedDatabaseGroupName, * state: managedDatabaseGroupState, * }); * ``` */ export declare function getManagedDatabaseGroupsOutput(args: GetManagedDatabaseGroupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getManagedDatabaseGroups. */ export interface GetManagedDatabaseGroupsOutputArgs { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ compartmentId: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The identifier of the resource. Only one of the parameters, id or name should be provided. */ id?: pulumi.Input; /** * A filter to return only resources that match the entire name. Only one of the parameters, id or name should be provided */ name?: pulumi.Input; /** * The lifecycle state of a resource. */ state?: pulumi.Input; } //# sourceMappingURL=getManagedDatabaseGroups.d.ts.map