import * as pulumi from "@pulumi/pulumi"; /** * Use this data source to get the ID of an available Shared File System snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const snapshot1 = openstack.sharedfilesystem.getSnapshot({ * name: "snapshot_1", * }); * ``` */ export declare function getSnapshot(args?: GetSnapshotArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getSnapshot. */ export interface GetSnapshotArgs { /** * The human-readable description of the snapshot. */ description?: string; /** * The name of the snapshot. */ name?: string; /** * The region in which to obtain the V2 Shared File System client. */ region?: string; /** * The UUID of the source share that was used to create the snapshot. */ shareId?: string; /** * A snapshot status filter. A valid value is `available`, `error`, * `creating`, `deleting`, `manageStarting`, `manageError`, `unmanageStarting`, * `unmanageError` or `errorDeleting`. */ status?: string; } /** * A collection of values returned by getSnapshot. */ export interface GetSnapshotResult { /** * See Argument Reference above. */ readonly description: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; /** * See Argument Reference above. */ readonly name: string; /** * See Argument Reference above. */ readonly projectId: string; readonly region: string; /** * The UUID of the source share that was used to create the snapshot. */ readonly shareId: string; /** * The file system protocol of a share snapshot. */ readonly shareProto: string; /** * The share snapshot size, in GBs. */ readonly shareSize: number; /** * The snapshot size, in GBs. */ readonly size: number; /** * See Argument Reference above. */ readonly status: string; } /** * Use this data source to get the ID of an available Shared File System snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as openstack from "@pulumi/openstack"; * * const snapshot1 = openstack.sharedfilesystem.getSnapshot({ * name: "snapshot_1", * }); * ``` */ export declare function getSnapshotOutput(args?: GetSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getSnapshot. */ export interface GetSnapshotOutputArgs { /** * The human-readable description of the snapshot. */ description?: pulumi.Input; /** * The name of the snapshot. */ name?: pulumi.Input; /** * The region in which to obtain the V2 Shared File System client. */ region?: pulumi.Input; /** * The UUID of the source share that was used to create the snapshot. */ shareId?: pulumi.Input; /** * A snapshot status filter. A valid value is `available`, `error`, * `creating`, `deleting`, `manageStarting`, `manageError`, `unmanageStarting`, * `unmanageError` or `errorDeleting`. */ status?: pulumi.Input; }