@pulumi/hcloud
Version:
A Pulumi package for creating and managing hcloud cloud resources.
71 lines • 2.32 kB
TypeScript
import * as pulumi from "@pulumi/pulumi";
import * as outputs from "./types/output";
/**
* Provides a list of Hetzner Storage Boxes.
*
* See the [Storage Boxes API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-boxes) for more details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const all = hcloud.getStorageBoxes({});
* const byLabelSelector = hcloud.getStorageBoxes({
* withSelector: "env=production",
* });
* ```
*/
export declare function getStorageBoxes(args?: GetStorageBoxesArgs, opts?: pulumi.InvokeOptions): Promise<GetStorageBoxesResult>;
/**
* A collection of arguments for invoking getStorageBoxes.
*/
export interface GetStorageBoxesArgs {
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
withSelector?: string;
}
/**
* A collection of values returned by getStorageBoxes.
*/
export interface GetStorageBoxesResult {
/**
* The provider-assigned unique ID for this managed resource.
*/
readonly id: string;
readonly storageBoxes: outputs.GetStorageBoxesStorageBox[];
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
readonly withSelector?: string;
}
/**
* Provides a list of Hetzner Storage Boxes.
*
* See the [Storage Boxes API documentation](https://docs.hetzner.cloud/reference/hetzner#storage-boxes) for more details.
*
* ## Example Usage
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as hcloud from "@pulumi/hcloud";
*
* const all = hcloud.getStorageBoxes({});
* const byLabelSelector = hcloud.getStorageBoxes({
* withSelector: "env=production",
* });
* ```
*/
export declare function getStorageBoxesOutput(args?: GetStorageBoxesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetStorageBoxesResult>;
/**
* A collection of arguments for invoking getStorageBoxes.
*/
export interface GetStorageBoxesOutputArgs {
/**
* Filter results using a [Label Selector](https://docs.hetzner.cloud/reference/cloud#label-selector)
*/
withSelector?: pulumi.Input<string | undefined>;
}
//# sourceMappingURL=getStorageBoxes.d.ts.map