@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
93 lines • 3.12 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides a list of Hetzner Storage Box Snapshots.
*
* See the [Storage Box Snapshots API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-box-snapshots) for more details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const config = new pulumi.Config();
* const storageBoxId = config.requireObject<any>("storageBoxId");
* const all = hcloud.getStorageBoxSnapshots({
* storageBoxId: Number(storageBoxId),
* });
* const byLabelSelector = hcloud.getStorageBoxSnapshots({
* storageBoxId: Number(storageBoxId),
* withSelector: "env=production",
* });
* ```
*/
export declare function getStorageBoxSnapshots(args: GetStorageBoxSnapshotsArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageBoxSnapshotsResult>;
/**
* A collection of arguments for invoking getStorageBoxSnapshots.
*/
export interface GetStorageBoxSnapshotsArgs {
/**
* ID of the Storage Box.
*/
storageBoxId: number;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
withSelector?: string;
}
/**
* A collection of values returned by getStorageBoxSnapshots.
*/
export interface GetStorageBoxSnapshotsResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly snapshots: outputs.GetStorageBoxSnapshotsSnapshot[];
/**
* ID of the Storage Box.
*/
readonly storageBoxId: number;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
readonly withSelector?: string;
}
/**
* Provides a list of Hetzner Storage Box Snapshots.
*
* See the [Storage Box Snapshots API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-box-snapshots) for more details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const config = new pulumi.Config();
* const storageBoxId = config.requireObject<any>("storageBoxId");
* const all = hcloud.getStorageBoxSnapshots({
* storageBoxId: Number(storageBoxId),
* });
* const byLabelSelector = hcloud.getStorageBoxSnapshots({
* storageBoxId: Number(storageBoxId),
* withSelector: "env=production",
* });
* ```
*/
export declare function getStorageBoxSnapshotsOutput(args: GetStorageBoxSnapshotsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageBoxSnapshotsResult>;
/**
* A collection of arguments for invoking getStorageBoxSnapshots.
*/
export interface GetStorageBoxSnapshotsOutputArgs {
/**
* ID of the Storage Box.
*/
storageBoxId: pulumi.Input<number>;
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
withSelector?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getStorageBoxSnapshots.d.ts.map