Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi
Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
Example coming soon!
configuration:
storageBoxId:
type: dynamic
variables:
byId:
fn::invoke:
function: hcloud:getStorageBoxSnapshot
arguments:
storageBoxId: ${storageBoxId}
id: 2
byName:
fn::invoke:
function: hcloud:getStorageBoxSnapshot
arguments:
storageBoxId: ${storageBoxId}
name: 2025-02-12T11-35-19
byLabelSelector:
fn::invoke:
function: hcloud:getStorageBox
arguments:
storageBoxId: ${storageBoxId}
withSelector: env=production
Using getStorageBoxSnapshot
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 getStorageBoxSnapshot(args: GetStorageBoxSnapshotArgs, opts?: InvokeOptions): Promise<GetStorageBoxSnapshotResult>
function getStorageBoxSnapshotOutput(args: GetStorageBoxSnapshotOutputArgs, opts?: InvokeOptions): Output<GetStorageBoxSnapshotResult>def get_storage_box_snapshot(id: Optional[int] = None,
name: Optional[str] = None,
storage_box_id: Optional[int] = None,
with_selector: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetStorageBoxSnapshotResult
def get_storage_box_snapshot_output(id: Optional[pulumi.Input[int]] = None,
name: Optional[pulumi.Input[str]] = None,
storage_box_id: Optional[pulumi.Input[int]] = None,
with_selector: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetStorageBoxSnapshotResult]func LookupStorageBoxSnapshot(ctx *Context, args *LookupStorageBoxSnapshotArgs, opts ...InvokeOption) (*LookupStorageBoxSnapshotResult, error)
func LookupStorageBoxSnapshotOutput(ctx *Context, args *LookupStorageBoxSnapshotOutputArgs, opts ...InvokeOption) LookupStorageBoxSnapshotResultOutput> Note: This function is named LookupStorageBoxSnapshot in the Go SDK.
public static class GetStorageBoxSnapshot
{
public static Task<GetStorageBoxSnapshotResult> InvokeAsync(GetStorageBoxSnapshotArgs args, InvokeOptions? opts = null)
public static Output<GetStorageBoxSnapshotResult> Invoke(GetStorageBoxSnapshotInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetStorageBoxSnapshotResult> getStorageBoxSnapshot(GetStorageBoxSnapshotArgs args, InvokeOptions options)
public static Output<GetStorageBoxSnapshotResult> getStorageBoxSnapshot(GetStorageBoxSnapshotArgs args, InvokeOptions options)
fn::invoke:
function: hcloud:index/getStorageBoxSnapshot:getStorageBoxSnapshot
arguments:
# arguments dictionaryThe following arguments are supported:
- Storage
Box intId - ID of the Storage Box.
- Id int
- ID of the Storage Box Snapshot.
- Name string
- Name of the Storage Box Snapshot.
- With
Selector string - Filter results using a Label Selector.
- Storage
Box intId - ID of the Storage Box.
- Id int
- ID of the Storage Box Snapshot.
- Name string
- Name of the Storage Box Snapshot.
- With
Selector string - Filter results using a Label Selector.
- storage
Box IntegerId - ID of the Storage Box.
- id Integer
- ID of the Storage Box Snapshot.
- name String
- Name of the Storage Box Snapshot.
- with
Selector String - Filter results using a Label Selector.
- storage
Box numberId - ID of the Storage Box.
- id number
- ID of the Storage Box Snapshot.
- name string
- Name of the Storage Box Snapshot.
- with
Selector string - Filter results using a Label Selector.
- storage_
box_ intid - ID of the Storage Box.
- id int
- ID of the Storage Box Snapshot.
- name str
- Name of the Storage Box Snapshot.
- with_
selector str - Filter results using a Label Selector.
- storage
Box NumberId - ID of the Storage Box.
- id Number
- ID of the Storage Box Snapshot.
- name String
- Name of the Storage Box Snapshot.
- with
Selector String - Filter results using a Label Selector.
getStorageBoxSnapshot Result
The following output properties are available:
- Description string
- Description of the Storage Box Snapshot.
- Id int
- ID of the Storage Box Snapshot.
- Is
Automatic bool - Whether the Storage Box Snapshot was created automatically.
- Labels Dictionary<string, string>
- User-defined labels (key-value pairs) for the resource.
- Name string
- Name of the Storage Box Snapshot.
- Stats
Pulumi.
HCloud. Outputs. Get Storage Box Snapshot Stats - Statistics of the Storage Box Snapshot.
- Storage
Box intId - ID of the Storage Box.
- With
Selector string - Filter results using a Label Selector.
- Description string
- Description of the Storage Box Snapshot.
- Id int
- ID of the Storage Box Snapshot.
- Is
Automatic bool - Whether the Storage Box Snapshot was created automatically.
- Labels map[string]string
- User-defined labels (key-value pairs) for the resource.
- Name string
- Name of the Storage Box Snapshot.
- Stats
Get
Storage Box Snapshot Stats - Statistics of the Storage Box Snapshot.
- Storage
Box intId - ID of the Storage Box.
- With
Selector string - Filter results using a Label Selector.
- description String
- Description of the Storage Box Snapshot.
- id Integer
- ID of the Storage Box Snapshot.
- is
Automatic Boolean - Whether the Storage Box Snapshot was created automatically.
- labels Map<String,String>
- User-defined labels (key-value pairs) for the resource.
- name String
- Name of the Storage Box Snapshot.
- stats
Get
Storage Box Snapshot Stats - Statistics of the Storage Box Snapshot.
- storage
Box IntegerId - ID of the Storage Box.
- with
Selector String - Filter results using a Label Selector.
- description string
- Description of the Storage Box Snapshot.
- id number
- ID of the Storage Box Snapshot.
- is
Automatic boolean - Whether the Storage Box Snapshot was created automatically.
- labels {[key: string]: string}
- User-defined labels (key-value pairs) for the resource.
- name string
- Name of the Storage Box Snapshot.
- stats
Get
Storage Box Snapshot Stats - Statistics of the Storage Box Snapshot.
- storage
Box numberId - ID of the Storage Box.
- with
Selector string - Filter results using a Label Selector.
- description str
- Description of the Storage Box Snapshot.
- id int
- ID of the Storage Box Snapshot.
- is_
automatic bool - Whether the Storage Box Snapshot was created automatically.
- labels Mapping[str, str]
- User-defined labels (key-value pairs) for the resource.
- name str
- Name of the Storage Box Snapshot.
- stats
Get
Storage Box Snapshot Stats - Statistics of the Storage Box Snapshot.
- storage_
box_ intid - ID of the Storage Box.
- with_
selector str - Filter results using a Label Selector.
- description String
- Description of the Storage Box Snapshot.
- id Number
- ID of the Storage Box Snapshot.
- is
Automatic Boolean - Whether the Storage Box Snapshot was created automatically.
- labels Map<String>
- User-defined labels (key-value pairs) for the resource.
- name String
- Name of the Storage Box Snapshot.
- stats Property Map
- Statistics of the Storage Box Snapshot.
- storage
Box NumberId - ID of the Storage Box.
- with
Selector String - Filter results using a Label Selector.
Supporting Types
GetStorageBoxSnapshotStats
- Size int
- Current storage requirements of the Snapshot in bytes.
- Size
Filesystem int - Size of the compressed file system contained in the Snapshot in bytes.
- Size int
- Current storage requirements of the Snapshot in bytes.
- Size
Filesystem int - Size of the compressed file system contained in the Snapshot in bytes.
- size Integer
- Current storage requirements of the Snapshot in bytes.
- size
Filesystem Integer - Size of the compressed file system contained in the Snapshot in bytes.
- size number
- Current storage requirements of the Snapshot in bytes.
- size
Filesystem number - Size of the compressed file system contained in the Snapshot in bytes.
- size int
- Current storage requirements of the Snapshot in bytes.
- size_
filesystem int - Size of the compressed file system contained in the Snapshot in bytes.
- size Number
- Current storage requirements of the Snapshot in bytes.
- size
Filesystem Number - Size of the compressed file system contained in the Snapshot in bytes.
Package Details
- Repository
- Hetzner Cloud pulumi/pulumi-hcloud
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
hcloudTerraform Provider.
Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi
