import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Get a block storage volume in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const volume = ovh.getCloudStorageBlockVolume({ * serviceName: "xxxxxxxxx", * id: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getCloudStorageBlockVolume(args: GetCloudStorageBlockVolumeArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getCloudStorageBlockVolume. */ export interface GetCloudStorageBlockVolumeArgs { /** * The ID of the volume. */ id: string; /** * The id of the public cloud project. */ serviceName: string; } /** * A collection of values returned by getCloudStorageBlockVolume. */ export interface GetCloudStorageBlockVolumeResult { /** * Instances the volume is attached to: */ readonly attachedInstances: outputs.GetCloudStorageBlockVolumeAttachedInstance[]; /** * Whether the volume is bootable. */ readonly bootable: boolean; /** * Encryption configuration of the volume: */ readonly encryption: outputs.GetCloudStorageBlockVolumeEncryption; /** * Instance ID. */ readonly id: string; /** * Location of the volume: */ readonly location: outputs.GetCloudStorageBlockVolumeLocation; /** * Volume name. */ readonly name: string; /** * Volume readiness in the system (`CREATING`, `DELETING`, `ERROR`, `OUT_OF_SYNC`, `READY`, `UPDATING`). */ readonly resourceStatus: string; readonly serviceName: string; /** * Size of the volume in GB. */ readonly size: number; /** * Volume status (`AVAILABLE`, `IN_USE`, `CREATING`, `DELETING`, `ATTACHING`, `DETACHING`, `EXTENDING`, `ERROR`, `ERROR_DELETING`, `ERROR_BACKING_UP`, `ERROR_RESTORING`, `ERROR_EXTENDING`). */ readonly status: string; /** * Volume type (`CLASSIC`, `HIGH_SPEED`, `HIGH_SPEED_GEN2`). */ readonly volumeType: string; } /** * Get a block storage volume in a public cloud project. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as ovh from "@ovhcloud/pulumi-ovh"; * * const volume = ovh.getCloudStorageBlockVolume({ * serviceName: "xxxxxxxxx", * id: "00000000-0000-0000-0000-000000000000", * }); * ``` */ export declare function getCloudStorageBlockVolumeOutput(args: GetCloudStorageBlockVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getCloudStorageBlockVolume. */ export interface GetCloudStorageBlockVolumeOutputArgs { /** * The ID of the volume. */ id: pulumi.Input; /** * The id of the public cloud project. */ serviceName: pulumi.Input; }