UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

97 lines (96 loc) 2.75 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about an instance snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getInstanceSnapshot({ * name: "my-snapshot-name", * }); * const byId = scaleway.getInstanceSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceSnapshot(args?: GetInstanceSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetInstanceSnapshotResult>; /** * A collection of arguments for invoking getInstanceSnapshot. */ export interface GetInstanceSnapshotArgs { /** * The snapshot name. * Only one of `name` and `snapshotId` should be specified. */ name?: string; /** * The snapshot id. * Only one of `name` and `snapshotId` should be specified. */ snapshotId?: string; /** * `zone`) The zone in which the snapshot exists. */ zone?: string; } /** * A collection of values returned by getInstanceSnapshot. */ export interface GetInstanceSnapshotResult { readonly createdAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly imports: outputs.GetInstanceSnapshotImport[]; readonly name?: string; readonly organizationId: string; readonly projectId: string; readonly sizeInGb: number; readonly snapshotId?: string; readonly tags: string[]; readonly type: string; readonly volumeId: string; readonly zone?: string; } /** * Gets information about an instance snapshot. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byName = scaleway.getInstanceSnapshot({ * name: "my-snapshot-name", * }); * const byId = scaleway.getInstanceSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ export declare function getInstanceSnapshotOutput(args?: GetInstanceSnapshotOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetInstanceSnapshotResult>; /** * A collection of arguments for invoking getInstanceSnapshot. */ export interface GetInstanceSnapshotOutputArgs { /** * The snapshot name. * Only one of `name` and `snapshotId` should be specified. */ name?: pulumi.Input<string>; /** * The snapshot id. * Only one of `name` and `snapshotId` should be specified. */ snapshotId?: pulumi.Input<string>; /** * `zone`) The zone in which the snapshot exists. */ zone?: pulumi.Input<string>; }