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 Pluggable Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of the pluggable databases in a database or compartment. You must provide either a `databaseId` or `compartmentId` value. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPluggableDatabases = oci.database.getPluggableDatabases({ * compartmentId: compartmentId, * databaseId: testDatabase.id, * pdbName: pluggableDatabasePdbName, * state: pluggableDatabaseState, * }); * ``` */ export declare function getPluggableDatabases(args?: GetPluggableDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getPluggableDatabases. */ export interface GetPluggableDatabasesArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ databaseId?: string; filters?: inputs.Database.GetPluggableDatabasesFilter[]; /** * A filter to return only pluggable databases that match the entire name given. The match is not case sensitive. */ pdbName?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; } /** * A collection of values returned by getPluggableDatabases. */ export interface GetPluggableDatabasesResult { /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId?: string; readonly databaseId?: string; readonly filters?: outputs.Database.GetPluggableDatabasesFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * The name for the pluggable database (PDB). The name is unique in the context of a [container database](https://docs.cloud.oracle.com/iaas/api/#/en/database/latest/Database/). The name must begin with an alphabetic character and can contain a maximum of thirty alphanumeric characters. Special characters are not permitted. The pluggable database name should not be same as the container database name. */ readonly pdbName?: string; /** * The list of pluggable_databases. */ readonly pluggableDatabases: outputs.Database.GetPluggableDatabasesPluggableDatabase[]; /** * The current state of the pluggable database. */ readonly state?: string; } /** * This data source provides the list of Pluggable Databases in Oracle Cloud Infrastructure Database service. * * Gets a list of the pluggable databases in a database or compartment. You must provide either a `databaseId` or `compartmentId` value. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testPluggableDatabases = oci.database.getPluggableDatabases({ * compartmentId: compartmentId, * databaseId: testDatabase.id, * pdbName: pluggableDatabasePdbName, * state: pluggableDatabaseState, * }); * ``` */ export declare function getPluggableDatabasesOutput(args?: GetPluggableDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getPluggableDatabases. */ export interface GetPluggableDatabasesOutputArgs { /** * The compartment [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm). */ compartmentId?: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ databaseId?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A filter to return only pluggable databases that match the entire name given. The match is not case sensitive. */ pdbName?: pulumi.Input; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; } //# sourceMappingURL=getPluggableDatabases.d.ts.map