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 Psql service. * * Returns a list of backups. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackups = oci.psql.getBackups({ * backupId: testBackup.id, * backupSourceType: backupBackupSourceType, * compartmentId: compartmentId, * displayName: backupDisplayName, * id: backupId, * state: backupState, * timeEnded: backupTimeEnded, * timeStarted: backupTimeStarted, * }); * ``` */ export declare function getBackups(args?: GetBackupsArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getBackups. */ export interface GetBackupsArgs { /** * A unique identifier for the backup. */ backupId?: string; /** * A filter to return only backups whose backupSourceType matches the given backupSourceType */ backupSourceType?: string; /** * The ID of the compartment in which to list resources. */ compartmentId?: string; /** * A filter to return only resources that match the entire display name given. */ displayName?: string; filters?: inputs.Psql.GetBackupsFilter[]; /** * A unique identifier for the database system. */ id?: string; /** * A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`. */ state?: string; /** * The end date for getting backups. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted datetime string. */ timeEnded?: string; /** * The start date for getting backups. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted datetime string. */ timeStarted?: string; } /** * A collection of values returned by getBackups. */ export interface GetBackupsResult { /** * The list of backup_collection. */ readonly backupCollections: outputs.Psql.GetBackupsBackupCollection[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup in the source region */ readonly backupId?: string; readonly backupSourceType?: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the compartment that contains the backup. */ readonly compartmentId?: string; /** * A user-friendly display name for the backup. Avoid entering confidential information. */ readonly displayName?: string; readonly filters?: outputs.Psql.GetBackupsFilter[]; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the backup. */ readonly id?: string; /** * The current state of the backup. */ readonly state?: string; readonly timeEnded?: string; readonly timeStarted?: string; } /** * This data source provides the list of Backups in Oracle Cloud Infrastructure Psql service. * * Returns a list of backups. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackups = oci.psql.getBackups({ * backupId: testBackup.id, * backupSourceType: backupBackupSourceType, * compartmentId: compartmentId, * displayName: backupDisplayName, * id: backupId, * state: backupState, * timeEnded: backupTimeEnded, * timeStarted: backupTimeStarted, * }); * ``` */ export declare function getBackupsOutput(args?: GetBackupsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getBackups. */ export interface GetBackupsOutputArgs { /** * A unique identifier for the backup. */ backupId?: pulumi.Input; /** * A filter to return only backups whose backupSourceType matches the given backupSourceType */ backupSourceType?: pulumi.Input; /** * The ID of the compartment in which to list resources. */ compartmentId?: pulumi.Input; /** * A filter to return only resources that match the entire display name given. */ displayName?: pulumi.Input; filters?: pulumi.Input[] | undefined>; /** * A unique identifier for the database system. */ id?: pulumi.Input; /** * A filter to return only resources if their `lifecycleState` matches the given `lifecycleState`. */ state?: pulumi.Input; /** * The end date for getting backups. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted datetime string. */ timeEnded?: pulumi.Input; /** * The start date for getting backups. An [RFC 3339](https://tools.ietf.org/rfc/rfc3339) formatted datetime string. */ timeStarted?: pulumi.Input; } //# sourceMappingURL=getBackups.d.ts.map