@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
79 lines (78 loc) • 2.15 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
/**
* Gets information about an instance volume.
*/
export declare function getVolume(args?: GetVolumeArgs, opts?: pulumi.InvokeOptions): Promise<GetVolumeResult>;
/**
* A collection of arguments for invoking getVolume.
*/
export interface GetVolumeArgs {
/**
* The volume name.
* Only one of `name` and `volumeId` should be specified.
*/
name?: string;
/**
* The ID of the project the volume is associated with.
*/
projectId?: 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 getVolume.
*/
export interface GetVolumeResult {
readonly fromSnapshotId: string;
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly migrateToSbs: boolean;
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.
*/
export declare function getVolumeOutput(args?: GetVolumeOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetVolumeResult>;
/**
* A collection of arguments for invoking getVolume.
*/
export interface GetVolumeOutputArgs {
/**
* The volume name.
* Only one of `name` and `volumeId` should be specified.
*/
name?: pulumi.Input<string>;
/**
* The ID of the project the volume is associated with.
*/
projectId?: 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>;
}