1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getStorageBoxTypes
Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi
hcloud logo
Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as hcloud from "@pulumi/hcloud";
    
    const all = hcloud.getStorageBoxTypes({});
    
    import pulumi
    import pulumi_hcloud as hcloud
    
    all = hcloud.get_storage_box_types()
    
    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.GetStorageBoxTypes(ctx, map[string]interface{}{}, 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.GetStorageBoxTypes.Invoke();
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hcloud.HcloudFunctions;
    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.getStorageBoxTypes(%!v(PANIC=Format method: runtime error: invalid memory address or nil pointer dereference);
    
        }
    }
    
    variables:
      all:
        fn::invoke:
          function: hcloud:getStorageBoxTypes
          arguments: {}
    

    Using getStorageBoxTypes

    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 getStorageBoxTypes(opts?: InvokeOptions): Promise<GetStorageBoxTypesResult>
    function getStorageBoxTypesOutput(opts?: InvokeOptions): Output<GetStorageBoxTypesResult>
    def get_storage_box_types(opts: Optional[InvokeOptions] = None) -> GetStorageBoxTypesResult
    def get_storage_box_types_output(opts: Optional[InvokeOptions] = None) -> Output[GetStorageBoxTypesResult]
    func GetStorageBoxTypes(ctx *Context, opts ...InvokeOption) (*GetStorageBoxTypesResult, error)
    func GetStorageBoxTypesOutput(ctx *Context, opts ...InvokeOption) GetStorageBoxTypesResultOutput

    > Note: This function is named GetStorageBoxTypes in the Go SDK.

    public static class GetStorageBoxTypes 
    {
        public static Task<GetStorageBoxTypesResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetStorageBoxTypesResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageBoxTypesResult> getStorageBoxTypes(InvokeOptions options)
    public static Output<GetStorageBoxTypesResult> getStorageBoxTypes(InvokeOptions options)
    
    fn::invoke:
      function: hcloud:index/getStorageBoxTypes:getStorageBoxTypes
      arguments:
        # arguments dictionary

    getStorageBoxTypes Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    StorageBoxTypes List<Pulumi.HCloud.Outputs.GetStorageBoxTypesStorageBoxType>
    Id string
    The provider-assigned unique ID for this managed resource.
    StorageBoxTypes []GetStorageBoxTypesStorageBoxType
    id String
    The provider-assigned unique ID for this managed resource.
    storageBoxTypes List<GetStorageBoxTypesStorageBoxType>
    id string
    The provider-assigned unique ID for this managed resource.
    storageBoxTypes GetStorageBoxTypesStorageBoxType[]
    id str
    The provider-assigned unique ID for this managed resource.
    storage_box_types Sequence[GetStorageBoxTypesStorageBoxType]
    id String
    The provider-assigned unique ID for this managed resource.
    storageBoxTypes List<Property Map>

    Supporting Types

    GetStorageBoxTypesStorageBoxType

    AutomaticSnapshotLimit int
    Maximum number of snapshots created automatically by a snapshot plan.
    DeprecationAnnounced string
    Date of the Storage Box Type deprecation announcement.
    Description string
    Description of the Storage Box Type.
    Id int
    ID of the Storage Box Type.
    IsDeprecated bool
    Whether the Storage Box Type is deprecated.
    Name string
    Name of the Storage Box Type.
    Size int
    Available storage in bytes.
    SnapshotLimit int
    Maximum number of allowed manual snapshots.
    SubaccountsLimit int
    Maximum number of subaccounts.
    UnavailableAfter string
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.
    AutomaticSnapshotLimit int
    Maximum number of snapshots created automatically by a snapshot plan.
    DeprecationAnnounced string
    Date of the Storage Box Type deprecation announcement.
    Description string
    Description of the Storage Box Type.
    Id int
    ID of the Storage Box Type.
    IsDeprecated bool
    Whether the Storage Box Type is deprecated.
    Name string
    Name of the Storage Box Type.
    Size int
    Available storage in bytes.
    SnapshotLimit int
    Maximum number of allowed manual snapshots.
    SubaccountsLimit int
    Maximum number of subaccounts.
    UnavailableAfter string
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.
    automaticSnapshotLimit Integer
    Maximum number of snapshots created automatically by a snapshot plan.
    deprecationAnnounced String
    Date of the Storage Box Type deprecation announcement.
    description String
    Description of the Storage Box Type.
    id Integer
    ID of the Storage Box Type.
    isDeprecated Boolean
    Whether the Storage Box Type is deprecated.
    name String
    Name of the Storage Box Type.
    size Integer
    Available storage in bytes.
    snapshotLimit Integer
    Maximum number of allowed manual snapshots.
    subaccountsLimit Integer
    Maximum number of subaccounts.
    unavailableAfter String
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.
    automaticSnapshotLimit number
    Maximum number of snapshots created automatically by a snapshot plan.
    deprecationAnnounced string
    Date of the Storage Box Type deprecation announcement.
    description string
    Description of the Storage Box Type.
    id number
    ID of the Storage Box Type.
    isDeprecated boolean
    Whether the Storage Box Type is deprecated.
    name string
    Name of the Storage Box Type.
    size number
    Available storage in bytes.
    snapshotLimit number
    Maximum number of allowed manual snapshots.
    subaccountsLimit number
    Maximum number of subaccounts.
    unavailableAfter string
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.
    automatic_snapshot_limit int
    Maximum number of snapshots created automatically by a snapshot plan.
    deprecation_announced str
    Date of the Storage Box Type deprecation announcement.
    description str
    Description of the Storage Box Type.
    id int
    ID of the Storage Box Type.
    is_deprecated bool
    Whether the Storage Box Type is deprecated.
    name str
    Name of the Storage Box Type.
    size int
    Available storage in bytes.
    snapshot_limit int
    Maximum number of allowed manual snapshots.
    subaccounts_limit int
    Maximum number of subaccounts.
    unavailable_after str
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.
    automaticSnapshotLimit Number
    Maximum number of snapshots created automatically by a snapshot plan.
    deprecationAnnounced String
    Date of the Storage Box Type deprecation announcement.
    description String
    Description of the Storage Box Type.
    id Number
    ID of the Storage Box Type.
    isDeprecated Boolean
    Whether the Storage Box Type is deprecated.
    name String
    Name of the Storage Box Type.
    size Number
    Available storage in bytes.
    snapshotLimit Number
    Maximum number of allowed manual snapshots.
    subaccountsLimit Number
    Maximum number of subaccounts.
    unavailableAfter String
    Date of the Storage Box Type removal. After this date, the Storage Box Type cannot be used anymore.

    Package Details

    Repository
    Hetzner Cloud pulumi/pulumi-hcloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the hcloud Terraform Provider.
    hcloud logo
    Hetzner Cloud v1.29.0 published on Saturday, Nov 29, 2025 by Pulumi
      Meet Neo: Your AI Platform Teammate