@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
100 lines • 3.05 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides details about a Hetzner Storage Box Snapshot.
*
* See the [Storage Box Snapshots API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-box-snapshots) for more details.
*
* ## Example Usage
*/
export declare function getStorageBoxSnapshot(args: GetStorageBoxSnapshotArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageBoxSnapshotResult>;
/**
* A collection of arguments for invoking getStorageBoxSnapshot.
*/
export interface GetStorageBoxSnapshotArgs {
/**
* ID of the Storage Box Snapshot.
*/
id?: number;
/**
* Name of the Storage Box Snapshot.
*/
name?: string;
/**
* ID of the Storage Box.
*/
storageBoxId: number;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/hetzner#label-selector).
*/
withSelector?: string;
}
/**
* A collection of values returned by getStorageBoxSnapshot.
*/
export interface GetStorageBoxSnapshotResult {
/**
* Description of the Storage Box Snapshot.
*/
readonly description: string;
/**
* ID of the Storage Box Snapshot.
*/
readonly id: number;
/**
* Whether the Storage Box Snapshot was created automatically.
*/
readonly isAutomatic: boolean;
/**
* User-defined [labels](https://docs.hetzner.cloud/reference/cloud#labels) (key-value pairs) for the resource.
*/
readonly labels: {
[key: string]: string;
};
/**
* Name of the Storage Box Snapshot.
*/
readonly name: string;
/**
* Statistics of the Storage Box Snapshot.
*/
readonly stats: outputs.GetStorageBoxSnapshotStats;
/**
* ID of the Storage Box.
*/
readonly storageBoxId: number;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/hetzner#label-selector).
*/
readonly withSelector?: string;
}
/**
* Provides details about a Hetzner Storage Box Snapshot.
*
* See the [Storage Box Snapshots API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-box-snapshots) for more details.
*
* ## Example Usage
*/
export declare function getStorageBoxSnapshotOutput(args: GetStorageBoxSnapshotOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageBoxSnapshotResult>;
/**
* A collection of arguments for invoking getStorageBoxSnapshot.
*/
export interface GetStorageBoxSnapshotOutputArgs {
/**
* ID of the Storage Box Snapshot.
*/
id?: pulumi.Input<number | undefined>;
/**
* Name of the Storage Box Snapshot.
*/
name?: pulumi.Input<string | undefined>;
/**
* ID of the Storage Box.
*/
storageBoxId: pulumi.Input<number>;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/hetzner#label-selector).
*/
withSelector?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getStorageBoxSnapshot.d.ts.map