Viewing docs for Hetzner Cloud v1.32.1
published on Tuesday, Feb 17, 2026 by Pulumi
published on Tuesday, Feb 17, 2026 by Pulumi
Viewing docs for Hetzner Cloud v1.32.1
published on Tuesday, Feb 17, 2026 by Pulumi
published on Tuesday, Feb 17, 2026 by Pulumi
Provides a list of Hetzner Storage Boxes.
See the Storage Boxes API documentation for more details.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as hcloud from "@pulumi/hcloud";
const all = hcloud.getStorageBoxes({});
const byLabelSelector = hcloud.getStorageBoxes({
withSelector: "env=production",
});
import pulumi
import pulumi_hcloud as hcloud
all = hcloud.get_storage_boxes()
by_label_selector = hcloud.get_storage_boxes(with_selector="env=production")
package main
import (
"github.com/pulumi/pulumi-hcloud/sdk/go/hcloud"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := hcloud.GetStorageBoxes(ctx, &hcloud.GetStorageBoxesArgs{}, nil)
if err != nil {
return err
}
_, err = hcloud.GetStorageBoxes(ctx, &hcloud.GetStorageBoxesArgs{
WithSelector: pulumi.StringRef("env=production"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using HCloud = Pulumi.HCloud;
return await Deployment.RunAsync(() =>
{
var all = HCloud.GetStorageBoxes.Invoke();
var byLabelSelector = HCloud.GetStorageBoxes.Invoke(new()
{
WithSelector = "env=production",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.hcloud.HcloudFunctions;
import com.pulumi.hcloud.inputs.GetStorageBoxesArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
final var all = HcloudFunctions.getStorageBoxes(GetStorageBoxesArgs.builder()
.build());
final var byLabelSelector = HcloudFunctions.getStorageBoxes(GetStorageBoxesArgs.builder()
.withSelector("env=production")
.build());
}
}
variables:
all:
fn::invoke:
function: hcloud:getStorageBoxes
arguments: {}
byLabelSelector:
fn::invoke:
function: hcloud:getStorageBoxes
arguments:
withSelector: env=production
Using getStorageBoxes
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getStorageBoxes(args: GetStorageBoxesArgs, opts?: InvokeOptions): Promise<GetStorageBoxesResult>
function getStorageBoxesOutput(args: GetStorageBoxesOutputArgs, opts?: InvokeOptions): Output<GetStorageBoxesResult>def get_storage_boxes(with_selector: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageBoxesResult
def get_storage_boxes_output(with_selector: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageBoxesResult]func GetStorageBoxes(ctx *Context, args *GetStorageBoxesArgs, opts ...InvokeOption) (*GetStorageBoxesResult, error)
func GetStorageBoxesOutput(ctx *Context, args *GetStorageBoxesOutputArgs, opts ...InvokeOption) GetStorageBoxesResultOutput> Note: This function is named GetStorageBoxes in the Go SDK.
public static class GetStorageBoxes
{
public static Task<GetStorageBoxesResult> InvokeAsync(GetStorageBoxesArgs args, InvokeOptions? opts = null)
public static Output<GetStorageBoxesResult> Invoke(GetStorageBoxesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageBoxesResult> getStorageBoxes(GetStorageBoxesArgs args, InvokeOptions options)
public static Output<GetStorageBoxesResult> getStorageBoxes(GetStorageBoxesArgs args, InvokeOptions options)
fn::invoke:
function: hcloud:index/getStorageBoxes:getStorageBoxes
arguments:
# arguments dictionaryThe following arguments are supported:
- With
Selector string - Filter results using a Label Selector
- With
Selector string - Filter results using a Label Selector
- with
Selector String - Filter results using a Label Selector
- with
Selector string - Filter results using a Label Selector
- with_
selector str - Filter results using a Label Selector
- with
Selector String - Filter results using a Label Selector
getStorageBoxes Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Boxes List<Pulumi.HCloud. Outputs. Get Storage Boxes Storage Box> - With
Selector string - Filter results using a Label Selector
- Id string
- The provider-assigned unique ID for this managed resource.
- Storage
Boxes []GetStorage Boxes Storage Box - With
Selector string - Filter results using a Label Selector
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Boxes List<GetStorage Boxes Storage Box> - with
Selector String - Filter results using a Label Selector
- id string
- The provider-assigned unique ID for this managed resource.
- storage
Boxes GetStorage Boxes Storage Box[] - with
Selector string - Filter results using a Label Selector
- id str
- The provider-assigned unique ID for this managed resource.
- storage_
boxes Sequence[GetStorage Boxes Storage Box] - with_
selector str - Filter results using a Label Selector
- id String
- The provider-assigned unique ID for this managed resource.
- storage
Boxes List<Property Map> - with
Selector String - Filter results using a Label Selector
Supporting Types
GetStorageBoxesStorageBox
- Access
Settings Pulumi.HCloud. Inputs. Get Storage Boxes Storage Box Access Settings - Access settings of the Storage Box.
- Delete
Protection bool - Whether delete protection is enabled.
- Id int
- ID of the Storage Box.
- Labels Dictionary<string, string>
- User-defined labels (key-value pairs) for the resource.
- Location string
- Name of the Location.
- Name string
- Name of the Storage Box.
- Server string
- FQDN of the Storage Box.
- Snapshot
Plan Pulumi.HCloud. Inputs. Get Storage Boxes Storage Box Snapshot Plan - Details of the active snapshot plan.
- Storage
Box stringType - Name of the Storage Box Type.
- System string
- Host system of the Storage Box.
- Username string
- Primary username of the Storage Box.
- Access
Settings GetStorage Boxes Storage Box Access Settings - Access settings of the Storage Box.
- Delete
Protection bool - Whether delete protection is enabled.
- Id int
- ID of the Storage Box.
- Labels map[string]string
- User-defined labels (key-value pairs) for the resource.
- Location string
- Name of the Location.
- Name string
- Name of the Storage Box.
- Server string
- FQDN of the Storage Box.
- Snapshot
Plan GetStorage Boxes Storage Box Snapshot Plan - Details of the active snapshot plan.
- Storage
Box stringType - Name of the Storage Box Type.
- System string
- Host system of the Storage Box.
- Username string
- Primary username of the Storage Box.
- access
Settings GetStorage Boxes Storage Box Access Settings - Access settings of the Storage Box.
- delete
Protection Boolean - Whether delete protection is enabled.
- id Integer
- ID of the Storage Box.
- labels Map<String,String>
- User-defined labels (key-value pairs) for the resource.
- location String
- Name of the Location.
- name String
- Name of the Storage Box.
- server String
- FQDN of the Storage Box.
- snapshot
Plan GetStorage Boxes Storage Box Snapshot Plan - Details of the active snapshot plan.
- storage
Box StringType - Name of the Storage Box Type.
- system String
- Host system of the Storage Box.
- username String
- Primary username of the Storage Box.
- access
Settings GetStorage Boxes Storage Box Access Settings - Access settings of the Storage Box.
- delete
Protection boolean - Whether delete protection is enabled.
- id number
- ID of the Storage Box.
- labels {[key: string]: string}
- User-defined labels (key-value pairs) for the resource.
- location string
- Name of the Location.
- name string
- Name of the Storage Box.
- server string
- FQDN of the Storage Box.
- snapshot
Plan GetStorage Boxes Storage Box Snapshot Plan - Details of the active snapshot plan.
- storage
Box stringType - Name of the Storage Box Type.
- system string
- Host system of the Storage Box.
- username string
- Primary username of the Storage Box.
- access_
settings GetStorage Boxes Storage Box Access Settings - Access settings of the Storage Box.
- delete_
protection bool - Whether delete protection is enabled.
- id int
- ID of the Storage Box.
- labels Mapping[str, str]
- User-defined labels (key-value pairs) for the resource.
- location str
- Name of the Location.
- name str
- Name of the Storage Box.
- server str
- FQDN of the Storage Box.
- snapshot_
plan GetStorage Boxes Storage Box Snapshot Plan - Details of the active snapshot plan.
- storage_
box_ strtype - Name of the Storage Box Type.
- system str
- Host system of the Storage Box.
- username str
- Primary username of the Storage Box.
- access
Settings Property Map - Access settings of the Storage Box.
- delete
Protection Boolean - Whether delete protection is enabled.
- id Number
- ID of the Storage Box.
- labels Map<String>
- User-defined labels (key-value pairs) for the resource.
- location String
- Name of the Location.
- name String
- Name of the Storage Box.
- server String
- FQDN of the Storage Box.
- snapshot
Plan Property Map - Details of the active snapshot plan.
- storage
Box StringType - Name of the Storage Box Type.
- system String
- Host system of the Storage Box.
- username String
- Primary username of the Storage Box.
GetStorageBoxesStorageBoxAccessSettings
- Reachable
Externally bool - Whether access from outside the Hetzner network is allowed.
- Samba
Enabled bool - Whether the Samba subsystem is enabled.
- Ssh
Enabled bool - Whether the SSH subsystem is enabled.
- Webdav
Enabled bool - Whether the WebDAV subsystem is enabled.
- Zfs
Enabled bool - Whether the ZFS snapshot folder is visible.
- Reachable
Externally bool - Whether access from outside the Hetzner network is allowed.
- Samba
Enabled bool - Whether the Samba subsystem is enabled.
- Ssh
Enabled bool - Whether the SSH subsystem is enabled.
- Webdav
Enabled bool - Whether the WebDAV subsystem is enabled.
- Zfs
Enabled bool - Whether the ZFS snapshot folder is visible.
- reachable
Externally Boolean - Whether access from outside the Hetzner network is allowed.
- samba
Enabled Boolean - Whether the Samba subsystem is enabled.
- ssh
Enabled Boolean - Whether the SSH subsystem is enabled.
- webdav
Enabled Boolean - Whether the WebDAV subsystem is enabled.
- zfs
Enabled Boolean - Whether the ZFS snapshot folder is visible.
- reachable
Externally boolean - Whether access from outside the Hetzner network is allowed.
- samba
Enabled boolean - Whether the Samba subsystem is enabled.
- ssh
Enabled boolean - Whether the SSH subsystem is enabled.
- webdav
Enabled boolean - Whether the WebDAV subsystem is enabled.
- zfs
Enabled boolean - Whether the ZFS snapshot folder is visible.
- reachable_
externally bool - Whether access from outside the Hetzner network is allowed.
- samba_
enabled bool - Whether the Samba subsystem is enabled.
- ssh_
enabled bool - Whether the SSH subsystem is enabled.
- webdav_
enabled bool - Whether the WebDAV subsystem is enabled.
- zfs_
enabled bool - Whether the ZFS snapshot folder is visible.
- reachable
Externally Boolean - Whether access from outside the Hetzner network is allowed.
- samba
Enabled Boolean - Whether the Samba subsystem is enabled.
- ssh
Enabled Boolean - Whether the SSH subsystem is enabled.
- webdav
Enabled Boolean - Whether the WebDAV subsystem is enabled.
- zfs
Enabled Boolean - Whether the ZFS snapshot folder is visible.
GetStorageBoxesStorageBoxSnapshotPlan
- Day
Of intMonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- Day
Of intWeek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- Hour int
- Hour when the Snapshot Plan is executed (UTC).
- Max
Snapshots int - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- Minute int
- Minute when the Snapshot Plan is executed (UTC).
- Day
Of intMonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- Day
Of intWeek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- Hour int
- Hour when the Snapshot Plan is executed (UTC).
- Max
Snapshots int - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- Minute int
- Minute when the Snapshot Plan is executed (UTC).
- day
Of IntegerMonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- day
Of IntegerWeek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- hour Integer
- Hour when the Snapshot Plan is executed (UTC).
- max
Snapshots Integer - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- minute Integer
- Minute when the Snapshot Plan is executed (UTC).
- day
Of numberMonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- day
Of numberWeek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- hour number
- Hour when the Snapshot Plan is executed (UTC).
- max
Snapshots number - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- minute number
- Minute when the Snapshot Plan is executed (UTC).
- day_
of_ intmonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- day_
of_ intweek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- hour int
- Hour when the Snapshot Plan is executed (UTC).
- max_
snapshots int - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- minute int
- Minute when the Snapshot Plan is executed (UTC).
- day
Of NumberMonth - Day of the month when the Snapshot Plan is executed. Null means every day.
- day
Of NumberWeek - Day of the week when the Snapshot Plan is executed. Starts at 0 for Sunday til 6 for Saturday. Note that this differs from the API, which uses 1 (Monday) through 7 (Sunday). Null means every day.
- hour Number
- Hour when the Snapshot Plan is executed (UTC).
- max
Snapshots Number - Maximum amount of Snapshots that will be created by this Snapshot Plan. Older Snapshots will be deleted.
- minute Number
- Minute when the Snapshot Plan is executed (UTC).
Package Details
- Repository
- Hetzner Cloud pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcloudTerraform Provider.
Viewing docs for Hetzner Cloud v1.32.1
published on Tuesday, Feb 17, 2026 by Pulumi
published on Tuesday, Feb 17, 2026 by Pulumi
