@pulumiverse/scaleway
Version:
A Pulumi package for creating and managing Scaleway cloud resources.
83 lines (82 loc) • 3.23 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* The `scaleway.block.Snapshot` data source is used to retrieve information about a Block Storage volume snapshot.
*
* 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/getblocksnapshot.getBlockSnapshot has been deprecated in favor of scaleway.block/getsnapshot.getSnapshot */
export declare function getBlockSnapshot(args?: GetBlockSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetBlockSnapshotResult>;
/**
* A collection of arguments for invoking getBlockSnapshot.
*/
export interface GetBlockSnapshotArgs {
/**
* The name of the snapshot. Only one of name or snapshotId should be specified.
*/
name?: string;
/**
* The unique identifier of the Project to which the snapshot is associated.
*/
projectId?: string;
/**
* The unique identifier of the snapshot. Only one of `name` and `snapshotId` should be specified.
*/
snapshotId?: string;
/**
* The unique identifier of the volume from which the snapshot was created.
*/
volumeId?: string;
/**
* ) The zone in which the snapshot exists.
*/
zone?: string;
}
/**
* A collection of values returned by getBlockSnapshot.
*/
export interface GetBlockSnapshotResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly imports: outputs.GetBlockSnapshotImport[];
readonly name?: string;
readonly projectId?: string;
readonly snapshotId?: string;
readonly tags: string[];
readonly volumeId?: string;
readonly zone?: string;
}
/**
* The `scaleway.block.Snapshot` data source is used to retrieve information about a Block Storage volume snapshot.
*
* 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/getblocksnapshot.getBlockSnapshot has been deprecated in favor of scaleway.block/getsnapshot.getSnapshot */
export declare function getBlockSnapshotOutput(args?: GetBlockSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBlockSnapshotResult>;
/**
* A collection of arguments for invoking getBlockSnapshot.
*/
export interface GetBlockSnapshotOutputArgs {
/**
* The name of the snapshot. Only one of name or snapshotId should be specified.
*/
name?: pulumi.Input<string>;
/**
* The unique identifier of the Project to which the snapshot is associated.
*/
projectId?: pulumi.Input<string>;
/**
* The unique identifier of the snapshot. Only one of `name` and `snapshotId` should be specified.
*/
snapshotId?: pulumi.Input<string>;
/**
* The unique identifier of the volume from which the snapshot was created.
*/
volumeId?: pulumi.Input<string>;
/**
* ) The zone in which the snapshot exists.
*/
zone?: pulumi.Input<string>;
}