1. Packages
  2. Hcloud Provider
  3. API Docs
  4. getStorageBoxType
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 byId = hcloud.getStorageBoxType({
        id: 1333,
    });
    const byName = hcloud.getStorageBoxType({
        name: "bx11",
    });
    
    import pulumi
    import pulumi_hcloud as hcloud
    
    by_id = hcloud.get_storage_box_type(id=1333)
    by_name = hcloud.get_storage_box_type(name="bx11")
    
    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.GetStorageBoxType(ctx, &hcloud.GetStorageBoxTypeArgs{
    			Id: pulumi.IntRef(1333),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		_, err = hcloud.GetStorageBoxType(ctx, &hcloud.GetStorageBoxTypeArgs{
    			Name: pulumi.StringRef("bx11"),
    		}, 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 byId = HCloud.GetStorageBoxType.Invoke(new()
        {
            Id = 1333,
        });
    
        var byName = HCloud.GetStorageBoxType.Invoke(new()
        {
            Name = "bx11",
        });
    
    });
    
    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.GetStorageBoxTypeArgs;
    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 byId = HcloudFunctions.getStorageBoxType(GetStorageBoxTypeArgs.builder()
                .id(1333)
                .build());
    
            final var byName = HcloudFunctions.getStorageBoxType(GetStorageBoxTypeArgs.builder()
                .name("bx11")
                .build());
    
        }
    }
    
    variables:
      byId:
        fn::invoke:
          function: hcloud:getStorageBoxType
          arguments:
            id: 1333
      byName:
        fn::invoke:
          function: hcloud:getStorageBoxType
          arguments:
            name: bx11
    

    Using getStorageBoxType

    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 getStorageBoxType(args: GetStorageBoxTypeArgs, opts?: InvokeOptions): Promise<GetStorageBoxTypeResult>
    function getStorageBoxTypeOutput(args: GetStorageBoxTypeOutputArgs, opts?: InvokeOptions): Output<GetStorageBoxTypeResult>
    def get_storage_box_type(id: Optional[int] = None,
                             name: Optional[str] = None,
                             opts: Optional[InvokeOptions] = None) -> GetStorageBoxTypeResult
    def get_storage_box_type_output(id: Optional[pulumi.Input[int]] = None,
                             name: Optional[pulumi.Input[str]] = None,
                             opts: Optional[InvokeOptions] = None) -> Output[GetStorageBoxTypeResult]
    func GetStorageBoxType(ctx *Context, args *GetStorageBoxTypeArgs, opts ...InvokeOption) (*GetStorageBoxTypeResult, error)
    func GetStorageBoxTypeOutput(ctx *Context, args *GetStorageBoxTypeOutputArgs, opts ...InvokeOption) GetStorageBoxTypeResultOutput

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

    public static class GetStorageBoxType 
    {
        public static Task<GetStorageBoxTypeResult> InvokeAsync(GetStorageBoxTypeArgs args, InvokeOptions? opts = null)
        public static Output<GetStorageBoxTypeResult> Invoke(GetStorageBoxTypeInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetStorageBoxTypeResult> getStorageBoxType(GetStorageBoxTypeArgs args, InvokeOptions options)
    public static Output<GetStorageBoxTypeResult> getStorageBoxType(GetStorageBoxTypeArgs args, InvokeOptions options)
    
    fn::invoke:
      function: hcloud:index/getStorageBoxType:getStorageBoxType
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id int
    ID of the Storage Box Type.
    Name string
    Name of the Storage Box Type.
    Id int
    ID of the Storage Box Type.
    Name string
    Name of the Storage Box Type.
    id Integer
    ID of the Storage Box Type.
    name String
    Name of the Storage Box Type.
    id number
    ID of the Storage Box Type.
    name string
    Name of the Storage Box Type.
    id int
    ID of the Storage Box Type.
    name str
    Name of the Storage Box Type.
    id Number
    ID of the Storage Box Type.
    name String
    Name of the Storage Box Type.

    getStorageBoxType Result

    The following output properties are available:

    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.
    IsDeprecated bool
    Whether the Storage Box Type is deprecated.
    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.
    Id int
    ID of the Storage Box Type.
    Name string
    Name of the Storage Box Type.
    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.
    IsDeprecated bool
    Whether the Storage Box Type is deprecated.
    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.
    Id int
    ID of the Storage Box Type.
    Name string
    Name of the Storage Box Type.
    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.
    isDeprecated Boolean
    Whether the Storage Box Type is deprecated.
    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.
    id Integer
    ID of the Storage Box Type.
    name String
    Name of the Storage Box Type.
    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.
    isDeprecated boolean
    Whether the Storage Box Type is deprecated.
    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.
    id number
    ID of the Storage Box Type.
    name string
    Name of the Storage Box Type.
    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.
    is_deprecated bool
    Whether the Storage Box Type is deprecated.
    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.
    id int
    ID of the Storage Box Type.
    name str
    Name of the Storage Box Type.
    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.
    isDeprecated Boolean
    Whether the Storage Box Type is deprecated.
    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.
    id Number
    ID of the Storage Box Type.
    name String
    Name of the Storage Box Type.

    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