@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
74 lines (73 loc) • 2.89 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* The `scaleway.block.Volume` data source is used to retrieve information about a Block Storage volume.
* Refer to the Block Storage [product documentation](https://www.scaleway.com/en/docs/block-storage/) and [API documentation](https://www.scaleway.com/en/developers/api/block/) for more information.
*/
/** @deprecated scaleway.index/getblockvolume.getBlockVolume has been deprecated in favor of scaleway.block/getvolume.getVolume */
export declare function getBlockVolume(args?: GetBlockVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetBlockVolumeResult>;
/**
* A collection of arguments for invoking getBlockVolume.
*/
export interface GetBlockVolumeArgs {
/**
* The name of the volume. Only one of `name` and `volumeId` should be specified.
*/
name?: string;
/**
* The unique identifier of the Project to which the volume is associated.
*/
projectId?: string;
/**
* The unique identifier of the volume. Only one of `name` and `volumeId` should be specified.
*/
volumeId?: string;
/**
* ). The zone in which the volume exists.
*/
zone?: string;
}
/**
* A collection of values returned by getBlockVolume.
*/
export interface GetBlockVolumeResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly instanceVolumeId: string;
readonly iops: number;
readonly name?: string;
readonly projectId?: string;
readonly sizeInGb: number;
readonly snapshotId: string;
readonly tags: string[];
readonly volumeId?: string;
readonly zone?: string;
}
/**
* The `scaleway.block.Volume` data source is used to retrieve information about a Block Storage volume.
* Refer to the Block Storage [product documentation](https://www.scaleway.com/en/docs/block-storage/) and [API documentation](https://www.scaleway.com/en/developers/api/block/) for more information.
*/
/** @deprecated scaleway.index/getblockvolume.getBlockVolume has been deprecated in favor of scaleway.block/getvolume.getVolume */
export declare function getBlockVolumeOutput(args?: GetBlockVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBlockVolumeResult>;
/**
* A collection of arguments for invoking getBlockVolume.
*/
export interface GetBlockVolumeOutputArgs {
/**
* The name of the volume. Only one of `name` and `volumeId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The unique identifier of the Project to which the volume is associated.
*/
projectId?: pulumi.Input<string>;
/**
* The unique identifier of the volume. Only one of `name` and `volumeId` should be specified.
*/
volumeId?: pulumi.Input<string>;
/**
* ). The zone in which the volume exists.
*/
zone?: pulumi.Input<string>;
}