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 Backups in Oracle Cloud Infrastructure Database service. * * Gets a list of backups based on the `databaseId` or `compartmentId` specified. Either one of these query parameters must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackups = oci.database.getBackups({ * backupDestinationType: backupBackupDestinationType, * compartmentId: compartmentId, * databaseId: testDatabase.id, * shapeFamily: backupShapeFamily, * state: backupState, * timeExpiryScheduledGreaterThanOrEqualTo: backupTimeExpiryScheduledGreaterThanOrEqualTo, * timeExpiryScheduledLessThan: backupTimeExpiryScheduledLessThan, * type: backupType, * version: backupVersion, * }); * ``` */ export declare function getBackups(args?: GetBackupsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getBackups. */ export interface GetBackupsArgs { /** * A filter to return only resources that match the given backup destination type. */ backupDestinationType?: string; /** * 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.GetBackupsFilter[]; /** * If provided, filters the results to the set of database versions which are supported for the given shape family. */ shapeFamily?: string; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: string; /** * The start of date-time range of expiration for the long term backups to be fetched. */ timeExpiryScheduledGreaterThanOrEqualTo?: string; /** * The end of date-time range of expiration for the long term backups to be fetched. */ timeExpiryScheduledLessThan?: string; /** * A filter to return only backups that matches with the given type of Backup. */ type?: string; /** * A filter to return only resources that match the given database version. */ version?: string; } /** * A collection of values returned by getBackups. */ export interface GetBackupsResult { /** * Type of the backup destination. */ readonly backupDestinationType?: string; /** * The list of backups. */ readonly backups: outputs.Database.GetBackupsBackup[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment. */ readonly compartmentId?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the database. */ readonly databaseId?: string; readonly filters?: outputs.Database.GetBackupsFilter[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly shapeFamily?: string; /** * The current state of the backup. */ readonly state?: string; readonly timeExpiryScheduledGreaterThanOrEqualTo?: string; readonly timeExpiryScheduledLessThan?: string; /** * The type of backup. */ readonly type?: string; /** * Version of the backup's source database */ readonly version?: string; } /** * This data source provides the list of Backups in Oracle Cloud Infrastructure Database service. * * Gets a list of backups based on the `databaseId` or `compartmentId` specified. Either one of these query parameters must be provided. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackups = oci.database.getBackups({ * backupDestinationType: backupBackupDestinationType, * compartmentId: compartmentId, * databaseId: testDatabase.id, * shapeFamily: backupShapeFamily, * state: backupState, * timeExpiryScheduledGreaterThanOrEqualTo: backupTimeExpiryScheduledGreaterThanOrEqualTo, * timeExpiryScheduledLessThan: backupTimeExpiryScheduledLessThan, * type: backupType, * version: backupVersion, * }); * ``` */ export declare function getBackupsOutput(args?: GetBackupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getBackups. */ export interface GetBackupsOutputArgs { /** * A filter to return only resources that match the given backup destination type. */ backupDestinationType?: pulumi.Input; /** * 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>; /** * If provided, filters the results to the set of database versions which are supported for the given shape family. */ shapeFamily?: pulumi.Input; /** * A filter to return only resources that match the given lifecycle state exactly. */ state?: pulumi.Input; /** * The start of date-time range of expiration for the long term backups to be fetched. */ timeExpiryScheduledGreaterThanOrEqualTo?: pulumi.Input; /** * The end of date-time range of expiration for the long term backups to be fetched. */ timeExpiryScheduledLessThan?: pulumi.Input; /** * A filter to return only backups that matches with the given type of Backup. */ type?: pulumi.Input; /** * A filter to return only resources that match the given database version. */ version?: pulumi.Input; } //# sourceMappingURL=getBackups.d.ts.map