UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

93 lines (92 loc) 2.54 kB
import * as pulumi from "@pulumi/pulumi"; /** * Gets information about an instance volume. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myVolume = scaleway.getInstanceVolume({ * volumeId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceVolume(args?: GetInstanceVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceVolumeResult>; /** * A collection of arguments for invoking getInstanceVolume. */ export interface GetInstanceVolumeArgs { /** * The volume name. * Only one of `name` and `volumeId` should be specified. */ name?: string; /** * The volume id. * Only one of `name` and `volumeId` should be specified. */ volumeId?: string; /** * `zone`) The zone in which the volume exists. */ zone?: string; } /** * A collection of values returned by getInstanceVolume. */ export interface GetInstanceVolumeResult { readonly fromSnapshotId: string; readonly fromVolumeId: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly name?: string; /** * The ID of the organization the volume is associated with. */ readonly organizationId: string; readonly projectId: string; readonly serverId: string; readonly sizeInGb: number; readonly tags: string[]; readonly type: string; readonly volumeId?: string; readonly zone?: string; } /** * Gets information about an instance volume. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const myVolume = scaleway.getInstanceVolume({ * volumeId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceVolumeOutput(args?: GetInstanceVolumeOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceVolumeResult>; /** * A collection of arguments for invoking getInstanceVolume. */ export interface GetInstanceVolumeOutputArgs { /** * The volume name. * Only one of `name` and `volumeId` should be specified. */ name?: pulumi.Input<string>; /** * The volume id. * Only one of `name` and `volumeId` should be specified. */ volumeId?: pulumi.Input<string>; /** * `zone`) The zone in which the volume exists. */ zone?: pulumi.Input<string>; }