import * as pulumi from "@pulumi/pulumi"; /** * Run restore action in application to restore from recovery point. * * ## Example Usage * * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as nutanix from "@pierskarsenbarg/nutanix"; * * const test = new nutanix.SelfServiceAppRecoveryPoint("test", { * appName: "NAME OF APPLICATION", * actionName: "SNAPSHOT ACTION NAME", * recoveryPointName: "RECOVERY POINT NAME", * }); * // Read available recovery points in app * const snapshots = nutanix.getSelfServiceAppSnapshots({ * appName: "NAME OF APPLICATION", * length: 250, * offset: 0, * }); * const snapshotUuid = snapshots.then(snapshots => .filter(snapshot => snapshot.name == "SNAPSHOT ACTION NAME").map(snapshot => (snapshot.uuid))[0]); * // Restore from recovery point * const testSelfServiceAppRestore = new nutanix.SelfServiceAppRestore("test", { * restoreActionName: "RESTORE ACTION NAME", * appName: "NAME OF APPLICATION", * snapshotUuid: snapshotUuid, * }); * ``` * */ export declare class SelfServiceAppRestore extends pulumi.CustomResource { /** * Get an existing SelfServiceAppRestore resource's state with the given name, ID, and optional extra * properties used to qualify the lookup. * * @param name The _unique_ name of the resulting resource. * @param id The _unique_ provider ID of the resource to lookup. * @param state Any extra arguments used during the lookup. * @param opts Optional settings to control the behavior of the CustomResource. */ static get(name: string, id: pulumi.Input, state?: SelfServiceAppRestoreState, opts?: pulumi.CustomResourceOptions): SelfServiceAppRestore; /** * Returns true if the given object is an instance of SelfServiceAppRestore. This is designed to work even * when multiple copies of the Pulumi SDK have been loaded into the same process. */ static isInstance(obj: any): obj is SelfServiceAppRestore; /** * - (Optional) The name of the application */ readonly appName: pulumi.Output; /** * - (Optional) The UUID of the application. */ readonly appUuid: pulumi.Output; /** * - (Required) The name of the restore action to be performed. */ readonly restoreActionName: pulumi.Output; /** * - (Required) The UUID of the snapshot to which the application will be restored. * * Both (`appName` and `appUuid`) are optional but atleast one of them should be provided for resource to work. */ readonly snapshotUuid: pulumi.Output; /** * - (Computed) This will be set after the restore action has been processed. */ readonly state: pulumi.Output; /** * Create a SelfServiceAppRestore resource with the given unique name, arguments, and options. * * @param name The _unique_ name of the resource. * @param args The arguments to use to populate this resource's properties. * @param opts A bag of options that control this resource's behavior. */ constructor(name: string, args: SelfServiceAppRestoreArgs, opts?: pulumi.CustomResourceOptions); } /** * Input properties used for looking up and filtering SelfServiceAppRestore resources. */ export interface SelfServiceAppRestoreState { /** * - (Optional) The name of the application */ appName?: pulumi.Input; /** * - (Optional) The UUID of the application. */ appUuid?: pulumi.Input; /** * - (Required) The name of the restore action to be performed. */ restoreActionName?: pulumi.Input; /** * - (Required) The UUID of the snapshot to which the application will be restored. * * Both (`appName` and `appUuid`) are optional but atleast one of them should be provided for resource to work. */ snapshotUuid?: pulumi.Input; /** * - (Computed) This will be set after the restore action has been processed. */ state?: pulumi.Input; } /** * The set of arguments for constructing a SelfServiceAppRestore resource. */ export interface SelfServiceAppRestoreArgs { /** * - (Optional) The name of the application */ appName?: pulumi.Input; /** * - (Optional) The UUID of the application. */ appUuid?: pulumi.Input; /** * - (Required) The name of the restore action to be performed. */ restoreActionName: pulumi.Input; /** * - (Required) The UUID of the snapshot to which the application will be restored. * * Both (`appName` and `appUuid`) are optional but atleast one of them should be provided for resource to work. */ snapshotUuid: pulumi.Input; } //# sourceMappingURL=selfServiceAppRestore.d.ts.map