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 Protected Databases in Oracle Cloud Infrastructure Recovery service. * * Lists the protected databases based on the specified parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectedDatabases = oci.recoverymod.getProtectedDatabases({ * compartmentId: compartmentId, * displayName: protectedDatabaseDisplayName, * id: protectedDatabaseId, * protectionPolicyId: testProtectionPolicy.id, * recoveryServiceSubnetId: testRecoveryServiceSubnet.id, * state: protectedDatabaseState, * }); * ``` */ export declare function getProtectedDatabases(args: GetProtectedDatabasesArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getProtectedDatabases. */ export interface GetProtectedDatabasesArgs { /** * The compartment OCID. */ compartmentId: string; /** * A filter to return only resources that match the entire 'displayname' given. */ displayName?: string; filters?: inputs.RecoveryMod.GetProtectedDatabasesFilter[]; /** * The protected database OCID. */ id?: string; /** * The protection policy OCID. */ protectionPolicyId?: string; /** * The recovery service subnet OCID. */ recoveryServiceSubnetId?: string; /** * A filter to return only the resources that match the specified lifecycle state. */ state?: string; } /** * A collection of values returned by getProtectedDatabases. */ export interface GetProtectedDatabasesResult { /** * The OCID of the compartment that contains the protected database. */ readonly compartmentId: string; /** * The protected database name. You can change the displayName. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.RecoveryMod.GetProtectedDatabasesFilter[]; /** * The OCID of the protected database. */ readonly id?: string; /** * The list of protected_database_collection. */ readonly protectedDatabaseCollections: outputs.RecoveryMod.GetProtectedDatabasesProtectedDatabaseCollection[]; /** * The OCID of the protection policy associated with the protected database. */ readonly protectionPolicyId?: string; /** * Recovery Service Subnet Identifier. */ readonly recoveryServiceSubnetId?: string; /** * The current state of the Protected Database. */ readonly state?: string; } /** * This data source provides the list of Protected Databases in Oracle Cloud Infrastructure Recovery service. * * Lists the protected databases based on the specified parameters. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testProtectedDatabases = oci.recoverymod.getProtectedDatabases({ * compartmentId: compartmentId, * displayName: protectedDatabaseDisplayName, * id: protectedDatabaseId, * protectionPolicyId: testProtectionPolicy.id, * recoveryServiceSubnetId: testRecoveryServiceSubnet.id, * state: protectedDatabaseState, * }); * ``` */ export declare function getProtectedDatabasesOutput(args: GetProtectedDatabasesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getProtectedDatabases. */ export interface GetProtectedDatabasesOutputArgs { /** * The compartment OCID. */ compartmentId: pulumi.Input; /** * A filter to return only resources that match the entire 'displayname' given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * The protected database OCID. */ id?: pulumi.Input; /** * The protection policy OCID. */ protectionPolicyId?: pulumi.Input; /** * The recovery service subnet OCID. */ recoveryServiceSubnetId?: pulumi.Input; /** * A filter to return only the resources that match the specified lifecycle state. */ state?: pulumi.Input; } //# sourceMappingURL=getProtectedDatabases.d.ts.map