UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

111 lines (110 loc) 3.43 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"; * * // Get info by snapshot name * const byName = scaleway.instance.getSnapshot({ * name: "my-snapshot-name", * }); * // Get info by snapshot ID * const byId = scaleway.instance.getSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot */ 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; /** * `projectId`) The ID of the project the snapshot is associated with. */ projectId?: 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"; * * // Get info by snapshot name * const byName = scaleway.instance.getSnapshot({ * name: "my-snapshot-name", * }); * // Get info by snapshot ID * const byId = scaleway.instance.getSnapshot({ * snapshotId: "11111111-1111-1111-1111-111111111111", * }); * ``` */ /** @deprecated scaleway.index/getinstancesnapshot.getInstanceSnapshot has been deprecated in favor of scaleway.instance/getsnapshot.getSnapshot */ export declare function getInstanceSnapshotOutput(args?: GetInstanceSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): 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>; /** * `projectId`) The ID of the project the snapshot is associated with. */ projectId?: 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>; }